public MainWindow() { EnableControl = true; InitializeComponent(); InitializeButtonsEvents(); Settings.LoadSettings(); ImageProcessing.ImageAfterChange += ImageProcessing_ImageAfterChange; }
protected override void OnStartup(StartupEventArgs e) { if (File.Exists("settings.xml")) { Settings.LoadSettings(); } else { Settings.CreateSettings(); Settings.LoadSettings(); } ThemeSwither.ChangeDark(Settings.IsDark); Settings.Themes.Add("Cyan"); Settings.Themes.Add("Amber"); Settings.Themes.Add("DeepOrange"); Settings.Themes.Add("Yellow"); base.OnStartup(e); if (Settings.CheckUpdates) { } }