public ResultMarkersForm(ISelectionService selectionService, IResultMarkerService resultMarkersService, NeuronCollection neurons)
        {
            InitializeComponent();

            this.selectionService                  = selectionService;
            this.resultMarkersService              = resultMarkersService;
            this.resultMarkersService.Initialized += this.ResultMarkersService_Initialized;
            this.resultMarkersService.Updated     += this.ResultMarkersService_Updated;
            this.resultMarkersService.Added       += this.ResultMarkersService_Added;
            this.resultMarkersService.Removed     += this.ResultMarkersService_Removed;
            this.neurons = neurons;
        }
Beispiel #2
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)));
        }