Exemple #1
0
 public void SetupDesign()
 {
     //this.BackColor = SystemColors.ButtonFace;
     this.Location = new Point(XLoc * CellSize, YLoc * CellSize);
     this.Size     = new Size(CellSize, CellSize);
     this.UseVisualStyleBackColor = false;
     this.Font      = new Font("Verdana", 15.75F, FontStyle.Bold);
     this.CellState = CellState.Closed;
     this.inCell    = ObjectInCell.Nothing;
 }
Exemple #2
0
 public void OnClick(int turn)
 {
     this.CellState = CellState.Opened;
     //blue
     if (turn == 0)
     {
         this.inCell    = ObjectInCell.Blue;
         this.BackColor = ColorTranslator.FromHtml("0x0000FF");
     }
     //red
     else
     {
         this.inCell    = ObjectInCell.Red;
         this.BackColor = ColorTranslator.FromHtml("0xFF0000");
     }
 }