예제 #1
0
 void NewGameMethod()
 {
     CurrentGame                      = new Game();
     CurrentGame.OnWriting           += Write;
     CurrentGame.OnShareBought       += UpdateShareCollectionDisplay;
     CurrentGame.OnNewShareAvailable += UpdateCurrentShareDisplay;
     SetupGameButton.Show();
     Output.Clear();
     PlayerDisplayPanel.Hide();
     CurrentShareBox.Hide();
     TurnPanel.Hide();
 }
예제 #2
0
        void OKButtonMethod()
        {
            var action = ActionsBox.SelectedItem;

            if (action == null)
            {
                return;
            }
            CurrentPlayer.Action    = ActionsBox.SelectedItem.ToString();
            ActionsBox.SelectedItem = null;
            TurnPanel.Hide();
        }