Example #1
0
        private void GridMain_CellDoubleClick(object sender, ODGridClickEventArgs e)
        {
            ScheduledProcess           selectedSchedProc          = gridMain.SelectedTag <ScheduledProcess>();
            FormScheduledProcessesEdit formScheduledProcessesEdit = new FormScheduledProcessesEdit(selectedSchedProc);

            if (formScheduledProcessesEdit.ShowDialog() != DialogResult.OK)
            {
                return;
            }
            FillGrid();
        }
Example #2
0
        private void butAdd_Click(object sender, EventArgs e)
        {
            ScheduledProcess schedProc = new ScheduledProcess();

            schedProc.IsNew = true;
            FormScheduledProcessesEdit formScheduledProcessesEdit = new FormScheduledProcessesEdit(schedProc);

            if (formScheduledProcessesEdit.ShowDialog() != DialogResult.OK)
            {
                return;
            }
            FillGrid();
        }