コード例 #1
0
ファイル: WSATControl.cs プロジェクト: dox0/DotNet471RS3
 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
ファイル: TraceOptionsForm.cs プロジェクト: dox0/DotNet471RS3
 void ShowErrorDialog(WsatAdminException ex)
 {
     ShowErrorDialog(ex.Message);
 }
コード例 #3
0
ファイル: TraceOptionsForm.cs プロジェクト: mind0n/hive
 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);
     }
 }