private void duration_ValueChanged(object sender, EventArgs e) { if (tileSheet != null && Sprite.Count > 0 && Sprite.Count >= currentFrame.Value) Sprite[(int)currentFrame.Value - 1].Duration = (int)duration.Value; }