コード例 #1
0
        public MainWindow()
        {
            EnableControl = true;
            InitializeComponent();
            InitializeButtonsEvents();

            Settings.LoadSettings();
            ImageProcessing.ImageAfterChange += ImageProcessing_ImageAfterChange;
        }
コード例 #2
0
 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)
     {
     }
 }