private void EndGameActionHandler(object sender, EndGameEventArgs args) { int points = args.Points; EndGameWindow endGameWnd = new EndGameWindow(points); endGameWnd.Show(); this.window.Close(); }
private void OnLostEvent(EventData eData) { _leftInfoPanel.SetActive(false); if (!TypeGameSelector.IsSingle) { _rightInfoPanel.SetActive(false); } _endGameWindow.Show(TypeGameSelector.IsSingle, TypeGameSelector.IsScore); }
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(); } }
private void PlayEndGame() { addEndGameWindow = new EndGameWindow(); addEndGameWindow.Show(); counterVraag = 0; totaalPunten = 0; counterVraag = 0; }