Ejemplo n.º 1
0
        public DendritesForm(ISelectionService selectionService, NeuronCollection neurons)
        {
            InitializeComponent();

            this.selectionService = selectionService;
            this.selectionService.SelectionChanged += this.SelectionService_SelectionChanged;
            this.neurons = neurons;
        }
Ejemplo n.º 2
0
        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;
        }
Ejemplo n.º 3
0
        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;
        }
Ejemplo n.º 4
0
 public static Neuron GetNeuronByData(string value, NeuronCollection neurons)
 {
     return(neurons.First(n => n.Data == value));
 }
Ejemplo n.º 5
0
 private static IEnumerable <Neuron> GetDendrites(string id, NeuronCollection neurons)
 {
     return(neurons.ToList().Where(n => n.Terminals.Where(t => t.TargetId == id).Count() > 0));
 }
Ejemplo n.º 6
0
 public TreeModel(NeuronCollection neurons)
 {
     this.neurons = neurons;
 }