public MutatingEngine(IDataSource <TData> dataSource) : base(Task.FromResult <IActorRef>(ActorRefs.Nobody), new WorkspaceSuperviser()) { _mutator = Task.FromResult <IActorRef>(ActorRefs.Nobody); _dataSource = dataSource; _superviser = new WorkspaceSuperviser(); _responder = new ResponderList(_dataSource.SetData); }
internal MutatingEngine(Task <IActorRef> mutator, IDataSource <TData> dataSource, WorkspaceSuperviser superviser) : base(mutator, superviser) { _mutator = mutator; _dataSource = dataSource; _superviser = superviser; _responder = new ResponderList(_dataSource.SetData); }
public void FilterResponders(DepartmentType departmentFilterType) { ResponderList.Clear(); var responders = FullResponderList; if (departmentFilterType != DepartmentType.None) { responders = responders.Where(x => x.ResponderDepartment == departmentFilterType).ToList(); } foreach (var responder in responders) { ResponderList.Add(new ResponderViewModel(responder)); } _selectedDepartment = departmentFilterType; OnPropertyChanged(nameof(AllRespondersChecked)); OnPropertyChanged(nameof(PoliceRespondersChecked)); OnPropertyChanged(nameof(FireRespondersChecked)); OnPropertyChanged(nameof(MedicalRespondersChecked)); }