Exemple #1
0
        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);
        }
Exemple #2
0
 public static Tuple <int, string>[] GetStates(ThemePart part)
 {
     return(GetClass(part.Parent.Name).GetStates(part.Id));
 }
Exemple #3
0
 public ThemeState(ThemePart parent, int id, string name)
 {
     Parent = parent;
     Id     = id;
     Name   = name;
 }
Exemple #4
0
 private int ComparePart(ThemePart x, ThemePart y)
 {
     return(x.Id.CompareTo(y.Id));
 }