Exemple #1
0
 private void Tree_DoubleClick(object sender, RoutedEventArgs e)
 {
     if (xTree.SelectedItem is UgrozenaVrsta)
     {
         UgrozenaVrsta uv = (UgrozenaVrsta)xTree.SelectedItem;
         Window1       w1 = new Window1(uv, this);
         w1.ShowDialog();
     }
     else if (xTree.SelectedItem is TipVrste)
     {
         TipVrste tv = (TipVrste)xTree.SelectedItem;
         Window2  w2 = new Window2(tv, this);
         w2.ShowDialog();
     }
 }
Exemple #2
0
        private void demo_Begin(object sender, RoutedEventArgs e)
        {
            demoMode = true;
            Point p = dodajTipDugme.PointToScreen(new Point(0d, 0d));

            p.X += 20;
            p.Y += 10;

            LinearSmoothMove(p, 100);

            Window2 w2 = new Window2(this);

            w2.Show();
            Thread.Sleep(500);
            Application.Current.Dispatcher?.BeginInvoke(new Action(() => {
                w2.beginDemo();
            }));


            //Win32.ClientToScreen(this.Handle, ref p);
        }
Exemple #3
0
        private void dodajTip_Click(object sender, RoutedEventArgs e)
        {
            Window2 novi = new Window2(this);

            novi.ShowDialog();
        }