/// <summary> /// Confirmational Dialog Result /// </summary> private void _Yes(object parameter) { ModelSettings.FolderPathOutput = _DefaultFolderPathOutput; ModelSettings.FolderPathInput = _DefaultFolderPathInput; ModelSettings.NewNameFolder = _DefaultNewNameFolder; ModelSettings.NewNameFile = _DefaultNewNameFile; // write xml ModelSettings.WriteSettings(); // dialog feedback this.DialogResult = DialogResult.OK; this.Close(); }
private void SaveSettings_Click(object sender, EventArgs e) { //_OpenSettings(null); ModelSettings.FolderPathInput = FolderPathInput.Text; ModelSettings.FolderPathOutput = FolderPathOutput.Text; ModelSettings.NewNameFile = NewNameFile.Text; ModelSettings.NewNameFolder = NewNameFolder.Text; ModelSettings.OldNameFile = OldNameFile.Text; ModelSettings.OldNameFolder = OldNameFolder.Text; ModelSettings.AnalyzeWithSubfolders = AnalyzeWithSubFolders.Checked; ModelSettings.JustRenameFiles = CheckedJustRename.Checked; ModelSettings.FolderForCameraType = CheckedCameraType.Checked; ModelSettings.DeleteEmptyFolders = DeleteEmptyFolders.Checked; ModelSettings.UseTrashFolder = UseTrashFolder.Checked; ModelSettings.WriteSettings(); ShowMessage("Settings saved."); }