private void Click_Registro(object sender, DataGridViewCellEventArgs e) { if (e.ColumnIndex == 5) { Asiento asi = new Asiento(); asi.Cod_sala = Convert.ToInt32(dgvAsiento.Rows[e.RowIndex].Cells[0].Value); asi.fila = dgvAsiento.Rows[e.RowIndex].Cells[1].Value.ToString(); asi.columna = dgvAsiento.Rows[e.RowIndex].Cells[2].Value.ToString(); asi.Cod_sala = Convert.ToInt32(dgvAsiento.Rows[e.RowIndex].Cells[3].Value.ToString()); MessageBox.Show("" + asi.Cod_sala); newAsiento asiento = new newAsiento(asi, this); asiento.ShowDialog(); } }
private void btnValidar_Click(object sender, EventArgs e) { newAsiento obj = new newAsiento(this); obj.ShowDialog(); }