/// <summary> /// Execute les scripts d'animation /// </summary> /// <param name="animStage"></param> /// <param name="type"></param> /// <returns></returns> public bool ExecuteAnimationScript(VO_StageAnimation animStage, Enums.TriggerExecutionType type) { bool anim = false; RunServiceTask(delegate { anim = _Business.ExecuteAnimationScript(animStage, type); }, ViewerErrors.STAGE_LOAD_MENU, false, animStage.ToString(), type.ToString()); return(anim); }
/// <summary> /// Prépare une animation à être dessinée /// </summary> /// <param name="animation"></param> /// <returns></returns> public VO_AnimatedSprite DrawAnimated(VO_StageAnimation animation) { VO_AnimatedSprite animSprite = null; RunServiceTask(delegate { animSprite = _Business.DrawAnimated(animation); }, ViewerErrors.STAGE_LOAD_MENU, false, animation.ToString()); return(animSprite); }