public void Fill(Panel panel, int number) { for (int i = 0; i < number; i++) { panel.Children.Add(_controlGenerator.Generate()); } }
public void Fill(Panel panel) { var number = _dataProvider.GetData(); for (int i = 0; i < number; i++) { panel.Children.Add(_controlGenerator.Generate()); } }