示例#1
0
        private void button3_Click_1(object sender, EventArgs e)
        {
            SqlCommand command = new SqlCommand("select * from mycontact");
            DataTable  table   = new DataTable();

            table = ct.SelectContactList(command);
            SelectContactForm frm = new SelectContactForm();

            frm.dataGridView1.DataSource = table;
            frm.Show();
        }
示例#2
0
        private void button5_Click(object sender, EventArgs e)
        {
            SelectContactForm se = new SelectContactForm();

            se.Show();
        }