private void Btn_Siguente_Click(object sender, EventArgs e) { if (tiempo == 0) { MessageBox.Show("El tiempo de seleccion a terminado!"); Form formularioca = new frmMenu(); formularioca.Show(); Visible = false; } else { if (count4 == 0) { MessageBox.Show("Por favor, seleccione al menos 1 boleto para continuar, Gracias!!"); } else { try { conn.Open(); OdbcCommand command = new OdbcCommand("SELECT estado FROM asientos where idFuncion=" + nofuncion + " AND estado=0", conn); OdbcDataReader reader = command.ExecuteReader(); if (reader.Read()) { frmAsientos asi = new frmAsientos(tiempo, nofuncion, cineSeleccionado, Convert.ToInt32(txt3ra.Text), Convert.ToInt32(txtAdulto.Text), Convert.ToInt32(txtNiño.Text)); asi.txtAsientos.Text = txtTotalB.Text; asi.Show(); Visible = false; } else { MessageBox.Show("Funcion Llena"); } } catch (Exception ex) { MessageBox.Show(ex.Message); } conn.Close(); } } }
private void asientosAnteriorToolStripMenuItem_Click(object sender, EventArgs e) { frmAsientos frmAsientos = new frmAsientos(true); frmAsientos.ShowDialog(); }