Exemplo n.º 1
0
        private void editEmployee_btn_Click(object sender, EventArgs e)
        {
            Hide();
            var editEmployeeForm = new EditEmployeeForm(((User)(employees_dgv.CurrentRow.DataBoundItem)));

            editEmployeeForm.ShowDialog();
            Close();
        }
Exemplo n.º 2
0
 public override void HandleEditEvent(object selectedItem)
 {
     if (((User)selectedItem).Id != 1)
     {
         var editEmployeeForm = new EditEmployeeForm(((User)selectedItem));
         editEmployeeForm.ShowDialog();
     }
     else
     {
         MessageBox.Show("Admin Almighty ne moze biti izmenjen!");
         CloseDialog();
     }
 }