void loadLists() { comboBox_TransactionType.DataSource = UtilityExtension.EnumArray <ProductTransactionType>(); comboBox_TransactionType.SelectedIndex = 0; comboBox_AmountType.DataSource = UtilityExtension.EnumArray <AmountType>(); comboBox_AmountType.SelectedIndex = 0; comboBox_NextAmountType.DataSource = UtilityExtension.EnumArray <AmountType>(); comboBox_NextAmountType.SelectedIndex = 1; var bindingSource2 = aProductH.GetList(); comboBox_ProductID.DataSource = bindingSource2; comboBox_ProductID.DisplayMember = "Value"; comboBox_ProductID.ValueMember = "Key"; comboBox_ProductID.SelectedValue = -1; var bindingSource = aInvestmentGroupH.GetList(); comboBox_InvestmentGroupID.DataSource = bindingSource; comboBox_InvestmentGroupID.DisplayMember = "Value"; comboBox_InvestmentGroupID.ValueMember = "Key"; comboBox_InvestmentGroupID.SelectedValue = -1; var bindingSource3 = aAgentGroupH.GetList(); comboBox_AgentGroupID.DataSource = bindingSource3; comboBox_AgentGroupID.DisplayMember = "Value"; comboBox_AgentGroupID.ValueMember = "Key"; comboBox_AgentGroupID.SelectedValue = -1; var bindingSource5 = aDealH.GetList(); comboBox_DealID.DataSource = bindingSource5; comboBox_DealID.DisplayMember = "Value"; comboBox_DealID.ValueMember = "Key"; comboBox_DealID.SelectedValue = -1; var bindingSource4 = aContactH.GetList(); comboBox_PartyBID.DataSource = bindingSource4; comboBox_PartyBID.DisplayMember = "Value"; comboBox_PartyBID.ValueMember = "Key"; comboBox_PartyBID.SelectedValue = -1; }