private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex > -1) { frm_vinos vinos = new frm_vinos(); vinos.accion = "Editar"; vinos.nick = _nick; vinos.codigo = dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString().Replace(" ", ""); vinos.ShowDialog(); } }
private void b_mas_Click(object sender, EventArgs e) { frm_vinos vinos = new frm_vinos(); vinos.accion = "Insertar"; vinos.nick = _nick; vinos.Show(); }