internal void OnAccessTokenReceived(TwitchOAuthResult e) { this.authResult = e; BeginInvoke(() => { if (string.IsNullOrEmpty(inputChannel.Text)) { inputChannel.Text = e.User; } inputToken.Text = e.AccessToken; }); }
private void Generator_AccessTokenReceived(object sender, TwitchOAuthResult e) { settingsForm.OnAccessTokenReceived(e); try { if (browserProcess != null && !browserProcess.HasExited) { browserProcess.Close(); } } catch { } this.Close(); }
private void TokenGenerator_AccessTokenReceived(object sender, TwitchOAuthResult e) { inputToken.text = e.AccessToken; inputBot.text = e.User; }