예제 #1
0
 ///<summary></summary>
 protected void OnButtonClicked(OutlookButton myButton, bool myCancel)
 {
     if (this.ButtonClicked != null)
     {
         //previousSelected=SelectedIndex;
         ButtonClicked_EventArgs oArgs = new ButtonClicked_EventArgs(myButton, myCancel);
         this.ButtonClicked(this, oArgs);
         if (oArgs.Cancel)
         {
             SelectedIndex = previousSelected;
             Invalidate();
         }
     }
 }
예제 #2
0
파일: OutlookBar.cs 프로젝트: mnisl/OD
		///<summary></summary>
		protected void OnButtonClicked(OutlookButton myButton,bool myCancel){
			if(this.ButtonClicked != null){
				//previousSelected=SelectedIndex;
				ButtonClicked_EventArgs oArgs = new ButtonClicked_EventArgs(myButton,myCancel);
				this.ButtonClicked(this,oArgs);
				if(oArgs.Cancel){
					SelectedIndex=previousSelected;
					Invalidate();
				}
			}
		}