Beispiel #1
0
 public Form1()
 {
     InitializeComponent();
     generateBall   = 0;
     ballDoc        = new BallDoc();
     random         = new Random();
     timer          = new Timer();
     timer.Interval = 100;
     timer.Enabled  = true;
     timer.Tick    += new EventHandler(timer1_Tick);
     timer.Start();
     DoubleBuffered = true;
 }
Beispiel #2
0
 private void toolStripLabel1_Click(object sender, EventArgs e)
 {
     ballDoc = new BallDoc();
     Invalidate(true);
 }