private void CreateInvoiceForm_Load(object sender, EventArgs e) { List <Customer> customers = ProductDb.GetAllCustomers(); customerComboBox1.DataSource = customers.ToList(); }