Esempio n. 1
0
        private void btnAdd_Click(object sender, RoutedEventArgs e)
        {
            Karta         novaKarta = new Karta();
            AddNEditKarta few       = new AddNEditKarta(novaKarta);
            bool?         rez       = few.ShowDialog();

            DGKarte.Items.Refresh();
        }
Esempio n. 2
0
        private void btnUpdate_Click(object sender, RoutedEventArgs e)
        {
            while (SelektovanaKarta())
            {
                return;
            }
            Karta         selektovanaKarta = DGKarte.SelectedItem as Karta;
            AddNEditKarta few = new AddNEditKarta(selektovanaKarta, AddNEditKarta.EOpcija.IZMENA);

            if (few.ShowDialog() == true)
            {
                DGKarte.Items.Refresh();
            }
        }