Exemplo n.º 1
0
        private void SetTechncicianList()
        {
            try
            {
                List <string> technicianList = new List <string> {
                };
                technicianList.Add("-- Unassigned --");

                foreach (Technician t in technicianController.GetTechnicians())
                {
                    technicianList.Add(t.TechnicianName);
                }

                technicianComboBox.DataSource = technicianList;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, ex.GetType().ToString());
            }
        }