コード例 #1
0
        private void DodajTip_Executed(object sender, ExecutedRoutedEventArgs e)
        {
            WindowTip resurs = new WindowTip();

            resurs.WindowStartupLocation = WindowStartupLocation.CenterScreen;
            resurs.ShowDialog();
        }
コード例 #2
0
        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();
            }
        }
コード例 #3
0
 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();
     }
 }
コード例 #4
0
        private void dodajTip_Click(object sender, RoutedEventArgs e)
        {
            WindowTip novi = new WindowTip(this);

            novi.ShowDialog();
        }