private void LoadCustomer() { List <Customer_DTO> loadCustomer = Customer_BUS.LoadCustomerList(); cmbCustomerName.DataSource = loadCustomer; cmbCustomerName.ValueMember = "CustomerID"; cmbCustomerName.DisplayMember = "CustomerName"; txtCustomerID.Text = cmbCustomerName.SelectedValue.ToString(); }
public void LoadCustomer() { List <Customer_DTO> customerList = Customer_BUS.LoadCustomerList(); dtgvCustomersListOfStore.DataSource = customerList; }