Esempio n. 1
0
        private void StartButtonClicked(object sender, RoutedEventArgs e)
        {
            string username = accessCodeComboBox.SelectedValue.ToString();

            DiscordOAuth.SetAccessCodeByUsername(username);

            Close();
        }
Esempio n. 2
0
        private void DiscordLoginButtonClicked(object sender, RoutedEventArgs e)
        {
            if (string.IsNullOrEmpty(DiscordOAuth.DiscordUsername))
            {
                DiscordOAuth.OAuthLogin(force: true);
            }
            else
            {
                DiscordOAuth.Unlink();
            }

            Refresh();

            string username = accessCodeComboBox.SelectedValue.ToString();

            DiscordOAuth.SetAccessCodeByUsername(username);
        }