AerolineaFrba.Abm_Ruta.Baja.button4_Click_1 C# (CSharp) Method

button4_Click_1() private method

private button4_Click_1 ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        private void button4_Click_1(object sender, EventArgs e)
        {
            this.filtro = 2;
            if (txtFiltro2.Enabled && !Validacion.esVacio(txtFiltro2))
                {
                    if (this.concatenarCriterio(txtFiltro2, cboCamposFiltro2, " = '" + txtFiltro2.Text + "'"))
                    {
                        cboCamposFiltro2.SelectedIndex = -1;
                        txtFiltro2.Text = "";
                        this.sePusoAgregarFiltro2 = true;
                    }
                }
            else
                {
                    MessageBox.Show("Debe llenar el texto para poder agregar filtro", "Advertencia", MessageBoxButtons.OK);
                }
        }