public object Clone() { ThemeComponent clone = new ThemeComponent(); clone.ID = mvarID; foreach (Rendering item in mvarRenderings) { clone.Renderings.Add(item.Clone() as Rendering); } return(clone); }
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); }