示例#1
0
        public GroupViewModel(Group group, GroupViewModel parent)
        {
            _group = group;
            _parent = parent;

            _children = new ReadOnlyCollection<GroupViewModel>(
                    (from child in _group.SubGroups select new GroupViewModel(child, this)).ToList()
                    );
        }
示例#2
0
 public void AddGroupMembership(GroupViewModel model)
 {
     _user.AddGroupMembership(model.Name);
     OnPropertyChanged("Membership");
 }