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