예제 #1
0
        private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            listBox1.Items.Clear();
            listBox2.Items.Clear();
            object a = comboBox1.SelectedValue;

            BLL.BLL SS  = new BLL.BLL();
            DataSet ds2 = SS.SlipwayManage_SS(a);
            int     hs2 = ds2.Tables[0].Rows.Count;

            for (int loop = 0; loop < hs2; loop++)
            {
                listBox1.Items.Add(ds2.Tables[0].Rows[loop].ItemArray[0].ToString());
            }
            BLL.BLL BB  = new BLL.BLL();
            DataSet ds3 = BB.SlipwayManage_BB();
            int     hs3 = ds3.Tables[0].Rows.Count;

            for (int loop = 0; loop < hs3; loop++)
            {
                listBox2.Items.Add(ds3.Tables[0].Rows[loop].ItemArray[0].ToString());
            }
        }