private void DeleteBtn_Click(object sender, EventArgs e)
{
if (MessageBox.Show("Are you sure you want to delete account?", "Confirm",
MessageBoxButtons.YesNo, MessageBoxIcon.Warning) == DialogResult.Yes)
{
using (GamespyDatabase Database = new GamespyDatabase())
{
if (Database.DeleteUser(AccountId) == 1)
Notify.Show("Account deleted successfully!", "Operation Successful", AlertType.Success);
else
Notify.Show("Failed to remove account from database!", "Operation failed", AlertType.Warning);
}
this.Close();
}
}