public async void SignInCompleted(object sender, SignInCompletedArgs args) { if (args.IsSuccessful) { PageService?.ShowLoadingPanel(); try { await UpdateInfoAsync(); } finally { PageService?.HideLoadingPanel(); } PageService?.AddDevicePortalButtons(typeof(FlightingPage)); } if (args.IsUserInitiated) { PageService?.ShowNotification((args.IsSuccessful) ? Common.GetLocalizedText("DevicePortalSignInSuccess") : Common.GetLocalizedText("DevicePortalSignInError")); } }