Beispiel #1
0
 void checkBoxEnableNetworkSupport_CheckedChanged(object sender, EventArgs e)
 {
     if (checkBoxEnableNetworkSupport.Enabled)
     {
         try
         {
             QfeChecker.CheckQfe();
         }
         catch (WsatAdminException ex)
         {
             HandleException(ex);
         }
     }
     groupBoxNetwork.Enabled = groupBoxTracing.Enabled = groupBoxTimeouts.Enabled = checkBoxEnableNetworkSupport.Checked;
     ComponentChanged();
 }
Beispiel #2
0
 // -network:{enable|disable}
 protected override void DoParse(string value, WsatConfiguration config)
 {
     if (!String.IsNullOrEmpty(value))
     {
         if (Utilities.SafeCompare(value, CommandLineOption.Enable))
         {
             QfeChecker.CheckQfe();
             config.TransactionBridgeEnabled = true;
             return;
         }
         else if (Utilities.SafeCompare(value, CommandLineOption.Disable))
         {
             config.TransactionBridgeEnabled = false;
             return;
         }
     }
     throw new WsatAdminException(WsatAdminErrorCode.INVALID_NETWORK_ARGUMENT, SR.GetString(SR.ErrorNetworkArgument));
 }