Exemple #1
0
 public IBehaviors RemoveBehavior(IBehavior aBehavior)
 {
     CheckArg.Behavior(aBehavior);
     aBehavior.LinkBehaviors(null);
     fList.Remove(aBehavior);
     return(this);
 }
Exemple #2
0
 public IBehaviors AddBehavior(IBehavior aBehavior)
 {
     CheckArg.Behavior(aBehavior);
     aBehavior.LinkBehaviors(this);
     fList.Add(aBehavior);
     return(this);
 }
Exemple #3
0
 public IBehaviors BecomeBehavior(IBehavior aBehavior)
 {
     CheckArg.Behavior(aBehavior);
     fList.Clear();
     aBehavior.LinkBehaviors(this);
     fList.Add(aBehavior);
     return(this);
 }
Exemple #4
0
 protected void RemoveBehavior(IBehavior aBehavior)
 {
     CheckArg.Behavior(aBehavior);
     AddMissedMessages();
     fListBehaviors.Remove(aBehavior);
 }
 public void RemoveBehavior(IBehavior aBehavior)
 {
     CheckArg.Behavior(aBehavior);
     aBehavior.LinkBehaviors(null);
     fList.Remove(aBehavior);
 }