Esempio n. 1
0
 /// <summary>
 /// update a info object already stored in the database
 /// </summary>
 /// <param name="info"></param>
 public void UpdateDemo(DemoInfo info)
 {
     //check we have some content to update
     if (info.Content != string.Empty)
     {
         DataProvider.Instance().UpdateDemo(info.ModuleId, info.ItemId, info.Content, info.CreatedByUser);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Adds a new DemoInfo object into the database
 /// </summary>
 /// <param name="info"></param>
 public void AddDemo(DemoInfo info)
 {
     //check we have some content to store
     if (info.Content != string.Empty)
     {
         DataProvider.Instance().AddDemo(info.ModuleId, info.Content, info.CreatedByUser);
     }
 }
Esempio n. 3
0
 /// <summary>
 /// update a info object already stored in the database
 /// </summary>
 /// <param name="info"></param>
 public void UpdateDemo(DemoInfo info)
 {
     //check we have some content to update
     if (info.Content != string.Empty)
     {
         DataProvider.Instance().UpdateDemo(info.ModuleId, info.ItemId, info.Content, info.CreatedByUser);
     }
 }
Esempio n. 4
0
 /// <summary>
 /// Adds a new DemoInfo object into the database
 /// </summary>
 /// <param name="info"></param>
 public void AddDemo(DemoInfo info)
 {
     //check we have some content to store
     if (info.Content != string.Empty)
     {
         DataProvider.Instance().AddDemo(info.ModuleId, info.Content, info.CreatedByUser);
     }
 }
Esempio n. 5
0
        /// <summary>
        /// imports a module from an xml file
        /// </summary>
        /// <param name="ModuleID"></param>
        /// <param name="Content"></param>
        /// <param name="Version"></param>
        /// <param name="UserID"></param>
        public void ImportModule(int ModuleID, string Content, string Version, int UserID)
        {
            XmlNode infos = DotNetNuke.Common.Globals.GetContent(Content, "Demos");

            foreach (XmlNode info in infos.SelectNodes("Demo"))
            {
                DemoInfo DemoInfo = new DemoInfo();
                DemoInfo.ModuleId      = ModuleID;
                DemoInfo.Content       = info.SelectSingleNode("content").InnerText;
                DemoInfo.CreatedByUser = UserID;

                AddDemo(DemoInfo);
            }
        }
Esempio n. 6
0
        /// <summary>
        /// imports a module from an xml file
        /// </summary>
        /// <param name="ModuleID"></param>
        /// <param name="Content"></param>
        /// <param name="Version"></param>
        /// <param name="UserID"></param>
        public void ImportModule(int ModuleID, string Content, string Version, int UserID)
        {
            XmlNode infos = DotNetNuke.Common.Globals.GetContent(Content, "Demos");

            foreach (XmlNode info in infos.SelectNodes("Demo"))
            {
                DemoInfo DemoInfo = new DemoInfo();
                DemoInfo.ModuleId = ModuleID;
                DemoInfo.Content = info.SelectSingleNode("content").InnerText;
                DemoInfo.CreatedByUser = UserID;

                AddDemo(DemoInfo);
            }
        }