private void SaveSettings() { _solutionSettings.UseCustomAnalysis = useCustomCloneDetectionCheckBox.Checked; _solutionSettings.AnalysisFileName = analysisFileNameTextBox.Text; _solutionSettings.CloneReportFileName = cloneReportFileNameTextBox.Text; _solutionSettings.UsePropertiesFile = usePropertiesFileCheckBox.Checked; _solutionSettings.PropertiesFileName = propertiesFileNameTextBox.Text; _solutionSettings.PropertyOverrides.Clear(); foreach (DataGridViewRow row in propertyOverridesDataGridView.Rows) { string key = (string)row.Cells[1].Value; string value = (string)row.Cells[2].Value; if (key != null) { _solutionSettings.PropertyOverrides[key] = value; } } _solutionSettings.Save(); }
private void OnOK(object sender, RoutedEventArgs e) { _settings.SolutionSettings = _solutionSettings; _solutionSettings.Save(_settings, _solutionInfo); DialogResult = true; }