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(); }
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(); }