Changeset 7256 for trunk/sources/HeuristicLab.Clients.Hive.JobManager
- Timestamp:
- 01/02/12 15:32:40 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Clients.Hive.JobManager/3.3/Views/HiveJobManagerView.cs
r7249 r7256 107 107 108 108 private void HandleServiceException(Exception ex) { 109 if (ex is MessageSecurityException) { 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); 109 if (this.InvokeRequired) { 110 Invoke(new Action<Exception>(HandleServiceException), ex); 114 111 } else { 115 ErrorHandling.ShowErrorDialog(this, "Refresh failed.", ex); 112 if (ex is MessageSecurityException) { 113 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); 114 } else if (ex is AnonymousUserException) { 115 using (HiveInformationDialog dialog = new HiveInformationDialog()) { 116 dialog.ShowDialog(this); 117 } 118 } else { 119 ErrorHandling.ShowErrorDialog(this, "Refresh failed.", ex); 120 } 116 121 } 117 122 }
Note: See TracChangeset
for help on using the changeset viewer.