AerolineaFrba.Abm_Aeronave.Listado.concatenarCriterio C# (CSharp) Method

concatenarCriterio() private method

private concatenarCriterio ( TextBox txt, ComboBox combo, string criterio ) : System.Boolean
txt System.Windows.Forms.TextBox
combo System.Windows.Forms.ComboBox
criterio string
return System.Boolean
        private Boolean concatenarCriterio(TextBox txt, ComboBox combo, string criterio)
        {
            if (this.datosCorrectos(txt, combo))
            {
                if (!this.huboCondicion && !this.loActivoGenerarViajes)
                {
                    this.huboCondicion = true;
                    this.query += " WHERE ";
                }
                else
                    this.query += " AND ";

                this.query += nombreColumna(combo.Text) + criterio;
                string mensaje = "'" + txt.Text + "'" + " sobre el campo " + combo.Text;

                if (this.filtro1)
                {
                    listaFiltros.Items.Add("Se ha agregado el filtro por contenido del valor ");
                }
                else
                {
                        listaFiltros.Items.Add("Se ha agregado el filtro por igualdad del valor ");
                }
                listaFiltros.Items.Add(mensaje);
                return true;
            }
            return false;
        }

Same methods

Listado::concatenarCriterio ( DateTimePicker dataTime, ComboBox combo, string criterio ) : void