Beispiel #1
0
        private void MenuBtn_Click(object sender, RoutedEventArgs e)
        {
            WarningWindow wrw = new WarningWindow();

            wrw.Owner = this;
            wrw.Show();
            wrw.yesBtn.Click += delegate(object sender1, RoutedEventArgs e1)
            {
                this.Close();
            };
        }
        private void Restart_Click(object sender, RoutedEventArgs e)
        {
            WarningWindow wrw = new WarningWindow();

            wrw.Owner = this;
            wrw.Show();
            wrw.yesBtn.Click += delegate(object sender1, RoutedEventArgs e1)
            {
                sgvm.Restart();
                wrw.Close();
            };
        }
        private void MainMenu_Click(object sender, RoutedEventArgs e)
        {
            WarningWindow wrw = new WarningWindow();

            wrw.Owner = this;
            wrw.Show();
            wrw.yesBtn.Click += delegate(object sender1, RoutedEventArgs e1)
            {
                Application.Current.MainWindow.Show();
                this.Close();
                Owner.Close();//??
            };
        }