Beispiel #1
0
 public void AddBehaviorModel(BeforeAddBehavior methodBeforeAddBehavior, AfterAddBehavior methodAfterAddBehavior, ThrowException methodThrowException, OnClickOnBrowser methodOnClickOnBrowser, MouseOverOnBrowser methodMouseOverOnBrowser)
 {
     if (this.behaviorModel == null)
     {
         this._methodBeforeAddBehavior  = methodBeforeAddBehavior;
         this._methodAfterAddBehavior   = methodAfterAddBehavior;
         this._methodThrowException     = methodThrowException;
         this._methodOnClickOnBrowser   = methodOnClickOnBrowser;
         this._methodMouseOverOnBrowser = methodMouseOverOnBrowser;
         this._methodMouseOverOnBrowser = methodMouseOverOnBrowser;
         this._methodOnClickOnBrowser   = methodOnClickOnBrowser;
         this.behaviorModel             = new BehaviorModel(this, this.methodBeforeAddBehavior, this.methodAfterAddBehavior, this.methodThrowExcepotion, this.methodOnClickOnBrowser, this.methodMouseOverOnBrowser);
     }
     else
     {
         this.behaviorModel.RestartBehavior();
     }
 }
 public void AddBehaviorModel(BeforeAddBehavior methodBeforeAddBehavior, AfterAddBehavior methodAfterAddBehavior, ThrowException methodThrowException, OnClickOnBrowser methodOnClickOnBrowser, MouseOverOnBrowser methodMouseOverOnBrowser)
 {
     if (this.behaviorModel == null)
     {
         this._methodBeforeAddBehavior = methodBeforeAddBehavior;
         this._methodAfterAddBehavior = methodAfterAddBehavior;
         this._methodThrowException = methodThrowException;
         this._methodOnClickOnBrowser = methodOnClickOnBrowser;
         this._methodMouseOverOnBrowser = methodMouseOverOnBrowser;
         this._methodMouseOverOnBrowser = methodMouseOverOnBrowser;
         this._methodOnClickOnBrowser = methodOnClickOnBrowser;
         this.behaviorModel = new BehaviorModel(this, this.methodBeforeAddBehavior, this.methodAfterAddBehavior, this.methodThrowExcepotion, this.methodOnClickOnBrowser, this.methodMouseOverOnBrowser);
     }
     else
     {
         this.behaviorModel.RestartBehavior();
     }
 }