Exemplo n.º 1
0
 private void Izmena(object sender, RoutedEventArgs e)
 {
     if (datagrid.SelectedItem != null)
     {
         Prozor p = new Prozor();
         p.Owner       = this;
         p.DataContext = datagrid.SelectedItem;
         p.ShowDialog();
     }
 }
Exemplo n.º 2
0
        private void Dodaj(object sender, RoutedEventArgs e)
        {
            Prozor p = new Prozor();

            p.Owner = this;

            if (p.ShowDialog().Value)
            {
                Osobe.Add(p.DataContext as Osoba);
            }
        }