private void buttonReemplazar_Click(object sender, EventArgs e) { string matricula = llamado.getMatricula(); string query = "select * from dbas.aeronavesDeReemplazo('" + matricula + "')"; DataTable dt = (new ConexionSQL()).cargarTablaSQL(query); if (dt.Rows.Count == 0) { DeseaDarDeAltaUnaAeronave form = new DeseaDarDeAltaUnaAeronave(llamado,anterior); this.Hide(); form.Show(); } else { SeleccionarCualReemplazar form = new SeleccionarCualReemplazar(dt,this); form.Show(); } }
private void buttonReemplazar_Click(object sender, EventArgs e) { string matricula = llamado.getMatricula(); string query = "select * from dbas.aeronavesDeReemplazo('" + matricula + "')"; DataTable dt = (new ConexionSQL()).cargarTablaSQL(query); if (dt.Rows.Count == 0) { DeseaDarDeAltaUnaAeronave form = new DeseaDarDeAltaUnaAeronave(llamado, anterior); this.Hide(); form.Show(); } else { SeleccionarCualReemplazar form = new SeleccionarCualReemplazar(dt, this); form.Show(); } }