AuntieDot.UI.WinForms.Form1.btnRequestToken_Click C# (CSharp) Метод

btnRequestToken_Click() приватный Метод

private btnRequestToken_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
Результат void
        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)