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

            foreach (XmlNode xmlSF_EventsList in xmlSF_EventsLists.SelectNodes("SF_EventsList"))
            {
                SF_EventsListInfo objSF_EventsList = new SF_EventsListInfo();

                objSF_EventsList.ModuleId      = ModuleID;
                objSF_EventsList.Content       = xmlSF_EventsList.SelectSingleNode("content").InnerText;
                objSF_EventsList.CreatedByUser = UserId;
                AddSF_EventsList(objSF_EventsList);
            }
        }