/// ----------------------------------------------------------------------------- /// <summary> /// adds an object to the database /// </summary> /// <remarks> /// </remarks> /// <param name="objSF_EventsListLite">The SF_EventsListLiteInfo object</param> /// <history> /// </history> /// ----------------------------------------------------------------------------- public void AddSF_EventsListLite(SF_EventsListLiteInfo objSF_EventsListLite) { if (objSF_EventsListLite.Content.Trim() != "") { DataProvider.Instance().AddSF_EventsListLite(objSF_EventsListLite.ModuleId, objSF_EventsListLite.Content, objSF_EventsListLite.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_EventsListLites = Globals.GetContent(Content, "SF_EventsListLites"); foreach (XmlNode xmlSF_EventsListLite in xmlSF_EventsListLites.SelectNodes("SF_EventsListLite")) { SF_EventsListLiteInfo objSF_EventsListLite = new SF_EventsListLiteInfo(); objSF_EventsListLite.ModuleId = ModuleID; objSF_EventsListLite.Content = xmlSF_EventsListLite.SelectSingleNode("content").InnerText; objSF_EventsListLite.CreatedByUser = UserId; AddSF_EventsListLite(objSF_EventsListLite); } }