コード例 #1
0
        public object Clone()
        {
            ThemeComponent clone = new ThemeComponent();

            clone.ID = mvarID;
            foreach (Rendering item in mvarRenderings)
            {
                clone.Renderings.Add(item.Clone() as Rendering);
            }
            return(clone);
        }
コード例 #2
0
        public ThemeComponent GetComponent(Guid id, Theme theme = null)
        {
            if (theme == null)
            {
                theme = this;
            }

            ThemeComponent tc = theme.Components[id];

            if (tc == null && theme.InheritsTheme != null)
            {
                return(GetComponent(id, theme.InheritsTheme));
            }

            return(tc);
        }