Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/26/12 10:58:40 (12 years ago)
Author:
spimming
Message:

#1680: Show error dialog (from PluginInfrastructure) instead of message box on exception

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive.Azure/HeuristicLab.Clients.Hive.CloudManager/3.3/Views/AddCertificate.cs

    r7362 r7661  
    3636
    3737      if (CertificateFile.Length == 0) {
    38         MessageBox.Show("Certificate file is required", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     38        PluginInfrastructure.ErrorHandling.ShowErrorDialog(new Exception("Certificate file is required"));
    3939      } else if (CertificatePassword.Length == 0) {
    40         MessageBox.Show("Password is required", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     40        PluginInfrastructure.ErrorHandling.ShowErrorDialog(new Exception("Password is required"));
    4141      } else {
    4242        SetControlsEnabled(false);
     
    6969        this.Close();
    7070      } else {
    71         MessageBox.Show(e.Error.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     71        PluginInfrastructure.ErrorHandling.ShowErrorDialog(e.Error);
    7272        CertificateFile = string.Empty;
    7373        CertificateFile = string.Empty;
Note: See TracChangeset for help on using the changeset viewer.