- Timestamp:
- 06/27/12 20:17:54 (12 years ago)
- Location:
- trunk/sources/HeuristicLab.Clients.Access.Administration/3.3/Views
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Clients.Access.Administration/3.3/Views/RefreshableRoleListView.cs
r8042 r8141 50 50 base.Content_Refreshed(sender, e); 51 51 roleListView.Enabled = true; 52 storeButton.Enabled = true;53 52 roleListView.Content = Content.Roles; 54 53 if (Content.Roles != null) { 54 storeButton.Enabled = true; 55 55 Content.Roles.ItemsRemoved += new Collections.CollectionItemsChangedEventHandler<Collections.IndexedItem<Role>>(Roles_ItemsRemoved); 56 56 } -
trunk/sources/HeuristicLab.Clients.Access.Administration/3.3/Views/RefreshableUserGroupListView.cs
r8042 r8141 50 50 base.Content_Refreshed(sender, e); 51 51 userGroupListView.Enabled = true; 52 storeButton.Enabled = true;53 52 userGroupListView.Content = Content.Groups; 54 53 if (Content.Groups != null) { 54 storeButton.Enabled = true; 55 55 Content.Groups.ItemsRemoved += new Collections.CollectionItemsChangedEventHandler<Collections.IndexedItem<UserGroup>>(Groups_ItemsRemoved); 56 56 } -
trunk/sources/HeuristicLab.Clients.Access.Administration/3.3/Views/RefreshableUserListView.cs
r8042 r8141 50 50 base.Content_Refreshed(sender, e); 51 51 userListView.Enabled = true; 52 storeButton.Enabled = true;53 52 userListView.Content = Content.Users; 54 53 if (Content.Users != null) { 54 storeButton.Enabled = true; 55 55 Content.Users.ItemsRemoved += new Collections.CollectionItemsChangedEventHandler<Collections.IndexedItem<User>>(Users_ItemsRemoved); 56 56 } -
trunk/sources/HeuristicLab.Clients.Access.Administration/3.3/Views/UserGroupView.Designer.cs
r8042 r8141 86 86 // storeButton 87 87 // 88 this.storeButton.Enabled = false; 88 89 this.storeButton.Image = HeuristicLab.Common.Resources.VSImageLibrary.PublishToWeb; 89 90 this.storeButton.Location = new System.Drawing.Point(31, 58); -
trunk/sources/HeuristicLab.Clients.Access.Administration/3.3/Views/UserGroupView.cs
r8042 r8141 38 38 } 39 39 40 protected override void RegisterContentEvents() { 41 base.RegisterContentEvents(); 42 Access.AccessClient.Instance.Refreshing += new EventHandler(Content_Refreshing); 43 refreshableLightweightUserView.StorableStateChanged += new EventHandler(refreshableLightweightUserView_StorableStateChanged); 44 } 45 46 protected override void DeregisterContentEvents() { 47 Access.AccessClient.Instance.Refreshing -= new EventHandler(Content_Refreshing); 48 refreshableLightweightUserView.StorableStateChanged -= new EventHandler(refreshableLightweightUserView_StorableStateChanged); 49 base.DeregisterContentEvents(); 50 } 51 40 52 protected override void OnContentChanged() { 41 53 base.OnContentChanged(); … … 51 63 idTextBox.Text = Content.Id.ToString(); 52 64 53 refreshableLightweightUserView.Content = Access.AccessClient.Instance;54 refreshableLightweightUserView.FetchSelectedUsers = new Func<List<Guid>>(delegate { return AccessAdministrationClient.CallAccessService<List<Guid>>(s => s.GetUserGroupIdsOfGroup(Content.Id)); });65 refreshableLightweightUserView.Content = Content.Id != Guid.Empty ? Access.AccessClient.Instance : null; 66 refreshableLightweightUserView.FetchSelectedUsers = Content.Id != Guid.Empty ? new Func<List<Guid>>(delegate { return AccessAdministrationClient.CallAccessService<List<Guid>>(s => s.GetUserGroupIdsOfGroup(Content.Id)); }) : null; 55 67 } 56 68 } … … 77 89 AccessAdministrationClient.Instance.ExecuteActionAsync(deleteAction, PluginInfrastructure.ErrorHandling.ShowErrorDialog); 78 90 } 91 92 private void Content_Refreshing(object sender, EventArgs e) { 93 storeButton.Enabled = false; 94 } 95 96 private void refreshableLightweightUserView_StorableStateChanged(object sender, EventArgs e) { 97 storeButton.Enabled = true; 98 } 79 99 } 80 100 } -
trunk/sources/HeuristicLab.Clients.Access.Administration/3.3/Views/UserView.cs
r8042 r8141 57 57 lastActivityTextBox.Text = Content.LastActivityDate.ToString(); 58 58 lastLoginTextBox.Text = Content.LastLoginDate.ToString(); 59 refreshableRoleSelectionListView.Content = AccessAdministrationClient.Instance;59 refreshableRoleSelectionListView.Content = Content.Id != Guid.Empty ? AccessAdministrationClient.Instance : null; 60 60 refreshableRoleSelectionListView.CurrentUser = Content; 61 61 }
Note: See TracChangeset
for help on using the changeset viewer.