void timer_Tick(object sender, EventArgs e) { if (doc.Move()) { timer.Stop(); } Invalidate(true); }
void timer_Tick(object sender, EventArgs e) { doc.Move(this.Width, this.Height); doc.Colision(); Invalidate(true); }