예제 #1
0
 //build 3x3 game board
 private void build3on3()
 {
     board3 = new Board3x3(Turn, server, playerId, rivalId, this);
     this.ClientSize = new System.Drawing.Size(400, 400);
     elementHost1.Location = new System.Drawing.Point(15, 15);
     elementHost1.Name = "elementHost1";
     elementHost1.Size = new System.Drawing.Size(372, 321);
     elementHost1.TabIndex = 2;
     elementHost1.Text = "elementHost1";
     elementHost1.Child = board3;
     this.turn_label.Location = new System.Drawing.Point(82, 350);
     if (viewButton)
     {
         board3.IsEnabled = false;
         next_btn.Enabled = true;
         back_btn.Enabled = false;
         next_btn.Visible = true;
         back_btn.Visible = true;
         next_btn.Location = new System.Drawing.Point(320, 370);
         back_btn.Location = new System.Drawing.Point(10, 370);
     }
     Controls.Add(this.elementHost1);
 }