/// ----------------------------------------------------------------------------- /// <summary> /// adds an object to the database /// </summary> /// <remarks> /// </remarks> /// <param name="objATI_CompLiveScore">The ATI_CompLiveScoreInfo object</param> /// <history> /// </history> /// ----------------------------------------------------------------------------- public void AddATI_CompLiveScore(ATI_CompLiveScoreInfo objATI_CompLiveScore) { if (objATI_CompLiveScore.Content.Trim() != "") { DataProvider.Instance().AddATI_CompLiveScore(objATI_CompLiveScore.ModuleId, objATI_CompLiveScore.Content, objATI_CompLiveScore.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_CompLiveScores = Globals.GetContent(Content, "ATI_CompLiveScores"); foreach (XmlNode xmlATI_CompLiveScore in xmlATI_CompLiveScores.SelectNodes("ATI_CompLiveScore")) { ATI_CompLiveScoreInfo objATI_CompLiveScore = new ATI_CompLiveScoreInfo(); objATI_CompLiveScore.ModuleId = ModuleID; objATI_CompLiveScore.Content = xmlATI_CompLiveScore.SelectSingleNode("content").InnerText; objATI_CompLiveScore.CreatedByUser = UserId; AddATI_CompLiveScore(objATI_CompLiveScore); } }