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