private void btnSignout_Click(object sender, EventArgs e) { var result = login.Signout(txtEmail.Text, txtPassword.Text); if (result) { MessageBox.Show("Success"); gMojangLogin.Enabled = true; } else { MessageBox.Show("Fail"); } }
private void Button1_Click(object sender, EventArgs e) { // signout var result = login.Signout(txtEmail.Text, txtPassword.Text); if (result) { MessageBox.Show("Success"); Application.Exit(); } else { MessageBox.Show("Failed"); } }
private void Btn_Signout_Click(object sender, EventArgs e) { // signout if ((txtEmail.Text == "") || (txtPassword.Text == "")) { MessageBox.Show("Los campos Email y Contraseña no pueden estar vacios."); return; } var result = login.Signout(txtEmail.Text, txtPassword.Text); if (result) { login.DeleteTokenFile(); MessageBox.Show("Desconexión completada"); Application.Exit(); } else { MessageBox.Show("Error al desconectar"); } }