private void btnRetornar_Click(object sender, EventArgs e) { this.Hide(); TelaLogin tl = new TelaLogin(); tl.Show(); }
private void btnSair_Click(object sender, EventArgs e) { MessageBox.Show("Saindo com segurança"); this.Hide(); TelaLogin tl = new TelaLogin(); tl.Show(); }
public void SairUsuario(Form form) { DialogResult res = MessageBox.Show("Tem certeza que deseja sair?", "Confirmação", MessageBoxButtons.OKCancel, MessageBoxIcon.Information); if (res.Equals(DialogResult.OK)) { this.Hide(); TelaLogin tl = new TelaLogin(); tl.Show(); } }
public void DadoQueEstouLogadoComoUmAdministrador() { _telaLogin = new TelaLogin(); _telaLogin.Show(); _cpfValido = CPF.GeraCpf(); _telaLogin.TestCampos("admin", "admin"); Assert.DoesNotThrow(() => _telaLogin.TestLogin()); }
public void DadoQueEstouComATelaAberta() { _telaLogin = new TelaLogin(); _telaLogin.Show(); }