Example #1
0
 public static void SaveAllSettingsAsync()
 {
     if (Settings != null)
     {
         Settings.SaveAsync(ApplicationConfigFilePath);
     }
     UploadersConfigSaveAsync();
     if (HotkeysConfig != null)
     {
         HotkeysConfig.SaveAsync(HotkeysConfigFilePath);
     }
 }
Example #2
0
        public static void ResetSettings()
        {
            Settings            = new ApplicationConfig();
            DefaultTaskSettings = Settings.DefaultTaskSettings;
            UploadersConfig     = new UploadersConfig();
            HotkeysConfig       = new HotkeysConfig();

            if (File.Exists(GreenshotImageEditorConfigFilePath))
            {
                File.Delete(GreenshotImageEditorConfigFilePath);
            }
        }
Example #3
0
 public static void SaveSettings()
 {
     if (Settings != null)
     {
         Settings.Save(ApplicationConfigFilePath);
     }
     if (UploadersConfig != null)
     {
         UploadersConfig.Save(UploadersConfigFilePath);
     }
     if (HotkeysConfig != null)
     {
         HotkeysConfig.Save(HotkeysConfigFilePath);
     }
 }
Example #4
0
 public static void LoadHotkeySettings()
 {
     HotkeysConfig = HotkeysConfig.Load(HotkeysConfigFilePath);
 }