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

            foreach (XmlNode xmlSF_EventsMap in xmlSF_EventsMaps.SelectNodes("SF_EventsMap"))
            {
                SF_EventsMapInfo objSF_EventsMap = new SF_EventsMapInfo();

                objSF_EventsMap.ModuleId      = ModuleID;
                objSF_EventsMap.Content       = xmlSF_EventsMap.SelectSingleNode("content").InnerText;
                objSF_EventsMap.CreatedByUser = UserId;
                AddSF_EventsMap(objSF_EventsMap);
            }
        }