コード例 #1
0
 private void groupsView_SelectionChanged(object sender, EventArgs e)
 {
     if (groupsView.SelectedRows.Count > 0)
     {
         _selectedGroup    = (GroupView)groupsView.SelectedRows[0].DataBoundItem;
         lblGroupName.Text = _selectedGroup.Name;
         Dictionary <int, RealatedUserView> members = _relatedusers.ToDictionary(ru => ru.ID);
         members.Values.Any(g => g.Assigned = false);
         foreach (var m in _selectedGroup.Members)
         {
             members[m.UserID].Assigned = true;
         }
         membersGrid.DataSource = _relatedusers;
         membersGrid.Refresh();
         SetGroupPermmisions();
     }
     else
     {
         if (_selectedUser != null)
         {
             _selectedUser = null;
         }
     }
 }
コード例 #2
0
 internal void Remove(GroupView _selectedGroup)
 {
     throw new NotImplementedException();
 }