/// <summary>
        /// event for the winning of myself
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void MyMazeBoard_YouWonEvent(object sender, EventArgs e)
        {
            winning = true;
            this.Close();
            YouWon youWon = new YouWon();

            youWon.Show();
        }
예제 #2
0
        /// <summary>
        /// event for the winning of myself
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void MyMazeBoard_YouWonEvent(object sender, EventArgs e)
        {
            gameClosed   = true;
            gameFinished = true;
            YouWon youWon = new YouWon();

            youWon.Show();
            this.Close();
            vm.CloseGame();
        }