コード例 #1
0
        private void EndGameActionHandler(object sender, EndGameEventArgs args)
        {
            int           points     = args.Points;
            EndGameWindow endGameWnd = new EndGameWindow(points);

            endGameWnd.Show();
            this.window.Close();
        }
コード例 #2
0
 private void OnLostEvent(EventData eData)
 {
     _leftInfoPanel.SetActive(false);
     if (!TypeGameSelector.IsSingle)
     {
         _rightInfoPanel.SetActive(false);
     }
     _endGameWindow.Show(TypeGameSelector.IsSingle, TypeGameSelector.IsScore);
 }
コード例 #3
0
ファイル: WpfRenderer.cs プロジェクト: plmng/SoftUni_OOP_HWs
        public void ShowGameSatgeView(GameResult gameStage)
        {
            var endGameWindow = new EndGameWindow(gameStage)
            {
                Height = AppSettings.WindowHeight,
                Width = AppSettings.WindowWidth,
                ResizeMode = ResizeMode.NoResize,
                WindowStartupLocation = WindowStartupLocation.CenterScreen,
                Background = new ImageBrush(new BitmapImage(new Uri(AppSettings.WindowBackgraund))),
                Icon = new BitmapImage(new Uri(AppSettings.WindowIcon))
            };
            endGameWindow.Show();

            foreach (Window window in Application.Current.Windows.Cast<Window>().Where(window => window.Title == "The Beer Belly Game"))
            {
                window.Close();
            }
        }
コード例 #4
0
 private void PlayEndGame()
 {
     addEndGameWindow = new EndGameWindow();
     addEndGameWindow.Show();
     counterVraag = 0;
     totaalPunten = 0;
     counterVraag = 0;
 }