Exemplo n.º 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;
        }
Exemplo n.º 2
0
 public UnitItem(OtherItem item)
 {
     this.ID = item.ID;
     this.Name = item.Name;
 }
Exemplo n.º 3
0
 public ColorItem(OtherItem item)
 {
     this.ID = item.ID;
     this.Name = item.Name;
 }