private void DodajTip_Executed(object sender, ExecutedRoutedEventArgs e) { WindowTip resurs = new WindowTip(); resurs.WindowStartupLocation = WindowStartupLocation.CenterScreen; resurs.ShowDialog(); }
private void Izmijeni_Click(object sender, RoutedEventArgs e) { if ((TipResursa)dgrMainTip.SelectedItem == null) { MessageBox.Show("MORATE SELEKTOVATI TIP", "UPOZORENJE", MessageBoxButton.OKCancel); } else { TipResursa izabrani = (TipResursa)dgrMainTip.SelectedItem; WindowTip izmenaTipa = new WindowTip(izabrani, mwin); izmenaTipa.ShowDialog(); } }
private void Tree_DoubleClick(object sender, RoutedEventArgs e) { if (xTree.SelectedItem is Resurs) { Resurs uv = (Resurs)xTree.SelectedItem; WindowResurs w1 = new WindowResurs(uv, this); w1.ShowDialog(); } else if (xTree.SelectedItem is TipResursa) { TipResursa tv = (TipResursa)xTree.SelectedItem; WindowTip w2 = new WindowTip(tv, this); w2.ShowDialog(); } }
private void dodajTip_Click(object sender, RoutedEventArgs e) { WindowTip novi = new WindowTip(this); novi.ShowDialog(); }