예제 #1
0
        private void CbxTableName_SelectedIndexChanged(object sender, EventArgs e)
        {
            NewAddClass frm = new NewAddClass();
            DataTable   dt  = frm.GetColumnsType(CbxTableName.Text.Trim(), CboSoureName.Text.Trim(), CboLoadSql.Text.Trim());

            dataGridView1.DataSource = dt;
            dataGridView1.ReadOnly   = true;
        }
예제 #2
0
        private void CboSoureName_SelectedIndexChanged(object sender, EventArgs e)
        {
            NewAddClass frm = new NewAddClass();
            DataTable   dt  = frm.ReturnTable(CboSoureName.Text.Trim(), CboLoadSql.Text.Trim());

            CbxTableName.Items.Clear();
            foreach (DataRow dr in dt.Rows)
            {
                CbxTableName.Items.Add(dr[0].ToString());
            }
        }
예제 #3
0
        private void StartLoad()
        {
            NewAddClass frm = new NewAddClass();
            DataTable   dt  = frm.ReturnTableName(CboLoadSql.Text.Trim());

            CboSoureName.Items.Clear();
            foreach (DataRow dr in dt.Rows)
            {
                CboSoureName.Items.Add(dr[0].ToString());
            }
        }