Beispiel #1
0
        public int Add(string PropName, OtherItem item)
        {
            switch (PropName)
            {
                case "Units":
                    Units.Add(new UnitItem(item));
                    break;
                case "Colors":
                    Colors.Add(new ColorItem(item));
                    break;

                default:
                    return -1;
            }
            return 1;
        }
Beispiel #2
0
 public UnitItem(OtherItem item)
 {
     this.ID = item.ID;
     this.Name = item.Name;
 }
Beispiel #3
0
 public ColorItem(OtherItem item)
 {
     this.ID = item.ID;
     this.Name = item.Name;
 }