private void toolStripButton1_Click(object sender, EventArgs e) { index = 0; SotrudnikiAdd newfrm = new SotrudnikiAdd(index, cell); newfrm.Show(); }
private void toolStripButton2_Click(object sender, EventArgs e) { cell = dataGridView1.CurrentRow.Cells[0].Value.ToString(); index = 1; SotrudnikiAdd newfrm = new SotrudnikiAdd(index, cell); newfrm.Show(); }