Esempio n. 1
0
        public TDecorator CreateDecorator <TDecorator>(DecoratorId id, string description, params object[] parameters) where TDecorator : Decorator
        {
            TDecorator decorator = decoratorMap.CreateDecorator <TDecorator>(id, description, parameters);

            decorator.Decorative = this;
            return(decorator);
        }
Esempio n. 2
0
 public void SetValue <TKey, TValue>(DecoratorId id, TValue value)
 {
     this.Get <PairDecorator <TKey, TValue> >(id).Value = value;
 }
Esempio n. 3
0
 public TValue GetValue <TKey, TValue>(DecoratorId id)
 {
     return(this.Get <PairDecorator <TKey, TValue> >(id).Value);
 }
Esempio n. 4
0
 public TValue GetValue <TValue>(DecoratorId id)
 {
     return((TValue)this.Get <PairDecorator>(id).Value);
 }
Esempio n. 5
0
 public void SetValue(DecoratorId id, object value)
 {
     this.Get <PairDecorator>(id).Value = value;
 }
Esempio n. 6
0
 public object GetValue(DecoratorId id)
 {
     return(this.Get <PairDecorator>(id).Value);
 }
Esempio n. 7
0
 public TDecorator Get <TDecorator>(DecoratorId id) where TDecorator : Decorator
 {
     return((TDecorator)this.Get(id));
 }
Esempio n. 8
0
 public void Remove(DecoratorId id) => decoratorMap.Remove(id);
Esempio n. 9
0
 public Decorator Get(DecoratorId id) => decoratorMap.Get(id);
Esempio n. 10
0
        public TDecorator CreateDecorator <TDecorator>(string description, params object[] parameters) where TDecorator : Decorator
        {
            DecoratorId id = new DecoratorId(GetRandomID());

            return(this.CreateDecorator <TDecorator>(id, description, parameters));
        }
Esempio n. 11
0
 public DecoratorId(DecoratorId decoratorId)
 {
     id        = decoratorId.id;
     SearchTip = decoratorId.SearchTip;
 }