private void AddItems_Load(object sender, EventArgs e) { ConsignmentShop asdf = new ConsignmentShop(); foreach (Vendor vendor in ConsignmentShop.store.Vendors) { string ven = vendor.FirstName + " " + vendor.LastName; vendorComboBox.Items.Add(ven); } }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); // composition root //IDataSource dataSource = new DummyData(); IDataSource dataSource = new XmlData(); Profits profit = new Profits(); NewStoreItems newItems = new NewStoreItems(); var form = new ConsignmentShop(dataSource, profit, newItems); // run your logic Application.Run(form); }