Exemple #1
0
        private void BiaoJia_Load(object sender, EventArgs e)
        {
            SFcomboBox1.Items.Clear();
            SFcomboBox2.Items.Clear();
            comboBox4.Items.Clear();
            comboBox1.Items.Clear();
            Button.CheckForIllegalCrossThreadCalls = false;
            //加载蔬菜名
            //加载省份
            Price_SysDB price_SysDB = new Price_SysDB();

            SFcomboBox1.Items.AddRange(price_SysDB.getShengFen(1));
            SFcomboBox1.SelectedIndex = 0;
            SFcomboBox2.Items.AddRange(price_SysDB.getShengFen(2));
            SFcomboBox2.SelectedIndex = 0;
            Price_UserDB price_UserDB = new Price_UserDB();

            comboBox4.Items.AddRange(price_UserDB.SelectVeg(Data.User.ID1));
            comboBox1.Items.AddRange(price_SysDB.getName(SFcomboBox1.Text));
            comboBox1.SelectedIndex = 0;
            label9.Text             = Convert.ToString(price_SysDB.select_price(SFcomboBox1.Text, comboBox1.Text));
        }