예제 #1
0
        private void Add_Job_Click(object sender, EventArgs e)
        {
            Add_Edit_Jobs AddJob = new Add_Edit_Jobs(1, CurrentUser);

            AddJob.ShowDialog();
            this.Refresh();
        }
예제 #2
0
 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");
     }
 }