private void btnAddTaskConfig_Click(object sender, EventArgs e) { ServerPropertiesForm editPropFrm = new ServerPropertiesForm(HyperionTaskConfiguration.BuildUsingDefaultSettings()); editPropFrm.ShowDialog(); if (editPropFrm.SaveRequested) { _taskConfigurations.Add(editPropFrm.TaskConfiguration); PopulateTaskConfigRows(); } }
private void EditCurrentlySelectedTaskConfiguration() { int selectedRowIndex = dgTaskConfig.SelectedRows[0].Index; ServerPropertiesForm editPropFrm = new ServerPropertiesForm(_taskConfigurations[selectedRowIndex]); editPropFrm.ShowDialog(); if (editPropFrm.SaveRequested) { _taskConfigurations[selectedRowIndex] = editPropFrm.TaskConfiguration; PopulateTaskConfigRows(); } }