From 4706f95632cb9151a3ba9caf0d85178baef3244b Mon Sep 17 00:00:00 2001 From: eymenefealtun Date: Thu, 7 Sep 2023 22:38:19 +0300 Subject: [PATCH] feat: georgian added chore: memory consumption reduced --- TarotType.Main/MainWindow.xaml | 1 + TarotType.Main/MainWindow.xaml.cs | 49 ++++++++++++++----- .../Properties/Resources.Designer.cs | 7 +++ TarotType.Main/Properties/Resources.resx | 3 ++ TarotType.Main/Utilities/SourceManager.cs | 16 ++++-- TarotType.Main/Utilities/WordManager.cs | 26 +++++++--- TarotType.Main/Words/Georgian/Georgian.cs | 17 +++++++ TarotType.Main/Words/Georgian/Georgian.txt | 1 + 8 files changed, 98 insertions(+), 22 deletions(-) create mode 100644 TarotType.Main/Words/Georgian/Georgian.cs create mode 100644 TarotType.Main/Words/Georgian/Georgian.txt diff --git a/TarotType.Main/MainWindow.xaml b/TarotType.Main/MainWindow.xaml index 877e853..6982a2f 100644 --- a/TarotType.Main/MainWindow.xaml +++ b/TarotType.Main/MainWindow.xaml @@ -40,6 +40,7 @@ + diff --git a/TarotType.Main/MainWindow.xaml.cs b/TarotType.Main/MainWindow.xaml.cs index c6c5b76..60c2f74 100644 --- a/TarotType.Main/MainWindow.xaml.cs +++ b/TarotType.Main/MainWindow.xaml.cs @@ -6,12 +6,10 @@ using System.Windows.Input; using System.Windows.Media; using System.Windows.Threading; -using TarotType.Main.Properties; using TarotType.Main.Settings; using TarotType.Main.Utilities; using TarotType.Main.Utilities.Words.EnglishFolder; using TarotType.Main.View; -using System.Resources; namespace TarotType.Main { @@ -54,12 +52,13 @@ public int Second bool _canComboBoxChangedFired = false; bool _canSettignsChange = false; public bool IsRefreshing = false; + public static bool _anotherArray = true; public static string[] _sourceWords; + public static string[] _secondSourceWords; public static string[] _resultWordArray; public static Random _random; - public static ResourceManager _resources; string _lightThemeCode = "#eeeee4"; string _darkThemeCode = "#1e1e1e"; @@ -69,12 +68,17 @@ public MainWindow() InitializeComponent(); _random = new Random(); - _resources = new ResourceManager(typeof(Resources)); _words1 = new List