void NewGameMethod() { CurrentGame = new Game(); CurrentGame.OnWriting += Write; CurrentGame.OnShareBought += UpdateShareCollectionDisplay; CurrentGame.OnNewShareAvailable += UpdateCurrentShareDisplay; SetupGameButton.Show(); Output.Clear(); PlayerDisplayPanel.Hide(); CurrentShareBox.Hide(); TurnPanel.Hide(); }
void OKButtonMethod() { var action = ActionsBox.SelectedItem; if (action == null) { return; } CurrentPlayer.Action = ActionsBox.SelectedItem.ToString(); ActionsBox.SelectedItem = null; TurnPanel.Hide(); }