Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/17/17 13:44:16 (7 years ago)
Author:
jkarder
Message:

#2839: worked on resources and projects views

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HiveProjectManagement/HeuristicLab.Clients.Access.Administration/3.3/Views/UserGroupView.cs

    r14185 r15422  
    4040    protected override void RegisterContentEvents() {
    4141      base.RegisterContentEvents();
    42       Access.AccessClient.Instance.Refreshing += new EventHandler(Content_Refreshing);
     42      AccessClient.Instance.Refreshing += new EventHandler(Content_Refreshing);
    4343      refreshableLightweightUserView.StorableStateChanged += new EventHandler(refreshableLightweightUserView_StorableStateChanged);
    4444    }
    4545
    4646    protected override void DeregisterContentEvents() {
    47       Access.AccessClient.Instance.Refreshing -= new EventHandler(Content_Refreshing);
     47      AccessClient.Instance.Refreshing -= new EventHandler(Content_Refreshing);
    4848      refreshableLightweightUserView.StorableStateChanged -= new EventHandler(refreshableLightweightUserView_StorableStateChanged);
    4949      base.DeregisterContentEvents();
     
    6363        idTextBox.Text = Content.Id.ToString();
    6464
    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;
    6767      }
    6868    }
    6969
    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;
    7373    }
    7474
Note: See TracChangeset for help on using the changeset viewer.