void timer_Tick(object sender, EventArgs e) { if (currentFrame - preFrame == 0) { Begin = false; this.Commit(); } preFrame = currentFrame; }