Exemple #1
0
 private void btnOk_Click(object sender, EventArgs e)
 {
     if (txtSenha.Text == proj._Senha)
     {
         MessageBox.Show("Pronto! Projeto desbloqueado.");
         proj._Senha = "Tn3rD({)P";
         boProjeto.BOInsereSenha(proj);
         this.Close();
     }
     else
     {
         MessageBox.Show("Senha errada!");
     }
 }
Exemple #2
0
        private void btnCadastrarUsuario_Click(object sender, EventArgs e)
        {
            senha          = txtSenha.Text;
            proj._Lembrete = txtLembrete.Text;

            if (txtLembrete.Text == "")
            {
                proj._Lembrete = "";
            }

            if (txtSenha.Text == txtRepeteSenha.Text)
            {
                proj._Senha = senha;
                boProj.BOInsereSenha(proj);
                this.Close();
            }
            else
            {
                MessageBox.Show("As senhas não correspondem! Arruma isso colega!");
            }
        }