private void AnimTimer_Tick(object sender, EventArgs e) { FrameTracker.Maximum = _dir.Frames.Count - 1; if (FrameTracker.Maximum <= 0) { StopButton_Click(null, EventArgs.Empty); } else { if (FrameTracker.Value - 1 == -1) { FrameTracker.Value = FrameTracker.Maximum; } else { FrameTracker.Value--; } AnimPanel.Refresh(); AnimTimer.Interval = _dir.Frames[FrameTracker.Maximum - FrameTracker.Value].Delay * 10; UpdateLabels(); } }
private void FrameTracker_Scroll(object sender, EventArgs e) { AnimPanel.Refresh(); }