示例#1
0
 public void doAction(GameController controller, IMainWindow mainWindow)
 {
     mainWindow.SwitchToGameAreaVisual();
     mainWindow.ClearButtomsArea();
     mainWindow.AddNewButton();
     mainWindow.AddLoadSaveButton();
     mainWindow.AddLoadRandSaveButton();
     controller.ResetModelFilledWithDeadCells();
     mainWindow.Update();
 }
示例#2
0
        public void doAction(GameController controller, IMainWindow mainWindow)
        {
            if (controller.State is GameState)
            {
                controller.WriteLogEndOfGame();
            }

            mainWindow.SwitchToGameAreaVisual();
            mainWindow.ClearButtomsArea();
            mainWindow.AddContinueButton();
            mainWindow.AddSaveGameButton();
            mainWindow.AddLoadSaveButton();
            mainWindow.AddExitButton();


            controller.Timer.Stop();
            mainWindow.Update();
        }