예제 #1
0
 public void addBehavior(MouseOverOnBrowser methodMouseOverOnBrowser, OnClickOnBrowser methodOnClickOnBrowser)
 {
     UCWebBrowserEx currentWb = this.getBrowserByTabIndex(this.tabControl_Browser.TabIndex);
     this._methodMouseOverOnBrowser = methodMouseOverOnBrowser;
     this._methodOnClickOnBrowser = methodOnClickOnBrowser;
     currentWb.AddBehaviorModel(this.methodBeforeAddBehavior, this.methodAfterAddBehavior, this.methodThrowExcepotion, this.methodOnClickOnBrowser, this.methodMouseOverOnBrowser);
 }
예제 #2
0
        public void addBehavior(MouseOverOnBrowser methodMouseOverOnBrowser, OnClickOnBrowser methodOnClickOnBrowser)
        {
            UCWebBrowserEx currentWb = this.getBrowserByTabIndex(this.tabControl_Browser.TabIndex);

            this._methodMouseOverOnBrowser = methodMouseOverOnBrowser;
            this._methodOnClickOnBrowser   = methodOnClickOnBrowser;
            currentWb.AddBehaviorModel(this.methodBeforeAddBehavior, this.methodAfterAddBehavior, this.methodThrowExcepotion, this.methodOnClickOnBrowser, this.methodMouseOverOnBrowser);
        }
예제 #3
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();
     }
 }
예제 #4
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();
     }
 }