/// -----------------------------------------------------------------------------
 /// <summary>
 /// adds an object to the database
 /// </summary>
 /// <remarks>
 /// </remarks>
 /// <param name="objATI_Player">The ATI_PlayerInfo object</param>
 /// <history>
 /// </history>
 /// -----------------------------------------------------------------------------
 public void AddATI_Player(ATI_PlayerInfo objATI_Player)
 {
     if (objATI_Player.Content.Trim() != "")
     {
         DataProvider.Instance().AddATI_Player(objATI_Player.ModuleId, objATI_Player.Content, objATI_Player.CreatedByUser);
     }
 }
 /// -----------------------------------------------------------------------------
 /// <summary>
 /// adds an object to the database
 /// </summary>
 /// <remarks>
 /// </remarks>
 /// <param name="objATI_Player">The ATI_PlayerInfo object</param>
 /// <history>
 /// </history>
 /// -----------------------------------------------------------------------------
 public void AddATI_Player(ATI_PlayerInfo objATI_Player)
 {
     if (objATI_Player.Content.Trim() != "")
     {
         DataProvider.Instance().AddATI_Player(objATI_Player.ModuleId, objATI_Player.Content, objATI_Player.CreatedByUser);
     }
 }
        /// -----------------------------------------------------------------------------
        /// <summary>
        /// ImportModule implements the IPortable ImportModule Interface
        /// </summary>
        /// <remarks>
        /// </remarks>
        /// <param name="ModuleID">The Id of the module to be imported</param>
        /// <param name="Content">The content to be imported</param>
        /// <param name="Version">The version of the module to be imported</param>
        /// <param name="UserId">The Id of the user performing the import</param>
        /// <history>
        /// </history>
        /// -----------------------------------------------------------------------------
        public void ImportModule(int ModuleID, string Content, string Version, int UserId)
        {
            XmlNode xmlATI_Players = Globals.GetContent(Content, "ATI_Players");

            foreach (XmlNode xmlATI_Player in xmlATI_Players.SelectNodes("ATI_Player"))
            {
                ATI_PlayerInfo objATI_Player = new ATI_PlayerInfo();

                objATI_Player.ModuleId      = ModuleID;
                objATI_Player.Content       = xmlATI_Player.SelectSingleNode("content").InnerText;
                objATI_Player.CreatedByUser = UserId;
                AddATI_Player(objATI_Player);
            }
        }
        /// -----------------------------------------------------------------------------
        /// <summary>
        /// ImportModule implements the IPortable ImportModule Interface
        /// </summary>
        /// <remarks>
        /// </remarks>
        /// <param name="ModuleID">The Id of the module to be imported</param>
        /// <param name="Content">The content to be imported</param>
        /// <param name="Version">The version of the module to be imported</param>
        /// <param name="UserId">The Id of the user performing the import</param>
        /// <history>
        /// </history>
        /// -----------------------------------------------------------------------------
        public void ImportModule(int ModuleID, string Content, string Version, int UserId)
        {
            XmlNode xmlATI_Players = Globals.GetContent(Content, "ATI_Players");

            foreach (XmlNode xmlATI_Player in xmlATI_Players.SelectNodes("ATI_Player"))
            {
                ATI_PlayerInfo objATI_Player = new ATI_PlayerInfo();

                objATI_Player.ModuleId = ModuleID;
                objATI_Player.Content = xmlATI_Player.SelectSingleNode("content").InnerText;
                objATI_Player.CreatedByUser = UserId;
                AddATI_Player(objATI_Player);
            }
        }