Beispiel #1
0
        private void buttonPromeni_Click(object sender, RoutedEventArgs e)
        {
            if (dataGridLetovi.SelectedIndex == -1)
            {
                MessageBox.Show("Morate selektovati let");
                return;
            }

            Let           let = (Let)dataGridLetovi.SelectedItem;
            EditLetWindow el  = new EditLetWindow(let, Stanje.Izmena);

            el.ShowDialog();
        }
Beispiel #2
0
        private void buttonDodaj_Click(object sender, RoutedEventArgs e)
        {
            EditLetWindow el = new EditLetWindow(new Let(), Stanje.Dodavanje);

            el.ShowDialog();
        }