From 1bccbdfada294f590f6296cb12c8bdd1c5449133 Mon Sep 17 00:00:00 2001 From: rullinoiz <46585763+rullinoiz@users.noreply.github.com> Date: Mon, 21 Oct 2024 14:29:58 -0700 Subject: [PATCH] move AvaloniaBitmapJsonConverter.cs to JsonConverters for serialization --- scoreboard2/scoreboard2/Controls/PresetControl.axaml.cs | 1 + .../{ => JsonConverters}/AvaloniaBitmapJsonConverter.cs | 3 +-- scoreboard2/scoreboard2/scoreboard2.csproj | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) rename scoreboard2/scoreboard2/Converters/{ => JsonConverters}/AvaloniaBitmapJsonConverter.cs (96%) diff --git a/scoreboard2/scoreboard2/Controls/PresetControl.axaml.cs b/scoreboard2/scoreboard2/Controls/PresetControl.axaml.cs index 3d7538f..b818d2b 100644 --- a/scoreboard2/scoreboard2/Controls/PresetControl.axaml.cs +++ b/scoreboard2/scoreboard2/Controls/PresetControl.axaml.cs @@ -7,6 +7,7 @@ using Avalonia.Platform.Storage; using Newtonsoft.Json; using scoreboard2.Converters; +using scoreboard2.Converters.JsonConverters; using scoreboard2.Models; namespace scoreboard2.Controls; diff --git a/scoreboard2/scoreboard2/Converters/AvaloniaBitmapJsonConverter.cs b/scoreboard2/scoreboard2/Converters/JsonConverters/AvaloniaBitmapJsonConverter.cs similarity index 96% rename from scoreboard2/scoreboard2/Converters/AvaloniaBitmapJsonConverter.cs rename to scoreboard2/scoreboard2/Converters/JsonConverters/AvaloniaBitmapJsonConverter.cs index 85861ff..e1df8fb 100644 --- a/scoreboard2/scoreboard2/Converters/AvaloniaBitmapJsonConverter.cs +++ b/scoreboard2/scoreboard2/Converters/JsonConverters/AvaloniaBitmapJsonConverter.cs @@ -1,5 +1,4 @@ using System; -using System.Drawing.Imaging; using System.IO; using System.IO.Compression; using Avalonia.Media.Imaging; @@ -7,7 +6,7 @@ using Newtonsoft.Json; using scoreboard2.Common.Extensions; -namespace scoreboard2.Converters; +namespace scoreboard2.Converters.JsonConverters; public class AvaloniaBitmapJsonConverter : JsonConverter { diff --git a/scoreboard2/scoreboard2/scoreboard2.csproj b/scoreboard2/scoreboard2/scoreboard2.csproj index 81f5946..052996d 100644 --- a/scoreboard2/scoreboard2/scoreboard2.csproj +++ b/scoreboard2/scoreboard2/scoreboard2.csproj @@ -72,6 +72,5 @@ -