Ejemplo n.º 1
0
        private void Dodaj_Click(object sender, RoutedEventArgs e)
        {
            ViewBase vb = new ViewBase(1);
            vb.AddItemCallback = new AddItemDelegate(this.AddItemCallbackFn);
            vb.ShowDialog();

        }
Ejemplo n.º 2
0
 private void button1_Click(object sender, RoutedEventArgs e)
 { 
     AptekaDataDataContext con = new AptekaDataDataContext();
     ViewBase viewbase = new ViewBase();
     List<Lek> lek = (from l in con.Leks where l.Nazwa.StartsWith(textBox1.Text) || l.M_nazwa.StartsWith(textBox2.Text) select l).ToList();
     viewbase.LekGird.ItemsSource = lek;
     viewbase.search = 1;
     viewbase.ShowDialog();
 }
Ejemplo n.º 3
0
 //Przycisk Menu->Przyglądaj bazę
 private void MenuItem_Click_5(object sender, RoutedEventArgs e)
 {
     //Tworze okno "Przyglądaj bazę"
     ViewBase viewbase = new ViewBase();
     viewbase.ShowDialog();
 }