コード例 #1
0
ファイル: Cricket.cs プロジェクト: Jeggins/DartCounter
 public Cricket(int player, int startPoints, string player1, string player2, Form1 f1)
 {
     InitializeComponent();
     panel_Player2.Visible  = true;
     label_Player1Name.Text = player1;
     label_Player2Name.Text = player2;
     this.f1 = f1;
     string[] names = new string[2] {
         player1, player2
     };
     cg = new CricketGame(player, startPoints, names);
     for (int i = 0; i < player; i++)
     {
         UpdateScreen(false);
         cg.NextPlayer();
     }
     UpdateScreen(false);
 }