public ThemePart AddPart(int partId, string partName = null) { ThemePart part = FindPart(partId); if (part != null) { return(part); } part = new ThemePart(this, partId, partName ?? ThemeInfo.GetPartName(ClassName, partId)); if (partId == 0) { classPart = part; } else { parts.Add(part); } return(part); }
public static Tuple <int, string>[] GetStates(ThemePart part) { return(GetClass(part.Parent.Name).GetStates(part.Id)); }
public ThemeState(ThemePart parent, int id, string name) { Parent = parent; Id = id; Name = name; }
private int ComparePart(ThemePart x, ThemePart y) { return(x.Id.CompareTo(y.Id)); }