示例#1
0
        private void btn_addJob_Click(object sender, EventArgs e)
        {
            var jobEditForm = new JobEditForm();

            jobEditForm.ShowDialog();
            RefreshJobView(jobEditForm.JobId);
        }
示例#2
0
        private void EditJobRow(DataGridViewRow row)
        {
            if (!(row.Tag is ManageJob job))
            {
                return;
            }

            var jobEditForm = new JobEditForm(job);

            jobEditForm.ShowDialog();
            RefreshJobView(job.Id);
        }