- Timestamp:
- 10/04/11 16:14:02 (13 years ago)
- Location:
- branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.JobManager/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.JobManager/3.3/HeuristicLab.Clients.Hive.JobManager-3.3.csproj
r6792 r6864 145 145 <Reference Include="System.Drawing" /> 146 146 <Reference Include="System.Runtime.Serialization" /> 147 <Reference Include="System.ServiceModel" /> 147 148 <Reference Include="System.Windows.Forms" /> 148 149 <Reference Include="System.Windows.Forms.DataVisualization" /> -
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.JobManager/3.3/Views/HiveJobManagerView.cs
r6792 r6864 22 22 using System; 23 23 using System.Linq; 24 using System.ServiceModel.Security; 24 25 using System.Windows.Forms; 25 26 using HeuristicLab.Collections; … … 70 71 hiveExperimentListView.Content = Content.Jobs; 71 72 if (Content != null) 72 Content.RefreshAsync(new Action<Exception>((Exception ex) => ErrorHandling.ShowErrorDialog(this, "Refresh failed.",ex)));73 Content.RefreshAsync(new Action<Exception>((Exception ex) => HandleServiceException(ex))); 73 74 } 74 75 } … … 101 102 102 103 private void refreshButton_Click(object sender, EventArgs e) { 103 Content.RefreshAsync(new Action<Exception>((Exception ex) => ErrorHandling.ShowErrorDialog(this, "Refresh failed.", ex))); 104 Content.RefreshAsync(new Action<Exception>((Exception ex) => HandleServiceException(ex))); 105 } 106 107 private void HandleServiceException(Exception ex) { 108 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 } else { 111 ErrorHandling.ShowErrorDialog(this, "Refresh failed.", ex); 112 } 104 113 } 105 114
Note: See TracChangeset
for help on using the changeset viewer.