Ejemplo n.º 1
0
        private static void addTheme(JabberPoint.Data.theme data, string inputUrl)
        {
            var theme = new JabberPoint.Domain.Themes.ThemeCollection
            {
                Name = inputUrl
            };

            foreach (var filter in data.themefilters)
            {
                if (string.Compare(filter.@for, "default", true) == 0)
                {
                    theme.PageThemes.Add(-1, SetPageTheme(filter, data.styles));
                }
                else
                {
                    foreach (var page in [email protected](','))
                    {
                        theme.PageThemes.Add(int.Parse(page), SetPageTheme(filter, data.styles));
                    }
                }
            }
        }
Ejemplo n.º 2
0
        private void Read()
        {
            XmlSerializer mySerializer = new XmlSerializer(typeof(theme));

            this.RootObject = (theme)mySerializer.Deserialize(new FileStream(this.InputUrl, FileMode.Open));
        }