コード例 #1
0
        private void fillLv()
        {
            SmServ.PictCatCL    pc = new SmServ.PictCatCL();
            SmServ.SmServClient cl = new SmServ.SmServClient();
            string ident           = "9f1abf95-1fc7-4019-a15b-27d7e542497d";

            DropDownList1.DataSource     = cl.getPictCategories(ident, 1);
            DropDownList1.DataTextField  = "PictCatName";
            DropDownList1.DataValueField = "PictCatID";
            DropDownList1.DataBind();
        }
コード例 #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            string ident = "9f1abf95-1fc7-4019-a15b-27d7e542497d";

            SmServ.PictCatCL    pc = new SmServ.PictCatCL();
            SmServ.SmServClient cl = new SmServ.SmServClient();

            SmServ.PictCatCL[] pcl = cl.getPictCategories(ident, Convert.ToInt16(tbStep.Text));

            BindingList <SmServ.PictCatCL> bl = new BindingList <SmServ.PictCatCL>(pcl);

            comboBox1.DataSource    = bl;
            comboBox1.DisplayMember = "PictCatName";
            comboBox1.ValueMember   = "PictCatID";
        }