Пример #1
0
        private void Add_Employee_Click(object sender, EventArgs e)
        {
            Add_Edit_Employee AddEmployee = new Add_Edit_Employee(1, CurrentUser);

            AddEmployee.ShowDialog();
            this.Refresh();
        }
Пример #2
0
 private void Edit_Employee_Click(object sender, EventArgs e)
 {
     if (this.Employee_List_View.SelectedRows.Count == 1)
     {
         Add_Edit_Employee EditEmployee = new Add_Edit_Employee(2, CurrentUser);
         EditEmployee.SetDataBeforEdit(this.Employee_List_View, this.Employee_List_View.CurrentRow.Index);
         EditEmployee.ShowDialog();
         this.Refresh();
     }
     else
     {
         MessageBox.Show("Select ONE Record To Edit");
     }
 }