private void onSceneUpdated(Scene sender) { // Update the GUI UpdateForm(); }
private void onSceneEnded(Scene sender) { // Disable the roll dice button and next turn button rollDiceButton.Enabled = false; nextTurnButton.Enabled = false; if (game.AmountOfPlayers != 1) { MessageBox.Show("The winner is: " + game.Winner.Name, "Notice", MessageBoxButtons.OK, MessageBoxIcon.Asterisk); } }
private void onSceneStarted(Scene sender) { // disable the nextTurnButton nextTurnButton.Enabled = false; // Enable the roll dice button rollDiceButton.Enabled = true; currentTurnLabel.Text = "1"; currentRollLabel.Text = "0"; }
/// <summary> /// An event that happens when the BonesGameScene turn has ended. /// </summary> private void onBonesGameSceneTurnEnded(Scene sender) { rollDiceButton.Enabled = false; nextTurnButton.Enabled = true; }