private void Button_Save_Click(object sender, RoutedEventArgs e) { ComboBoxItem i = (ComboBoxItem)cboxCheckAPI.SelectedItem; StartupConfig.LastFolder = (string)lblFilesPath.Text; StartupConfig.cboxCheckedAPI = (string)i.Content; StartupConfig.isShowTime = Convert.ToBoolean(isShowTime.IsChecked); if ((bool)isStartWithSystem.IsChecked != StartupConfig.isStartWithSystem) { StartupConfig.SetAutoload((bool)isStartWithSystem.IsChecked); } StartupConfig.isStartWithSystem = Convert.ToBoolean(isStartWithSystem.IsChecked); StartupConfig.isSaveFile = Convert.ToBoolean(isSaveFiles.IsChecked); StartupConfig.WriteParams(); }