Ejemplo n.º 1
0
        private void 添加学生信息ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            admin_1 admin_1 = new admin_1();

            admin_1.ShowDialog();
            dataGridView1.Rows.Clear();
            Table();
        }
Ejemplo n.º 2
0
        private void 修改学生信息ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            string[] str = { dataGridView1.SelectedCells[0].Value.ToString(), dataGridView1.SelectedCells[1].Value.ToString(), dataGridView1.SelectedCells[2].Value.ToString(),
                             dataGridView1.SelectedCells[3].Value.ToString() };

            admin_1 admin_1 = new admin_1(str);

            admin_1.ShowDialog();
            dataGridView1.Rows.Clear();
            Table();
        }