Example #1
0
 private void 修改学生信息ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     try
     {
         string[] str = { dataGridView1.SelectedCells[0].Value.ToString(), dataGridView1.SelectedCells[1].Value.ToString(),
                          dataGridView1.SelectedCells[2].Value.ToString(), dataGridView1.SelectedCells[3].Value.ToString() };
         Form41   f = new Form41(str);
         f.ShowDialog();
     }
     catch
     {
         MessageBox.Show("请先选中一行");
     }
 }
Example #2
0
        private void 添加学生ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form41 f = new Form41();

            f.ShowDialog();
        }