예제 #1
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            ValidacaoNome validacao = new ValidacaoNome();

            if (validacao.Validar(TextBox1.Text))
            {
                Label1.Text = "Nome Correto";
            }
            else
            {
                Label1.Text = "Nome Incorreto";
            }

            Trace.Warn(Label1.Text);
        }
예제 #2
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            ValidacaoNome validacao = new ValidacaoNome();

            if (validacao.Validar(TextBox1.Text))
            {
                Label1.Text = "Nome Correto";
            }
            else
            {
                Label1.Text = "Nome Incorreto";
            }

            Trace.Warn(Label1.Text);
        }