Exemplo n.º 1
0
 public GroupSelectorViewModel(
     IGroupsModel groupsModel, INewGroupCommand newGroupCommand, IGroupListItemViewModelFactory groupListItemViewModelFactory)
 {
     NewGroupCommand = newGroupCommand;
     this.groupsModel = groupsModel;
     this.groupListItemViewModelFactory = groupListItemViewModelFactory;
     this.groupsModel.EntityAdded += HandleEntityAdded;
     this.groupsModel.EntityDeleted += HandleEntityDeleted;
     PopulateGroupNames();
 }
Exemplo n.º 2
0
 public GroupSelectorViewModel(
     IGroupsModel groupsModel, INewGroupCommand newGroupCommand, IGroupListItemViewModelFactory groupListItemViewModelFactory)
 {
     NewGroupCommand  = newGroupCommand;
     this.groupsModel = groupsModel;
     this.groupListItemViewModelFactory = groupListItemViewModelFactory;
     this.groupsModel.EntityAdded      += HandleEntityAdded;
     this.groupsModel.EntityDeleted    += HandleEntityDeleted;
     PopulateGroupNames();
 }