Beispiel #1
0
 private void EditManagerButton_Click(object sender, EventArgs e)
 {
     try
     {
         ManagerWorkingForm productWorkingForm = new ManagerWorkingForm(managersList.FirstOrDefault(x => x.id == (int)ManagersDataGridView.CurrentRow.Cells[0].Value));
         productWorkingForm.ShowDialog();
     }
     catch (Exception)
     {
         MessageBox.Show("Выберите пользователя для редактирования", "Ошибка");
     }
 }
Beispiel #2
0
        private void AddNewManagerButton_Click(object sender, EventArgs e)
        {
            ManagerWorkingForm managerWorkingForm = new ManagerWorkingForm();

            managerWorkingForm.ShowDialog();
        }