예제 #1
0
 private void ReStart()
 {
     second             = 0;
     this.textBox1.Text = "0:00";
     btns = new Boxs(cols, mineCount, btnWidth);
     this.timer1.Stop();
     this.Refresh();
 }
예제 #2
0
 private void Init(int cols, int mineCount, int btnWidth)
 {
     this.cols      = cols;
     this.mineCount = mineCount;
     this.btnWidth  = btnWidth;
     btns           = new Boxs(cols, mineCount, btnWidth);
     this.Width     = cols * btnWidth + 17;
     this.Height    = cols * btnWidth + 100;
 }