示例#1
0
        private void btnAddTaskConfig_Click(object sender, EventArgs e)
        {
            ServerPropertiesForm editPropFrm = new ServerPropertiesForm(HyperionTaskConfiguration.BuildUsingDefaultSettings());

            editPropFrm.ShowDialog();
            if (editPropFrm.SaveRequested)
            {
                _taskConfigurations.Add(editPropFrm.TaskConfiguration);
                PopulateTaskConfigRows();
            }
        }
示例#2
0
        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();
            }
        }