/// <summary>
 /// Activates a Keyframe.
 /// </summary>
 /// <param name="index">The Index.</param>
 public void ActivateKeyframe(int index)
 {
     if (index <= _keyframes.Count - 1)
     {
         CurrentKeyframe = _keyframes[index];
         Rectangle = CurrentKeyframe.DisplayRectangle;
     }
 }
Example #2
0
 /// <summary>
 /// Adds a new Keyframe.
 /// </summary>
 /// <param name="keyframe">The Keyframe.</param>
 public void Add(Keyframe keyframe)
 {
     _keyframes.Add(keyframe);
 }
 /// <summary>
 /// Adds a new Keyframe.
 /// </summary>
 /// <param name="keyframe">The Keyframe.</param>
 public void Add(Keyframe keyframe)
 {
     _keyframes.Add(keyframe);
 }
 /// <summary>
 /// Removes a Keyframe.
 /// </summary>
 /// <param name="keyframe">The Keyframe.</param>
 public void Remove(Keyframe keyframe)
 {
     if (_keyframes.Contains(keyframe))
     {
         _keyframes.Remove(keyframe);
     }
 }