public SpikeTargetsForm(ISelectionService selectionService, ISpikeTargetListService spikeService, NeuronCollection neurons) { InitializeComponent(); this.selectionService = selectionService; this.spikeService = spikeService; this.spikeService.Added += this.SpikeService_Added; this.spikeService.Removed += this.SpikeService_Removed; this.neurons = neurons; }
public CortexGraphViewModel(NeuronCollection neurons, INotificationLogClient notificationLogClient, IRepository <works.ei8.Cortex.Graph.Domain.Model.Neuron> neuronRepository, ISpikeTargetListService spikeTargetListService, IResultMarkerService resultMarkerService) { this.AvatarUri = Properties.Settings.Default.AvatarUri; this.neurons = neurons; this.notificationLogClient = notificationLogClient; this.neuronRepository = (INeuronRepository)neuronRepository; this.spikeTargetListService = spikeTargetListService; this.resultMarkerService = resultMarkerService; this.ReloadCommand = ReactiveCommand.Create(this.Reload, this.WhenAnyValue(vm => vm.AvatarUri).Select(s => !string.IsNullOrEmpty(s))); this.RenderCommand = ReactiveCommand.Create(this.Render, this.WhenAnyValue(vm => vm.AvatarUri).Select(s => !string.IsNullOrEmpty(s))); }