예제 #1
0
        private void btnAdd_Click(object sender, RoutedEventArgs e)
        {
            Aerodrom       noviAerodrom = new Aerodrom();
            AddNEditWindow few          = new AddNEditWindow(noviAerodrom);
            bool?          rez          = few.ShowDialog();

            DGAerodromi.Items.Refresh();
        }
예제 #2
0
        private void btnUpdate_Click(object sender, RoutedEventArgs e)
        {
            while (SelektovaniAerodrom())
            {
                return;
            }
            Aerodrom       selektovaniAerodrom = DGAerodromi.SelectedItem as Aerodrom;
            AddNEditWindow few = new AddNEditWindow(selektovaniAerodrom, AddNEditWindow.EOpcija.IZMENA);

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