Example #1
0
        private void BindEmployeePicker()
        {
            cboEmployeePicker.DataSource    = _deliveryService.EmployeeList();
            cboEmployeePicker.DisplayMember = "EmployeeName";
            cboEmployeePicker.ValueMember   = "EmployeeID";

            cboEmployeePicker.DataBindings.Clear();
            cboEmployeePicker.DataBindings.Add("SelectedValue", bsSelectedDelivery,
                                               "EmployeeID", true,
                                               DataSourceUpdateMode.OnPropertyChanged);
        }
Example #2
0
 private void LoadEmployees()
 {
     cboEmployees.DataSource    = _deliveryService.EmployeeList();
     cboEmployees.DisplayMember = "EmployeeName";
     cboEmployees.ValueMember   = "EmployeeID";
 }