public Form1()
 {
     InitializeComponent();
     ballsDoc            = new BallsDoc();
     currentColor        = Color.Red;
     this.DoubleBuffered = true;
     timer          = new Timer();
     timer.Interval = 50;
     timer.Tick    += new EventHandler(timer_Tick);
     timer.Start();
     leftX  = 20;
     topY   = 60;
     width  = this.Width - (3 * leftX);
     height = this.Height - (int)(2.5 * topY);
     ballsDoc.GenerateHoles(leftX, topY, width, height);
 }
Пример #2
0
 public Form1()
 {
     InitializeComponent();
     ballsDoc = new BallsDoc();
     currentColor = Color.Red;
     this.DoubleBuffered = true;
     timer = new Timer();
     timer.Interval = 50;
     timer.Tick += new EventHandler(timer_Tick);
     timer.Start();
     leftX = 20;
     topY = 60;
     width = this.Width - (3 * leftX);
     height = this.Height - (int)(2.5 * topY);
     ballsDoc.GenerateHoles(leftX, topY, width, height);
 }
 private void toolStripButton1_Click(object sender, EventArgs e)
 {
     ballsDoc.GenerateHoles(leftX, topY, width, height);
 }