private void button1_Click(object sender, EventArgs e) { try { AmazonDynamoDBClient client = new AmazonDynamoDBClient(); DynamoDBContext context = new DynamoDBContext(client); String loginConfirm = ComandoAWS.VerificacaoLogin(context, "admin", password.Text); if (loginConfirm == "admin") { InterfaceAddUser interfaceAddUser = new InterfaceAddUser(); interfaceAddUser.Show(); this.Close(); } else { MessageBox.Show("Senha Incorreta!"); this.Close(); } } catch { this.Close(); } }
private void button1_Click(object sender, EventArgs e) { AmazonDynamoDBClient client = new AmazonDynamoDBClient(); DynamoDBContext context = new DynamoDBContext(client); String loginConfirm = ComandoAWS.VerificacaoLogin(context, user.Text, password.Text); if (loginConfirm != "nok") { GlobalVariables.usuarioLogin = loginConfirm; MenuPrincipal menuPrincipal = new MenuPrincipal(); menuPrincipal.Show(); this.Hide(); } else { MessageBox.Show("Usuário ou senha incorreto!"); } }