Пример #1
0
 private void EndGame()
 {
     if (MessageBox.Show("Wygrałeś", "Gratulacje", MessageBoxButton.YesNo) == MessageBoxResult.Yes)
     {
         Window window = new Pyramid();
         window.ShowDialog();
         this.Close();
     }
     else
     {
         this.Close();
     }
 }
Пример #2
0
        private void Pyramid_Click(object sender, RoutedEventArgs e)
        {
            Window pyramid = new Pyramid();

            pyramid.ShowDialog();
        }