private void Add_Job_Click(object sender, EventArgs e) { Add_Edit_Jobs AddJob = new Add_Edit_Jobs(1, CurrentUser); AddJob.ShowDialog(); this.Refresh(); }
private void Edit_Job_Click(object sender, EventArgs e) { if (this.Jobs_List_View.SelectedRows.Count == 1) { Add_Edit_Jobs Editjob = new Add_Edit_Jobs(2, CurrentUser); Editjob.SetDataBeforeEdit(this.Jobs_List_View, this.Jobs_List_View.CurrentRow.Index); Editjob.ShowDialog(); Refresh(); } else { MessageBox.Show("Select ONE Job To Edit"); } }