private void редактироватьToolStripMenuItem_Click(object sender, EventArgs e) { if (dataGridView1.CurrentRow != null) { int id = Convert.ToInt32(dataGridView1.CurrentRow.Cells[0].Value); CRUStudent plForm = new CRUStudent(id); plForm.Show(); } }
private void добавитьToolStripMenuItem_Click(object sender, EventArgs e) { CRUStudent plForm = new CRUStudent(); plForm.Show(); }