Exemplo n.º 1
0
        private void ExecuteSaveCommand()
        {
            Settings.Set(SettingKeys.Accent, SelectedAccent.Name);
            Settings.Set(SettingKeys.Theme, SelectedTheme.Name);
            Settings.Set(SettingKeys.ExpandEntries, ExpandEntries.ToString());
            Settings.Set(SettingKeys.Language, SelectedLanguage.IetfLanguageTag);
            Settings.Set(SettingKeys.StartWithWindows, StartWithWindows.ToString());
            Settings.Set(SettingKeys.StartMinimized, StartMinimized.ToString());
            Settings.Set(SettingKeys.CloseToTray, CloseToTray.ToString());

            Themes.ChangeStyle(SelectedTheme.Name, SelectedAccent.Name);

            Startup.SetStartup(StartWithWindows, Constants.AutostartArgument);
        }