AnimatGuiCtrls.Controls.KeyFrameVideoRange.SetTimes C# (CSharp) Method

SetTimes() public method

public SetTimes ( long lStart, long lEnd ) : void
lStart long
lEnd long
return void
        public override void SetTimes(long lStart, long lEnd)
        {
            if(lStart < 0 || lEnd < 0)
                throw new System.Exception("The start/end millisecond time for a keyframe can not be less than zero.");

            long lTemp;
            //If the start and end times are swapped then swap them back correctly.
            if(lEnd < lStart)
            {
                lTemp = lStart;
                lStart = lEnd;
                lEnd = lTemp;
            }

            _StartMillisecond = lStart;
            _EndMillisecond = lEnd;
        }