public FormOrder(IBeverage beverage) { CurrentBeverage = beverage; InitializeComponent(); Text = CurrentBeverage.Name; ResourceManager rm = Properties.Resources.ResourceManager; Bitmap myImage = (Bitmap)rm.GetObject(CurrentBeverage.Image); int i = 65; foreach (var control in CurrentBeverage.GetControls()) { control.Location = new Point(30, i); Controls.Add(control); i += 25; } }