private void CreateNewConfiguration() { var newItem = new Config.CheckConfiguration(); using (var form = new ConfigurationForm(newItem)) { if (form.ShowDialog() == DialogResult.OK) { TrySaveNewConfiguration(newItem); } } }
private void EditConfiguration() { var copy = _configuration.Clone(); using (var form = new ConfigurationForm(copy)) { if (form.ShowDialog() == DialogResult.OK) { SaveConfiguration(copy, ConfigurationFileTextBox.Text); } } }