Beispiel #1
0
 private void btn_Modeling_Click(object sender, RoutedEventArgs e)
 {
     if (chosenElements.Count > 0)
     {
         this.Hide();
         Data.pushWindow(this);
         WModeling.Instance.Open(chosenElements);
     }
 }
        private void brd_MouseDown(object sender, MouseButtonEventArgs e)
        {
            Border b = (Border)sender;

            switch (b.Name)
            {
            case "brd_LoadingBaner":
                this.Hide();
                Data.getWindow(true);
                Data.getWindow(true).Show();
                break;

            case "brd_MenuMain":
                this.Hide();
                Data.getWindow(true).Show();
                break;

            case "brd_Test":
                this.Hide();
                Data.pushWindow(this);
                WTests.Instance.Show();
                break;

            case "brd_MenuModeling":
                this.Hide();
                Data.pushWindow(this);
                WMenuModeling.Instance.Show();
                break;

            case "brd_Theory":
                this.Hide();
                Data.pushWindow(this);
                WTheory.Instance.Show();
                break;

            case "brd_Settings":
                wSettings.Instance.ShowDialog();
                break;

            case "brd_ElementCreater":
                wElementCreater.ElementCreater.ShowDialog();
                break;
            }
        }
Beispiel #3
0
 private void Label_MouseDown(object sender, MouseButtonEventArgs e)
 {
     this.Hide();
     Data.pushWindow(this);
     WMenuMain.Instance.Show();
 }
 private void im_Test_MouseDown(object sender, MouseButtonEventArgs e)
 {
     this.Hide();
     Data.pushWindow(this);
     WTests.Instance.Show();
 }
 private void im_Map_MouseDown(object sender, MouseButtonEventArgs e)
 {
     this.Hide();
     Data.pushWindow(this);
     WApplicationMap.Instance.Show();
 }
 private void im_ModelingMenu_MouseDown(object sender, MouseButtonEventArgs e)
 {
     this.Hide();
     Data.pushWindow(this);
     WMenuModeling.Instance.Show();
 }