- Timestamp:
- 07/03/12 16:46:35 (13 years ago)
- Location:
- branches/GP-MoveOperators
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GP-MoveOperators
- Property svn:mergeinfo changed
/trunk/sources merged: 8084,8088-8090,8092-8100,8102-8113,8115,8117-8132,8134-8146,8148-8156,8158-8160,8163-8170,8173-8176,8178-8190,8192-8205
- Property svn:mergeinfo changed
-
branches/GP-MoveOperators/HeuristicLab.Clients.Access.Administration/3.3/Views/RefreshableRoleListView.cs
r8042 r8206 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 } -
branches/GP-MoveOperators/HeuristicLab.Clients.Access.Administration/3.3/Views/RefreshableUserGroupListView.cs
r8042 r8206 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 } -
branches/GP-MoveOperators/HeuristicLab.Clients.Access.Administration/3.3/Views/RefreshableUserListView.cs
r8042 r8206 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 } -
branches/GP-MoveOperators/HeuristicLab.Clients.Access.Administration/3.3/Views/UserGroupView.Designer.cs
r8042 r8206 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); -
branches/GP-MoveOperators/HeuristicLab.Clients.Access.Administration/3.3/Views/UserGroupView.cs
r8042 r8206 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 } -
branches/GP-MoveOperators/HeuristicLab.Clients.Access.Administration/3.3/Views/UserView.cs
r8042 r8206 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 } 62 } 63 64 protected override void SetEnabledStateOfControls() { 65 base.SetEnabledStateOfControls(); 66 if (Content == null) { 67 resetPasswordButton.Enabled = false; 68 } else { 69 resetPasswordButton.Enabled = Content.Id != Guid.Empty; 61 70 } 62 71 }
Note: See TracChangeset
for help on using the changeset viewer.