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); }
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(); }
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); }