示例#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();
     }
 }
示例#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);
            }
        }