Example #1
0
        private void RefreshCoinInfo()
        {
            CoinsAll = Program.AASServiceClient.QueryAll可用资金();
            this.bindingSourceUserCoin.DataSource = CoinsAll;

            var coinsType = CoinsAll.Select(_ => _.币种).Distinct();

            foreach (var item in coinsType)
            {
                comboBoxCoin.Items.Add(item);
            }
        }
Example #2
0
        private void UserCoinsList_Load(object sender, EventArgs e)
        {
            CoinsAll = Program.AASServiceClient.QueryAll可用资金();
            this.bindingSourceUserCoin.DataSource = CoinsAll;
            this.dataGridView1.DataSource         = bindingSourceUserCoin;

            var coinsType = CoinsAll.Select(_ => _.币种).Distinct();

            comboBoxCoin.Items.Add("--All--");
            foreach (var item in coinsType)
            {
                comboBoxCoin.Items.Add(item);
            }

            var user = Program.AASServiceClient.QueryJY();

            comboBoxUser.Items.Add("--All--");
            foreach (var item in user)
            {
                comboBoxUser.Items.Add(item.用户名);
            }
        }