Exemple #1
0
 private void Suppress_OnAction(SecurityDialog dialog, SecurityDialogCheckBox targetBox, 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);
     }
 }
Exemple #2
0
 private static void Suppress_OnAction(SecurityDialog dialog, SecurityDialogCheckBox targetBox, SecurityDialogLeftButton targetButton)
 {
     Console.WriteLine("Suppress_OnAction:{0}{1}{2}", Environment.NewLine, dialog, Environment.NewLine, targetButton);
 }