private async void btnRequestToken_Click(object sender, EventArgs e)
{
SpartanAuthentication.Token tok;
if (txtSpartanToken.Text != "" && cbSkipSTGeneration.Checked)
{
tok = new SpartanAuthentication.Token
{
SpartanToken = txtSpartanToken.Text,
UserInformation = new SpartanAuthentication.UserInformation
{
Gamertag = txtGamertag.Text
}
};
_dot = new AuntieDotManager(tok.SpartanToken, tok.UserInformation.Gamertag);
UpdateStatus("Inserted Spartan Token");
return;
}
tok = await SpartanAuthentication.RequestToken(txtOAuthToken.Text);
_dot = new AuntieDotManager(tok.SpartanToken, tok.UserInformation.Gamertag);
txtSpartanToken.Text = tok.SpartanToken;
txtGamertag.Text = tok.UserInformation.Gamertag;
UpdateStatus("Generated Spartan Token");
}
private async void btnGetServicesList_Click(object sender, EventArgs e)