Exemple #1
0
        public void LoadLists()
        {
            var bindingSource = ContactH.GetList();

            comboBox_ContactID.DataSource    = bindingSource;
            comboBox_ContactID.DisplayMember = "Value";
            comboBox_ContactID.ValueMember   = "Key";
            comboBox_ContactID.SelectedValue = -1;

            var bindingSource2 = InvestmentH.GetList();

            comboBox_WalletReference.DataSource    = bindingSource2;
            comboBox_WalletReference.DisplayMember = "Value";
            comboBox_WalletReference.ValueMember   = "Key";
            comboBox_WalletReference.SelectedValue = -1;
        }
Exemple #2
0
        void loadLists()
        {
            var bindingSource = investmentGroupH.GetList();

            comboBox_InvestmentGroupID.DataSource    = bindingSource;
            comboBox_InvestmentGroupID.DisplayMember = "Value";
            comboBox_InvestmentGroupID.ValueMember   = "Key";
            comboBox_InvestmentGroupID.SelectedValue = -1;

            var bindingSource2 = InvestmentH.GetList();

            comboBox_InvestmentID.DataSource    = bindingSource2;
            comboBox_InvestmentID.DisplayMember = "Value";
            comboBox_InvestmentID.ValueMember   = "Key";
            comboBox_InvestmentID.SelectedValue = -1;
        }