public void OnTaskChanged(INetworkTask task) { var controls = NeuronsHolder.Children.OfType <InputNeuronControl>().ToList(); controls.ForEach(c => NeuronsHolder.Children.Remove(c)); if (task != null) { Range.For(task.GetInputCount(), n => NeuronsHolder.Children.Insert(0, AddNeuron())); } }
public void RearrangeWithNewPointsCount() { Data = null; Rearrange(Task.GetInputCount()); }