Beispiel #1
0
 void HandleException(WsatAdminException ex)
 {
     if (ex.ErrorCode == WsatAdminErrorCode.REGISTRY_ACCESS ||
         ex.ErrorCode == WsatAdminErrorCode.WRONG_WCF_INSTALLED ||
         ex.ErrorCode == WsatAdminErrorCode.CANNOT_ENABLE_NETWORK_SUPPORT_WHEN_QFE_IS_NOT_INSTALLED)
     {
         MessageBox.Show(ex.Message, SR.GetString(SR.WSATUITitle),
                         MessageBoxButtons.OK,
                         MessageBoxIcon.Information,
                         MessageBoxDefaultButton.Button1,
                         (MessageBoxOptions)0);
         if (this.Enabled)
         {
             this.Enabled = false;
         }
     }
     else
     {
         MessageBox.Show(ex.Message, SR.GetString(SR.ErrorMessageBoxTitle),
                         MessageBoxButtons.OK,
                         MessageBoxIcon.Error,
                         MessageBoxDefaultButton.Button1,
                         (MessageBoxOptions)0);
     }
 }
Beispiel #2
0
 void ShowErrorDialog(WsatAdminException ex)
 {
     ShowErrorDialog(ex.Message);
 }
Beispiel #3
0
 void ShowErrorDialog(WsatAdminException ex)
 {
     ShowErrorDialog(ex.Message);
 }
Beispiel #4
0
 void HandleException(WsatAdminException ex)
 {
     if (ex.ErrorCode == WsatAdminErrorCode.REGISTRY_ACCESS
         || ex.ErrorCode == WsatAdminErrorCode.WRONG_WCF_INSTALLED 
         || ex.ErrorCode == WsatAdminErrorCode.CANNOT_ENABLE_NETWORK_SUPPORT_WHEN_QFE_IS_NOT_INSTALLED)
     {
         MessageBox.Show(ex.Message, SR.GetString(SR.WSATUITitle),
                     MessageBoxButtons.OK,
                     MessageBoxIcon.Information,
                     MessageBoxDefaultButton.Button1,
                     (MessageBoxOptions)0);
         if (this.Enabled)
         {
             this.Enabled = false;
         }
     }
     else
     {
         MessageBox.Show(ex.Message, SR.GetString(SR.ErrorMessageBoxTitle),
                         MessageBoxButtons.OK,
                         MessageBoxIcon.Error,
                         MessageBoxDefaultButton.Button1,
                         (MessageBoxOptions)0);
     }
 }