示例#1
0
文件: Game.cs 项目: LwPol/Makao
        private void GameState_GameEnded(object sender, EventArgs e)
        {
            MethodInvoker gameEndedHandler = () =>
            {
                mainLoop.Running = false;

                MessageBox.Show(MainWindow, "Game Ended!", "This is the end...", MessageBoxButtons.OK, MessageBoxIcon.Information);

                CtrlInstance = new StartingMenu();
            };

            mainWindow.Invoke(gameEndedHandler);
        }
示例#2
0
 private void Return_Click(object sender, EventArgs e)
 {
     CtrlInstance = new StartingMenu();
 }