private void btn_addJob_Click(object sender, EventArgs e) { var jobEditForm = new JobEditForm(); jobEditForm.ShowDialog(); RefreshJobView(jobEditForm.JobId); }
private void EditJobRow(DataGridViewRow row) { if (!(row.Tag is ManageJob job)) { return; } var jobEditForm = new JobEditForm(job); jobEditForm.ShowDialog(); RefreshJobView(job.Id); }