Пример #1
0
 private void Additional_Click(object sender, RoutedEventArgs e)
 {
     Lek selected = LekGird.SelectedItem as Lek;
     if (selected == null)
         MessageBox.Show("Nie wybrano żadnej pozycji!");
     else
     {
         addedit ae = new addedit(selected, 1);
         ae.Nazwa.IsReadOnly = true;
         ae.M_nazwa.IsReadOnly = true;
         ae.Kategoria.IsEnabled = false;
         ae.Postac.IsEnabled = false;
         ae.Cena.IsReadOnly = true;
         ae.Cena_h.IsReadOnly = true;
         ae.Dawka.IsReadOnly = true;
         ae.Refcheck.IsEnabled = false;
         ae.Refundacja.IsReadOnly = true;
         ae.Promcheck.IsEnabled = false;
         ae.Promocja.IsReadOnly = true;
         ae.Waznosc.IsReadOnly = true;
         ae.Zapisz.IsEnabled = false;
         ae.Opakowanie.IsReadOnly = true;
         ae.ShowDialog();
         Window_Loaded(null, null);
     }
 }
Пример #2
0
 private void Edituj_Click(object sender, RoutedEventArgs e)
 {
     Lek selected = LekGird.SelectedItem as Lek;
     if (selected == null)
         MessageBox.Show("Nie wybrano żadnej pozycji!");
     else
     {
         addedit ae = new addedit(selected, 1);
         ae.ShowDialog();
         Window_Loaded(null, null);
     }
 }
Пример #3
0
 private void Dodaj_Click(object sender, RoutedEventArgs e)
 {
     addedit ae = new addedit();
     ae.ShowDialog();
     Window_Loaded(null, null);
 }