void SetAnimation(int value) { if (value == 0xff) value = -1; animationsSpinButton.Value = value; area.AnimationIndex = value; }