/// -----------------------------------------------------------------------------
 /// <summary>
 /// adds an object to the database
 /// </summary>
 /// <remarks>
 /// </remarks>
 /// <param name="objATI_Streamer">The ATI_StreamerInfo object</param>
 /// <history>
 /// </history>
 /// -----------------------------------------------------------------------------
 public void AddATI_Streamer(ATI_StreamerInfo objATI_Streamer)
 {
     if (objATI_Streamer.Content.Trim() != "")
     {
         DataProvider.Instance().AddATI_Streamer(objATI_Streamer.ModuleId, objATI_Streamer.Content, objATI_Streamer.CreatedByUser);
     }
 }
 /// -----------------------------------------------------------------------------
 /// <summary>
 /// adds an object to the database
 /// </summary>
 /// <remarks>
 /// </remarks>
 /// <param name="objATI_Streamer">The ATI_StreamerInfo object</param>
 /// <history>
 /// </history>
 /// -----------------------------------------------------------------------------
 public void AddATI_Streamer(ATI_StreamerInfo objATI_Streamer)
 {
     if (objATI_Streamer.Content.Trim() != "")
     {
         DataProvider.Instance().AddATI_Streamer(objATI_Streamer.ModuleId, objATI_Streamer.Content, objATI_Streamer.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_Streamers = Globals.GetContent(Content, "ATI_Streamers");

            foreach (XmlNode xmlATI_Streamer in xmlATI_Streamers.SelectNodes("ATI_Streamer"))
            {
                ATI_StreamerInfo objATI_Streamer = new ATI_StreamerInfo();

                objATI_Streamer.ModuleId      = ModuleID;
                objATI_Streamer.Content       = xmlATI_Streamer.SelectSingleNode("content").InnerText;
                objATI_Streamer.CreatedByUser = UserId;
                AddATI_Streamer(objATI_Streamer);
            }
        }
        /// -----------------------------------------------------------------------------
        /// <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_Streamers = Globals.GetContent(Content, "ATI_Streamers");

            foreach (XmlNode xmlATI_Streamer in xmlATI_Streamers.SelectNodes("ATI_Streamer"))
            {
                ATI_StreamerInfo objATI_Streamer = new ATI_StreamerInfo();

                objATI_Streamer.ModuleId = ModuleID;
                objATI_Streamer.Content = xmlATI_Streamer.SelectSingleNode("content").InnerText;
                objATI_Streamer.CreatedByUser = UserId;
                AddATI_Streamer(objATI_Streamer);
            }
        }