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;
}