Esempio n. 1
0
        private void buttonAddDelivery_Click(object sender, RoutedEventArgs e)
        {
            DeliveryEdit f = new DeliveryEdit()
            {
                IdDelivery = -1
            };

            f.EmployeeId = EmployeeId;
            f.Closing   += DeliveryEdit_closing;
            f.ShowDialog();
        }
Esempio n. 2
0
 private void button_InfoDelivery_Click(object sender, RoutedEventArgs e)
 {
     if (dataGrid_Delivery.SelectedItem != null)
     {
         DeliveryNote delnote = dataGrid_Delivery.SelectedItem as DeliveryNote;
         DeliveryEdit wind    = new DeliveryEdit()
         {
             IdDelivery = delnote.Id
         };
         wind.EmployeeId = EmployeeId;
         wind.Closing   += DeliveryEdit_closing;
         wind.ShowDialog();
     }
     else
     {
         MessageBox.Show("Выберите запись для подробного просмотра", "Ошибка");
     }
 }