private void timerPlayPreview_Tick(object sender, EventArgs e)
{
_timerPlayPreview.Tick -= timerPlayPreview_Tick;
//Sets the interval for this frame. If this frame has 500ms, the next frame will take 500ms to show.
_timerPlayPreview.Interval = _listDelayEdit[_actualFrame];
pictureBitmap.Image = new Bitmap(_listFramesEdit[_actualFrame]);
if (_listFramesEdit.Count - 1 == _actualFrame)
{
_actualFrame = 0;
}
else
{
_actualFrame++;
}
_timerPlayPreview.Tick += timerPlayPreview_Tick;
GC.Collect(2);
}