コード例 #1
0
        private void SlipwayManage_Load(object sender, EventArgs e)
        {
            BLL.BLL ss  = new BLL.BLL();
            DataSet ds1 = ss.SlipwayManage_Sx();
            int     hs1 = ds1.Tables[0].Rows.Count;

            comboBox1.DisplayMember = "name";
            comboBox1.ValueMember   = "id";
            comboBox1.DataSource    = ds1.Tables[0];
            if (comboBox1.Items.Count != 0)
            {
                comboBox1.SelectedIndex = 0;
            }
        }
コード例 #2
0
        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            GUI.AddSlipway asw = new AddSlipway();
            this.Hide();
            asw.ShowDialog();
            this.Show();
            BLL.BLL ss  = new BLL.BLL();
            DataSet ds1 = ss.SlipwayManage_Sx();
            int     hs1 = ds1.Tables[0].Rows.Count;

            comboBox1.DisplayMember = "name";
            comboBox1.ValueMember   = "id";
            comboBox1.DataSource    = ds1.Tables[0];
        }