Пример #1
0
        public virtual void AddProperty(PropertyItem property)
        {
            if (dicProperty == null)
            {
                dicProperty = new Dictionary<int, PropertyItem>();
            }
            if (dicProperty.ContainsKey(property.ID))
            {

            }
            dicProperty.Add(property.ID,property);
            property.Owner = this;
        }
Пример #2
0
 public virtual void AddProperty(int id, object content)
 {
     PropertyItem property = new PropertyItem(id,content);
     AddProperty(property);
 }