/// <summary> /// Restaure la base de données d'animations /// </summary> /// <param name="pType">Type d'animations à sauver</param> public void RestaureAnim(Enums.AnimationType type) { RunServiceTask(delegate { _Business.RestaureAnim(type); }, Errors.ERROR_ANIMATION_STR_DBRESTORE, type.ToString()); }
/// <summary> /// Sauvegarde la base de données d'animations /// </summary> /// <param name="pType">Type d'animations à sauver</param> public void SaveAnim(Enums.AnimationType type, Guid charId) { RunServiceTask(delegate { _Business.SaveAnim(type, charId); }, Errors.ERROR_ANIMATION_STR_DBSAVE, type.ToString(), charId.ToString()); }
/// <summary> /// Charge le VO_Animation en fonction du type /// </summary> /// <param name="pType">Type d'animation</param> /// <param name="pId">Id de l'animation</param> /// <returns>Animation</returns> public VO_Animation LoadVOObject(Enums.AnimationType type, Guid id) { VO_Animation animation = null; RunServiceTask(delegate { animation = _Business.LoadVOObject(type, id); }, Errors.ERROR_ANIMATION_STR_LOAD, type.ToString(), id.ToString()); return(animation); }
/// <summary> /// Crée une animation /// </summary> /// <param name="pType">Type d'animation</param> /// <returns>VO_Animation</returns> public VO_Animation CreateAnimation(Enums.AnimationType type) { VO_Animation animation = null; RunServiceTask(delegate { animation = _Business.CreateAnimation(type); }, Errors.ERROR_ANIMATION_STR_CREATE, type.ToString()); return(animation); }
/// <summary> /// Charge la liste en fonction du type d'animation choisie /// </summary> /// <param name="pType">Type d'animation</param> /// <returns>Liste de VO_Base</returns> public List <VO_Base> ProvisionList(Enums.AnimationType type) { List <VO_Base> list = null; RunServiceTask(delegate { list = _Business.ProvisionList(type); }, Errors.ERROR_STR_LIST_PROVISION, type.ToString()); return(list); }