private void DoOAuthCodeResult(bool success, string msg)
        {
            isBusy = false;
            if (success)
            {
                UsageTracker.IncrementAuthenticationViewButtonAuthentication();

                Clear();
                Finish(true);
            }
            else
            {
                errorMessage = msg;
                Redraw();
            }
        }
        private void DoTokenResult(bool success)
        {
            isBusy = false;
            if (success)
            {
                UsageTracker.IncrementAuthenticationViewButtonAuthentication();

                Clear();
                Finish(true);
            }
            else
            {
                errorMessage = "Error validating token.";
                Redraw();
            }
        }