/// -----------------------------------------------------------------------------
 /// <summary>
 /// adds an object to the database
 /// </summary>
 /// <remarks>
 /// </remarks>
 /// <param name="objSF_ManageEvent">The SF_ManageEventInfo object</param>
 /// <history>
 /// </history>
 /// -----------------------------------------------------------------------------
 public void AddSF_ManageEvent(SF_ManageEventInfo objSF_ManageEvent)
 {
     if (objSF_ManageEvent.Content.Trim() != "")
     {
         DataProvider.Instance().AddSF_ManageEvent(objSF_ManageEvent.ModuleId, objSF_ManageEvent.Content, objSF_ManageEvent.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 xmlSF_ManageEvents = Globals.GetContent(Content, "SF_ManageEvents");

            foreach (XmlNode xmlSF_ManageEvent in xmlSF_ManageEvents.SelectNodes("SF_ManageEvent"))
            {
                SF_ManageEventInfo objSF_ManageEvent = new SF_ManageEventInfo();

                objSF_ManageEvent.ModuleId      = ModuleID;
                objSF_ManageEvent.Content       = xmlSF_ManageEvent.SelectSingleNode("content").InnerText;
                objSF_ManageEvent.CreatedByUser = UserId;
                AddSF_ManageEvent(objSF_ManageEvent);
            }
        }