Changeset 13338 for branches/RefactorPluginInfrastructure-2522/HeuristicLab.Clients.Access.Administration
- Timestamp:
- 11/23/15 16:14:30 (9 years ago)
- Location:
- branches/RefactorPluginInfrastructure-2522/HeuristicLab.Clients.Access.Administration/3.3/Views
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/RefactorPluginInfrastructure-2522/HeuristicLab.Clients.Access.Administration/3.3/Views/RefreshableRoleListView.cs
r12012 r13338 21 21 22 22 using System; 23 using HeuristicLab.MainForm; 24 23 25 namespace HeuristicLab.Clients.Access.Administration { 24 26 public partial class RefreshableRoleListView : RefreshableView { … … 28 30 29 31 protected override void RefreshData() { 30 Content.RefreshRolesAsync( PluginInfrastructure.ErrorHandling.ShowErrorDialog);32 Content.RefreshRolesAsync((ex) => MainFormManager.MainForm.ShowError(ex.Message, ex)); 31 33 } 32 34 … … 67 69 void Roles_ItemsRemoved(object sender, Collections.CollectionItemsChangedEventArgs<Collections.IndexedItem<Role>> e) { 68 70 foreach (var u in e.Items) { 69 Content.DeleteRoleAsync(u.Value, PluginInfrastructure.ErrorHandling.ShowErrorDialog);71 Content.DeleteRoleAsync(u.Value, (ex) => MainFormManager.MainForm.ShowError(ex.Message, ex)); 70 72 } 71 73 } 72 74 73 75 private void storeButton_Click(object sender, EventArgs e) { 74 Content.StoreRolesAsync( PluginInfrastructure.ErrorHandling.ShowErrorDialog);76 Content.StoreRolesAsync((ex) => MainFormManager.MainForm.ShowError(ex.Message, ex)); 75 77 } 76 78 } -
branches/RefactorPluginInfrastructure-2522/HeuristicLab.Clients.Access.Administration/3.3/Views/RefreshableRoleSelectionListView.cs
r12012 r13338 24 24 using System.Windows.Forms; 25 25 using HeuristicLab.Core; 26 using HeuristicLab.MainForm; 26 27 27 28 namespace HeuristicLab.Clients.Access.Administration { … … 50 51 } 51 52 CurrentRoles = AccessAdministrationClient.CallAccessService<List<Role>>(s => s.GetUserRoles(CurrentUser)); 52 }), PluginInfrastructure.ErrorHandling.ShowErrorDialog);53 }), (ex) => MainFormManager.MainForm.ShowError(ex.Message, ex)); 53 54 } 54 55 } … … 109 110 AccessAdministrationClient.CallAccessService(s => s.RemoveUserFromRole(role, CurrentUser)); 110 111 } 111 }), PluginInfrastructure.ErrorHandling.ShowErrorDialog);112 }), (ex) => MainFormManager.MainForm.ShowError(ex.Message, ex)); 112 113 } 113 114 } -
branches/RefactorPluginInfrastructure-2522/HeuristicLab.Clients.Access.Administration/3.3/Views/RefreshableUserGroupListView.cs
r12012 r13338 21 21 22 22 using System; 23 using HeuristicLab.MainForm; 24 23 25 namespace HeuristicLab.Clients.Access.Administration { 24 26 public partial class RefreshableUserGroupListView : RefreshableView { … … 28 30 29 31 protected override void RefreshData() { 30 Content.RefreshUserGroupsAsync( PluginInfrastructure.ErrorHandling.ShowErrorDialog);32 Content.RefreshUserGroupsAsync((ex) => MainFormManager.MainForm.ShowError(ex.Message, ex)); 31 33 } 32 34 … … 60 62 void Groups_ItemsRemoved(object sender, Collections.CollectionItemsChangedEventArgs<Collections.IndexedItem<UserGroup>> e) { 61 63 foreach (var u in e.Items) { 62 Content.DeleteUserGroupAsync(u.Value, PluginInfrastructure.ErrorHandling.ShowErrorDialog);64 Content.DeleteUserGroupAsync(u.Value, (ex) => MainFormManager.MainForm.ShowError(ex.Message, ex)); 63 65 } 64 66 } … … 72 74 73 75 private void storeButton_Click(object sender, EventArgs e) { 74 Content.StoreUserGroupsAsync( PluginInfrastructure.ErrorHandling.ShowErrorDialog);76 Content.StoreUserGroupsAsync((ex) => MainFormManager.MainForm.ShowError(ex.Message, ex)); 75 77 } 76 78 } -
branches/RefactorPluginInfrastructure-2522/HeuristicLab.Clients.Access.Administration/3.3/Views/RefreshableUserListView.cs
r12012 r13338 21 21 22 22 using System; 23 using HeuristicLab.MainForm; 24 23 25 namespace HeuristicLab.Clients.Access.Administration { 24 26 public partial class RefreshableUserListView : RefreshableView { … … 28 30 29 31 protected override void RefreshData() { 30 Content.RefreshUsersAsync( PluginInfrastructure.ErrorHandling.ShowErrorDialog);32 Content.RefreshUsersAsync((ex) => MainFormManager.MainForm.ShowError(ex.Message, ex)); 31 33 } 32 34 … … 68 70 foreach (var u in e.Items) { 69 71 if (u.Value.Id != Guid.Empty) { 70 Content.DeleteUserAsync(u.Value, PluginInfrastructure.ErrorHandling.ShowErrorDialog);72 Content.DeleteUserAsync(u.Value, (ex) => MainFormManager.MainForm.ShowError(ex.Message, ex)); 71 73 } 72 74 } … … 74 76 75 77 private void storeButton_Click(object sender, EventArgs e) { 76 Content.StoreUsersAsync( PluginInfrastructure.ErrorHandling.ShowErrorDialog);78 Content.StoreUsersAsync((ex) => MainFormManager.MainForm.ShowError(ex.Message, ex)); 77 79 } 78 80 } -
branches/RefactorPluginInfrastructure-2522/HeuristicLab.Clients.Access.Administration/3.3/Views/UserGroupView.cs
r12012 r13338 86 86 }); 87 87 88 AccessAdministrationClient.Instance.ExecuteActionAsync(storeAction, PluginInfrastructure.ErrorHandling.ShowErrorDialog);89 AccessAdministrationClient.Instance.ExecuteActionAsync(deleteAction, PluginInfrastructure.ErrorHandling.ShowErrorDialog);88 AccessAdministrationClient.Instance.ExecuteActionAsync(storeAction, (ex) => MainFormManager.MainForm.ShowError(ex.Message, ex)); 89 AccessAdministrationClient.Instance.ExecuteActionAsync(deleteAction, (ex) => MainFormManager.MainForm.ShowError(ex.Message, ex)); 90 90 } 91 91 -
branches/RefactorPluginInfrastructure-2522/HeuristicLab.Clients.Access.Administration/3.3/Views/UserView.cs
r12012 r13338 92 92 }); 93 93 94 AccessAdministrationClient.Instance.ExecuteActionAsync(a, PluginInfrastructure.ErrorHandling.ShowErrorDialog);;94 AccessAdministrationClient.Instance.ExecuteActionAsync(a, (ex) => MainFormManager.MainForm.ShowError(ex.Message, ex)); 95 95 } 96 96
Note: See TracChangeset
for help on using the changeset viewer.