Ejemplo n.º 1
0
        private void Plotreturn_Click(object sender, RoutedEventArgs e)
        {
            HelloWindow hellowindow = new HelloWindow();

            hellowindow.Show();
            this.Close();
        }
Ejemplo n.º 2
0
        private void exit_Click(object sender, RoutedEventArgs e)
        {
            MessageBoxResult result = MessageBox.Show("Вернуться в главное меню?", " ", MessageBoxButton.YesNo, MessageBoxImage.Question);

            if (result == MessageBoxResult.Yes)
            {
                HelloWindow hellowindow = new HelloWindow();
                hellowindow.Show();
                this.Close();
            }

            if (result == MessageBoxResult.No)
            {
                this.Close();
            }
        }