Beispiel #1
0
 private void EditOrderButton_Click(object sender, EventArgs e)
 {
     try
     {
         OrderWorkingForm productWorkingForm = new OrderWorkingForm(ordersList.FirstOrDefault(x => x.id == (int)OrderDataGridView.CurrentRow.Cells[0].Value), currentUser);
         productWorkingForm.ShowDialog();
     }
     catch (Exception)
     {
         MessageBox.Show("Выберите заказ для редактирования", "Ошибка");
     }
 }
Beispiel #2
0
        private void AddOrderButton_Click(object sender, EventArgs e)
        {
            OrderWorkingForm orderWorkingForm = new OrderWorkingForm(currentUser);

            orderWorkingForm.ShowDialog();
        }