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