Beispiel #1
0
    private void BindListView()
    {
        PesquisaWeb search = new PesquisaWeb(username);
        //bool flagTodosTermos = CheckBoxTodosTermos.Checked;
        bool flagTodosTermos = true;
        bool ignorarHist     = CheckBoxRejeitadas.Checked;


        string termos = TextBox1.Text;

        if (termos != "")
        {
            List <Link> resultado =
                search.efectuaPesquisa(termos, flagTodosTermos, ignorarHist);

            if (resultado.Count() > 0)
            {
                ListView1.DataSource = resultado;
                ListView1.DataBind();
            }
            else
            {
                LabelResultados.Text = "Não foram encontrados resultados";
            }
        }
        else
        {
            LabelResultados.Text = "Não introduziu termos de pesquisa";
        }
    }
Beispiel #2
0
    private void BindListView()
    {
        PesquisaWeb search = new PesquisaWeb(username);
        //bool flagTodosTermos = CheckBoxTodosTermos.Checked;
        bool flagTodosTermos = true;
        bool ignorarHist = CheckBoxRejeitadas.Checked;

        string termos = TextBox1.Text;

        if (termos != "")
        {
            List<Link> resultado =
                 search.efectuaPesquisa(termos, flagTodosTermos, ignorarHist);

            if (resultado.Count() > 0)
            {
                ListView1.DataSource = resultado;
                ListView1.DataBind();
            }
            else
            {
                LabelResultados.Text = "Não foram encontrados resultados";
            }
        }
        else
        {
            LabelResultados.Text = "Não introduziu termos de pesquisa";
        }
    }