private void ReStart() { second = 0; this.textBox1.Text = "0:00"; btns = new Boxs(cols, mineCount, btnWidth); this.timer1.Stop(); this.Refresh(); }
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; }