Ejemplo n.º 1
0
        /// <summary>
        /// 1. Loads Employees in the combo box employees
        /// </summary>
        private void ListEmployees()
        {
            // new Controller cleans the object everytime it is called
            // new Controllercleans the view with every click
            clsInfo Controller = new clsInfo();

            cmbEmployees.DataSource    = Controller.EmployeeList();
            cmbEmployees.DisplayMember = "Employee";
            cmbEmployees.ValueMember   = "idEmployee";
        }