Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void btnProcurarA_Click(object sender, EventArgs e)
- {
- if (!mskProcurarA.Text.Equals(""))
- {
- var A = new Administrador();
- A.Cpf = mskProcurarA.Text;
- if ((A=AdministradorDAO.Find(A))!=null)
- {
- txtNomeA.Text = A.Nome;
- mskCpfA.Text = A.Cpf;
- txtSenhaA.Text=A.Senha;
- MessageBox.Show("Encontrado!", "Info", MessageBoxButtons.OK, MessageBoxIcon.Information);
- }else
- {
- MessageBox.Show("CPF não encontrado!", "Info", MessageBoxButtons.OK, MessageBoxIcon.Information);
- }
- }else
- {
- MessageBox.Show("Por favor, Preencha os campos!", "Info", MessageBoxButtons.OK, MessageBoxIcon.Information);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement