Ejemplo n.º 1
0
        private void newGame_Click(object sender, EventArgs e)
        {
            pauseGame();
            GameSettings gs = new GameSettings(this.gb, true);
            gs.mainDialog = this;
            gs.ShowDialog();

            if (gs.DialogResult == DialogResult.OK)
                this.bestMove.Enabled = true;

            this.Activated += new System.EventHandler(FriskaDama_Activated);

            FriskaDama_Activated(sender, e);
        }
Ejemplo n.º 2
0
        private void settings_Click(object sender, EventArgs e)
        {
            pauseGame();
            GameSettings gs = new GameSettings(gb, false);
            gs.mainDialog = this;
            gs.ShowDialog();

            if (gs.DialogResult == DialogResult.OK)
                resumeGame();
        }
Ejemplo n.º 3
0
        private void newGame_Click(object sender, EventArgs e)
        {
            pauseGame();
            var gs = new GameSettings(gb, true);
            gs.mainDialog = this;
            gs.ShowDialog();

            if (gs.DialogResult == DialogResult.OK)
                bestMove.Enabled = true;

            Activated += FriskaDama_Activated;

            FriskaDama_Activated(sender, e);
        }