예제 #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);
     }
 }
예제 #2
0
 void ShowErrorDialog(WsatAdminException ex)
 {
     ShowErrorDialog(ex.Message);
 }
예제 #3
0
 void ShowErrorDialog(WsatAdminException ex)
 {
     ShowErrorDialog(ex.Message);
 }
예제 #4
0
파일: WSATControl.cs 프로젝트: mind0n/hive
 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);
     }
 }