Example #1
0
        public void UpdateThemeType(skThemeType ThemeTypeObject)
        {
            dtTheme ThemeToUpdate = DB.dtThemes.Single(x => x.thID == ThemeTypeObject.ID);

            ThemeToUpdate.Name        = ThemeToUpdate.Name;
            ThemeToUpdate.Description = ThemeToUpdate.Description;
            ThemeToUpdate.ThemXML     = ThemeToUpdate.ThemXML;

            DB.SubmitChanges();
        }
Example #2
0
        public void AddThemeType(skThemeType ThemeTypeObject)
        {
            dtTheme newthem = new dtTheme
            {
                Description = ThemeTypeObject.Description,
                Name        = ThemeTypeObject.Name,
                ThemXML     = ThemeTypeObject.ThemeXML
            };

            DB.dtThemes.InsertOnSubmit(newthem);
            DB.SubmitChanges();
        }