コード例 #1
0
        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);
        }
コード例 #2
0
        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})";
                }
            }
        }