private void OnAddParameterButtonClick(object sender, EventArgs e) { using (var dlg = new AddParameterDialog(_configView.WorkingEnvironment, _configView.Repository)) { dlg.Run(_configView); } }
private void _addSystemParameter_Click(object sender, EventArgs e) { using (var dlg = new AddParameterDialog(_environment, ConfigFile.System)) { if (dlg.Run(this) == DialogResult.OK) { _systemCfg.Refresh(); } } }