private void PLAY_Click(object sender, EventArgs e) { for (int i = 0; i < STEPS.Value; i++) { NEXT_STEP.PerformClick(); pictureBox1.Update(); Thread.Sleep(DELAY.Value); } }
private void NEXT_STEP_KeyDown(object sender, KeyEventArgs e) { NEXT_STEP.PerformClick(); }