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