Changeset 13338 for branches/RefactorPluginInfrastructure-2522/HeuristicLab.Clients.Access.Views/3.3
- Timestamp:
- 11/23/15 16:14:30 (9 years ago)
- Location:
- branches/RefactorPluginInfrastructure-2522/HeuristicLab.Clients.Access.Views/3.3
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/RefactorPluginInfrastructure-2522/HeuristicLab.Clients.Access.Views/3.3/ClientViews/ClientRegistrationDialog.cs
r12012 r13338 25 25 using System.Threading.Tasks; 26 26 using System.Windows.Forms; 27 using HeuristicLab.MainForm; 27 28 28 29 namespace HeuristicLab.Clients.Access.Views { … … 103 104 btnCollectInformation.Enabled = true; 104 105 btnCancel.Enabled = true; 105 PluginInfrastructure.ErrorHandling.ShowErrorDialog(task.Exception);106 MainFormManager.MainForm.ShowError(task.Exception.Message, task.Exception); 106 107 } 107 108 } -
branches/RefactorPluginInfrastructure-2522/HeuristicLab.Clients.Access.Views/3.3/UserViews/ChangePasswordDialog.cs
r12012 r13338 23 23 using System.Windows.Forms; 24 24 using HeuristicLab.Clients.Common; 25 using HeuristicLab.MainForm; 25 26 using CcSettings = HeuristicLab.Clients.Common.Properties; 26 27 … … 105 106 call.BeginInvoke(delegate(IAsyncResult result) { 106 107 Exception ex = call.EndInvoke(result); 107 if (ex != null) PluginInfrastructure.ErrorHandling.ShowErrorDialog(ex); 108 if (ex != null) 109 MainFormManager.MainForm.ShowError(ex.Message, ex); 108 110 }, null); 109 111 } -
branches/RefactorPluginInfrastructure-2522/HeuristicLab.Clients.Access.Views/3.3/UserViews/LightweightUserGroupSelectionView.cs
r12012 r13338 23 23 using System.Windows.Forms; 24 24 using HeuristicLab.Core; 25 using HeuristicLab.MainForm; 25 26 using HeuristicLab.PluginInfrastructure; 26 27 … … 47 48 AccessClient.Instance.Refreshing += new EventHandler(Instance_Refreshing); 48 49 AccessClient.Instance.Refreshed += new EventHandler(Instance_Refreshed); 49 AccessClient.Instance.RefreshAsync(new Action<Exception>((Exception ex) => ErrorHandling.ShowErrorDialog(this,"Refresh failed.", ex)));50 AccessClient.Instance.RefreshAsync(new Action<Exception>((Exception ex) => MainFormManager.MainForm.ShowError("Refresh failed.", ex))); 50 51 AccessClient.Instance.Refreshing -= new EventHandler(Instance_Refreshing); 51 52 AccessClient.Instance.Refreshed -= new EventHandler(Instance_Refreshed); -
branches/RefactorPluginInfrastructure-2522/HeuristicLab.Clients.Access.Views/3.3/UserViews/RefreshableLightweightUserInformationView.cs
r12012 r13338 22 22 using System; 23 23 using System.Windows.Forms; 24 using HeuristicLab.MainForm; 24 25 25 26 namespace HeuristicLab.Clients.Access.Views { … … 39 40 40 41 protected override void RefreshData() { 41 Content.ExecuteActionAsync(RefreshUserData, PluginInfrastructure.ErrorHandling.ShowErrorDialog);42 Content.ExecuteActionAsync(RefreshUserData, (ex) => MainFormManager.MainForm.ShowError(ex.Message, ex)); 42 43 } 43 44 … … 71 72 AccessClient.Instance.ExecuteActionAsync(new Action(delegate { 72 73 AccessClient.CallAccessService(x => x.UpdateLightweightUser(UserInformation.Instance.User)); 73 }), HeuristicLab.PluginInfrastructure.ErrorHandling.ShowErrorDialog);74 }), (ex) => MainFormManager.MainForm.ShowError(ex.Message, ex)); 74 75 } 75 76 } -
branches/RefactorPluginInfrastructure-2522/HeuristicLab.Clients.Access.Views/3.3/UserViews/RefreshableLightweightUserView.cs
r12012 r13338 64 64 }); 65 65 66 Content.ExecuteActionAsync(completeRefreshAction, new Action<Exception>((Exception ex) => ErrorHandling.ShowErrorDialog(this,"Refresh failed.", ex)));66 Content.ExecuteActionAsync(completeRefreshAction, new Action<Exception>((Exception ex) => MainFormManager.MainForm.ShowError("Refresh failed.", ex))); 67 67 } 68 68
Note: See TracChangeset
for help on using the changeset viewer.