- Timestamp:
- 11/23/15 16:14:30 (9 years ago)
- Location:
- branches/RefactorPluginInfrastructure-2522/HeuristicLab.Clients.OKB.Views/3.3
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/RefactorPluginInfrastructure-2522/HeuristicLab.Clients.OKB.Views/3.3/Administration/Views/AdministratorView.cs
r12012 r13338 104 104 105 105 private void refreshButton_Click(object sender, EventArgs e) { 106 Content.RefreshAsync(new Action<Exception>((Exception ex) => ErrorHandling.ShowErrorDialog(this,"Refresh failed.", ex)));106 Content.RefreshAsync(new Action<Exception>((Exception ex) => MainFormManager.MainForm.ShowError("Refresh failed.", ex))); 107 107 } 108 108 } -
branches/RefactorPluginInfrastructure-2522/HeuristicLab.Clients.OKB.Views/3.3/Administration/Views/AlgorithmView.cs
r12012 r13338 164 164 } 165 165 catch (Exception ex) { 166 ErrorHandling.ShowErrorDialog(this,"Store authorized users and groups failed.", ex);166 MainFormManager.MainForm.ShowError( "Store authorized users and groups failed.", ex); 167 167 } 168 168 } … … 221 221 } 222 222 catch (Exception ex) { 223 ErrorHandling.ShowErrorDialog(this,"Create new algorithm data failed.", ex);223 MainFormManager.MainForm.ShowError( "Create new algorithm data failed.", ex); 224 224 } 225 225 SetEnabledStateOfControls(); … … 302 302 Cursor = Cursors.Default; 303 303 Enabled = true; 304 if (exception != null) ErrorHandling.ShowErrorDialog(this,errorMessage, exception);304 if (exception != null) MainFormManager.MainForm.ShowError(errorMessage, exception); 305 305 if (continueWith != null) continueWith(); 306 306 } -
branches/RefactorPluginInfrastructure-2522/HeuristicLab.Clients.OKB.Views/3.3/Administration/Views/OKBItemCollectionView.cs
r12012 r13338 40 40 } 41 41 catch (Exception ex) { 42 ErrorHandling.ShowErrorDialog(this,"Delete failed.", ex);42 MainFormManager.MainForm.ShowError("Delete failed.", ex); 43 43 } 44 44 } … … 48 48 } 49 49 catch (Exception ex) { 50 ErrorHandling.ShowErrorDialog(this,"Delete failed.", ex);50 MainFormManager.MainForm.ShowError("Delete failed.", ex); 51 51 } 52 52 } … … 56 56 } 57 57 catch (Exception ex) { 58 ErrorHandling.ShowErrorDialog(this,"Delete failed.", ex);58 MainFormManager.MainForm.ShowError("Delete failed.", ex); 59 59 } 60 60 } -
branches/RefactorPluginInfrastructure-2522/HeuristicLab.Clients.OKB.Views/3.3/Administration/Views/OKBItemView.cs
r12012 r13338 78 78 } 79 79 catch (Exception ex) { 80 ErrorHandling.ShowErrorDialog(this,"Store failed.", ex);80 MainFormManager.MainForm.ShowError("Store failed.", ex); 81 81 } 82 82 } -
branches/RefactorPluginInfrastructure-2522/HeuristicLab.Clients.OKB.Views/3.3/Administration/Views/ProblemView.cs
r12012 r13338 164 164 } 165 165 catch (Exception ex) { 166 ErrorHandling.ShowErrorDialog(this,"Store authorized users and groups failed.", ex);166 MainFormManager.MainForm.ShowError("Store authorized users and groups failed.", ex); 167 167 } 168 168 } … … 223 223 } 224 224 catch (Exception ex) { 225 ErrorHandling.ShowErrorDialog(this,"Create new problem data failed.", ex);225 MainFormManager.MainForm.ShowError("Create new problem data failed.", ex); 226 226 } 227 227 SetEnabledStateOfControls(); … … 304 304 Cursor = Cursors.Default; 305 305 Enabled = true; 306 if (exception != null) ErrorHandling.ShowErrorDialog(this,errorMessage, exception);306 if (exception != null) MainFormManager.MainForm.ShowError(errorMessage, exception); 307 307 if (continueWith != null) continueWith(); 308 308 } -
branches/RefactorPluginInfrastructure-2522/HeuristicLab.Clients.OKB.Views/3.3/Query/Views/QueryView.cs
r12012 r13338 130 130 } 131 131 catch (AggregateException remaining) { 132 if (remaining.InnerExceptions.Count == 1) ErrorHandling.ShowErrorDialog(this,"Refresh results failed.", remaining.InnerExceptions[0]);133 else ErrorHandling.ShowErrorDialog(this,"Refresh results failed.", remaining);132 if (remaining.InnerExceptions.Count == 1) MainFormManager.MainForm.ShowError("Refresh results failed.", remaining.InnerExceptions[0]); 133 else MainFormManager.MainForm.ShowError("Refresh results failed.", remaining); 134 134 } 135 135 } … … 162 162 163 163 private void refreshFiltersButton_Click(object sender, EventArgs e) { 164 Content.RefreshAsync(new Action<Exception>((Exception ex) => ErrorHandling.ShowErrorDialog(this,"Refresh failed.", ex)));164 Content.RefreshAsync(new Action<Exception>((Exception ex) => MainFormManager.MainForm.ShowError("Refresh failed.", ex))); 165 165 } 166 166 -
branches/RefactorPluginInfrastructure-2522/HeuristicLab.Clients.OKB.Views/3.3/RunCreation/Views/OKBAlgorithmView.cs
r12012 r13338 252 252 Invoke(new EventHandler<EventArgs<Exception>>(Content_ExceptionOccurred), sender, e); 253 253 else 254 ErrorHandling.ShowErrorDialog(this, e.Value);254 MainFormManager.MainForm.ShowError(e.Value.Message, e.Value); 255 255 } 256 256 #endregion … … 283 283 } 284 284 catch (Exception ex) { 285 ErrorHandling.ShowErrorDialog(this, ex);285 MainFormManager.MainForm.ShowError(ex.Message, ex); 286 286 } 287 287 } … … 307 307 } 308 308 catch (Exception ex) { 309 Invoke(new Action(() => ErrorHandling.ShowErrorDialog(this, ex)));309 Invoke(new Action(() => MainFormManager.MainForm.ShowError(ex.Message, ex))); 310 310 } 311 311 finally { -
branches/RefactorPluginInfrastructure-2522/HeuristicLab.Clients.OKB.Views/3.3/RunCreation/Views/OKBExperimentUploadView.cs
r12971 r13338 93 93 94 94 private void DisplayError(Exception ex) { 95 PluginInfrastructure.ErrorHandling.ShowErrorDialog("An error occured while retrieving algorithm and problem information from the OKB.", ex);95 MainFormManager.MainForm.ShowError("An error occured while retrieving algorithm and problem information from the OKB.", ex); 96 96 } 97 97 … … 204 204 task.ContinueWith((t) => { 205 205 MainFormManager.GetMainForm<HeuristicLab.MainForm.WindowsForms.MainForm>().RemoveOperationProgressFromView(this); 206 PluginInfrastructure.ErrorHandling.ShowErrorDialog("An exception occured while uploading the runs to the OKB.", t.Exception);206 MainFormManager.MainForm.ShowError("An exception occured while uploading the runs to the OKB.", t.Exception); 207 207 }, TaskContinuationOptions.OnlyOnFaulted); 208 208 } -
branches/RefactorPluginInfrastructure-2522/HeuristicLab.Clients.OKB.Views/3.3/RunCreation/Views/OKBRunView.cs
r12012 r13338 74 74 + " Please click in the menu bar on Services -> Access -> Client Information and register your client. ", "Missing client registration", MessageBoxButtons.OK, MessageBoxIcon.Information); 75 75 } catch (Exception ex) { 76 ErrorHandling.ShowErrorDialog(this,"Store failed.", ex);76 MainFormManager.MainForm.ShowError("Store failed.", ex); 77 77 } 78 78 }
Note: See TracChangeset
for help on using the changeset viewer.