Exemplo n.º 1
0
 private void ShowFinishedScreen()
 {
     HideScreens();
     Controls.Remove(finishedControl);
     finishedControl = new FinishedControl();
     Controls.Add(finishedControl);
     finishedControl.Configure(game);
     finishedControl.Show();
 }
Exemplo n.º 2
0
        public MainForm()
        {
            StartPosition = FormStartPosition.Manual;
            Location      = new Point(5, 5);

            MinimizeBox = false;

            game = new GameState();
            game.StageChanged += Game_OnStageChanged;
            startControl       = new StartControl();
            playControl        = new PlayControl(game);
            finishedControl    = new FinishedControl();
            dialogueControl    = new DialogueControl();
            choiceControl      = new ChoiceCharacterControl();
            Controls.Add(playControl);

            ClientSizeChanged += HandleResize;
            ShowStartScreen();
        }