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))); }
public GraphCommandHandlers(INotificationLogClient notificationLogClient) { this.notificationLogClient = notificationLogClient; this.isStarted = false; }