public FeederListControl() { InitializeComponent(); feederCustomizationPanel.Hide(); this.Width = feedersListPanel.Width; presenter = new FeederListControlPresenter(this); }
public FeederListControl(ArrayList feeders) { InitializeComponent(); foreach (Feeder feeder in feeders) { FeedersListItem feederform = new FeedersListItem(new MyDelegate(func), feeder); feedersListPanel.Controls.Add(feederform); } feederCustomizationPanel.Hide(); this.Width = feedersListPanel.Width; presenter = new FeederListControlPresenter(this); }