Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/30/11 18:02:41 (13 years ago)
Author:
ascheibe
Message:

#1725

  • added a dialog which displays information for anonymous hive users
  • HiveServiceLocator now checks if the username is anonymous and throws an exception if that's the case
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Clients.Hive.JobManager/3.3/Views/HiveJobManagerView.cs

    r6976 r7249  
    2424using System.ServiceModel.Security;
    2525using System.Windows.Forms;
     26using HeuristicLab.Clients.Hive.Views;
    2627using HeuristicLab.Collections;
    2728using HeuristicLab.MainForm;
     
    107108    private void HandleServiceException(Exception ex) {
    108109      if (ex is MessageSecurityException) {
    109         MessageBox.Show("A Message Security error has occured. This normally means that your user name or password is wrong.", "HeuristicLab Hive Administrator", MessageBoxButtons.OK, MessageBoxIcon.Error);
     110        MessageBox.Show("A Message Security error has occured. This normally means that your user name or password is wrong.", "HeuristicLab Hive Job Manager", MessageBoxButtons.OK, MessageBoxIcon.Error);
     111      } else if (ex is AnonymousUserException) {
     112        HiveInformationDialog dialog = new HiveInformationDialog();
     113        dialog.ShowDialog(this);
    110114      } else {
    111115        ErrorHandling.ShowErrorDialog(this, "Refresh failed.", ex);
Note: See TracChangeset for help on using the changeset viewer.