Changeset 15422 for branches/HiveProjectManagement/HeuristicLab.Clients.Access.Administration/3.3/Views
- Timestamp:
- 10/17/17 13:44:16 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HiveProjectManagement/HeuristicLab.Clients.Access.Administration/3.3/Views/UserGroupView.cs
r14185 r15422 40 40 protected override void RegisterContentEvents() { 41 41 base.RegisterContentEvents(); 42 Access .AccessClient.Instance.Refreshing += new EventHandler(Content_Refreshing);42 AccessClient.Instance.Refreshing += new EventHandler(Content_Refreshing); 43 43 refreshableLightweightUserView.StorableStateChanged += new EventHandler(refreshableLightweightUserView_StorableStateChanged); 44 44 } 45 45 46 46 protected override void DeregisterContentEvents() { 47 Access .AccessClient.Instance.Refreshing -= new EventHandler(Content_Refreshing);47 AccessClient.Instance.Refreshing -= new EventHandler(Content_Refreshing); 48 48 refreshableLightweightUserView.StorableStateChanged -= new EventHandler(refreshableLightweightUserView_StorableStateChanged); 49 49 base.DeregisterContentEvents(); … … 63 63 idTextBox.Text = Content.Id.ToString(); 64 64 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;65 refreshableLightweightUserView.Content = Content.Id != Guid.Empty ? AccessClient.Instance : null; 66 refreshableLightweightUserView.FetchSelectedUsers = Content.Id != Guid.Empty ? new Func<List<Guid>>(delegate { return AccessAdministrationClient.CallAccessService(s => s.GetUserGroupIdsOfGroup(Content.Id)); }) : null; 67 67 } 68 68 } 69 69 70 private void groupNameTextBox_TextChanged(object sender, System.EventArgs e) {71 if (Content .Name != this.groupNameTextBox.Text)72 Content.Name = this.groupNameTextBox.Text;70 private void groupNameTextBox_TextChanged(object sender, EventArgs e) { 71 if (Content != null && Content.Name != groupNameTextBox.Text) 72 Content.Name = groupNameTextBox.Text; 73 73 } 74 74
Note: See TracChangeset
for help on using the changeset viewer.