/// <summary>
 ///     Initializes the control with animation data.
 /// </summary>
 /// <param name="renderEngine">Renderer used to render the model</param>
 /// <param name="ctrl">The animation control</param>
 /// <param name="anms">The list with animations</param>
 /// <param name="t">The animation type (used on Export/Import options)</param>
 public void initialize(RenderEngine renderEngine, RenderEngine.animationControl ctrl, RenderBase.OAnimationListBase anms, FileIO.fileType t)
 {
     renderer = renderEngine;
     control = ctrl;
     animations = anms;
     type = t;
     control.FrameChanged += Control_FrameChanged;
     updateList();
 }
 public void launch(RenderEngine renderEngine, FileIO.fileType type)
 {
     renderer = renderEngine;
     this.type = type;
     switch (type)
     {
         case FileIO.fileType.skeletalAnimation:
             control = renderer.ctrlSA;
             animations = renderer.models.skeletalAnimation;
             break;
         case FileIO.fileType.materialAnimation:
             control = renderer.ctrlMA;
             animations = renderer.models.materialAnimation;
             break;
         case FileIO.fileType.visibilityAnimation:
             control = renderer.ctrlVA;
             animations = renderer.models.visibilityAnimation;
             break;
     }
     
     control.FrameChanged += Control_FrameChanged;
     updateList();
 }