private void изменитьToolStripMenuItem_Click(object sender, EventArgs e) { string IDchange = Convert.ToString(dataGridView1.Rows[dataGridView1.CurrentRow.Index].Cells[0].Value); Staff EditForm = new Staff("Изменить", IDchange); EditForm.Show(); }
private void создатьToolStripMenuItem_Click(object sender, EventArgs e) { Staff EditForm = new Staff(); EditForm.Show(); EditForm.button1.Text = "Добавить запись"; }