public ListX <LayerBase> GetLayersControls() { var result = new ListX <LayerBase>(CtlTabsLayers.Items.Count); for (int i = 0; i < CtlTabsLayers.Items.Count; ++i) { result.Add(CtlTabsLayers.Tab(i).FindVisualChildren <LayerBase>().First()); } return(result); }
public void ResetLayersTabsNames() { var layers = GetLayersControls(); for (int i = 0; i < layers.Count; ++i) { if (layers[i].IsInput) { CtlTabsLayers.Tab(i).Header = $"Input ({layers[i].NeuronsCount})"; } else if (layers[i].IsOutput) { CtlTabsLayers.Tab(i).Header = $"Output ({layers[i].NeuronsCount})"; } else { CtlTabsLayers.Tab(i).Header = $"L{i} ({layers[i].NeuronsCount})"; } } }