Exemplo n.º 1
0
        private void btnAdd_Click(object sender, RoutedEventArgs e)
        {
            Let         noviLet = new Let();
            AddNEditLet few     = new AddNEditLet(noviLet);
            bool?       rez     = few.ShowDialog();

            DGLetovi.Items.Refresh();
        }
Exemplo n.º 2
0
        private void btnUpdate_Click(object sender, RoutedEventArgs e)
        {
            while (SelektovaniLet())
            {
                return;
            }
            Let         selektovaniLet = DGLetovi.SelectedItem as Let;
            AddNEditLet few            = new AddNEditLet(selektovaniLet, AddNEditLet.EOpcija.IZMENA);

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