Пример #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();
            };
        }
Пример #2
0
        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();
            };
        }
Пример #3
0
        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();//??
            };
        }