示例#1
0
        private void 添加学生信息ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form41 f = new Form41(this);

            f.ShowDialog();
            this.Close();
        }
示例#2
0
        private void 修改学生信息ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            string a, b, c, d;

            a = dataGridView1.SelectedCells[0].Value.ToString();

            b = dataGridView1.SelectedCells[1].Value.ToString();
            c = dataGridView1.SelectedCells[2].Value.ToString();
            d = dataGridView1.SelectedCells[3].Value.ToString();
            string[] str = { a, b, c, d };
            Form41   f   = new Form41(str, this);

            f.ShowDialog();
        }