Beispiel #1
0
 void Supress_OnAction(NetOffice.OutlookSecurity.SecurityDialog dialog, NetOffice.OutlookSecurity.SecurityDialogCheckBox targetBox, NetOffice.OutlookSecurity.SecurityDialogLeftButton targetButton)
 {
     _dialog       = dialog;
     _targetBox    = targetBox;
     _targetButton = targetButton;
     if (this.InvokeRequired)
     {
         this.Invoke(new MethodInvoker(Supress_OnAction));
     }
     else
     {
         Supress_OnAction();
     }
 }
 private void Supress_OnAction(NetOffice.OutlookSecurity.SecurityDialog dialog, NetOffice.OutlookSecurity.SecurityDialogCheckBox targetBox, NetOffice.OutlookSecurity.SecurityDialogLeftButton targetButton)
 {
     try
     {
         _dialog       = dialog;
         _targetBox    = targetBox;
         _targetButton = targetButton;
         if (this.InvokeRequired)
         {
             this.Invoke(new MethodInvoker(Supress_OnAction));
         }
         else
         {
             Supress_OnAction();
         }
     }
     catch (Exception exception)
     {
         // avoid default error dialog because we may not in UI thread
         MessageBox.Show(this, exception.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
        void Supress_OnAction(NetOffice.OutlookSecurity.SecurityDialog dialog, NetOffice.OutlookSecurity.SecurityDialogCheckBox targetBox, NetOffice.OutlookSecurity.SecurityDialogLeftButton targetButton)
        {
            _dialog = dialog;
            _targetBox = targetBox;
            _targetButton = targetButton;
            if (this.InvokeRequired)
                this.Invoke(new MethodInvoker(Supress_OnAction));
            else
                Supress_OnAction();            

        }
 private void Supress_OnAction(NetOffice.OutlookSecurity.SecurityDialog dialog, NetOffice.OutlookSecurity.SecurityDialogCheckBox targetBox, NetOffice.OutlookSecurity.SecurityDialogLeftButton targetButton)
 {
     try
     {
         _dialog = dialog;
         _targetBox = targetBox;
         _targetButton = targetButton;
         if (this.InvokeRequired)
             this.Invoke(new MethodInvoker(Supress_OnAction));
         else
             Supress_OnAction();
     }
     catch (Exception exception)
     {
         // avoid default error dialog because we may not in UI thread
         MessageBox.Show(this, exception.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }