void loadLists() { comboBox_RatioType.DataSource = UtilityExtension.EnumArray <RatioType>(); var bindingSource = agentGroupH.GetList(); comboBox_AgentGroupID.DataSource = bindingSource; comboBox_AgentGroupID.DisplayMember = "Value"; comboBox_AgentGroupID.ValueMember = "Key"; comboBox_AgentGroupID.SelectedValue = -1; var bindingSource2 = agentH.GetList(); comboBox_AgentID.DataSource = bindingSource2; comboBox_AgentID.DisplayMember = "Value"; comboBox_AgentID.ValueMember = "Key"; comboBox_AgentID.SelectedValue = -1; var bindingSource3 = agentH.GetList(AgentType.Chief); comboBox_AgentID_Chief.DataSource = bindingSource3; comboBox_AgentID_Chief.DisplayMember = "Value"; comboBox_AgentID_Chief.ValueMember = "Key"; comboBox_AgentID_Chief.SelectedValue = -1; var bindingSource4 = agentH.GetList(AgentType.Office); comboBox_AgentID_Office.DataSource = bindingSource4; comboBox_AgentID_Office.DisplayMember = "Value"; comboBox_AgentID_Office.ValueMember = "Key"; comboBox_AgentID_Office.SelectedValue = -1; }