sharee.bike-App/LastenradBayern/ShareeBike/View/CopriWebView/ManageAccountPage.xaml.cs
2024-04-09 12:53:23 +02:00

31 lines
917 B
C#

using System.Globalization;
using Serilog;
using ShareeBike.Model.Device;
using ShareeBike.ViewModel.Login;
using Xamarin.Forms;
using Xamarin.Forms.Xaml;
namespace ShareeBike.View.CopriWebView
{
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class ManageAccountPage : ContentPage
{
public ManageAccountPage()
{
InitializeComponent();
ManageAccount.Navigating += WebViewHelper.SetBusyAndDisplayOrDownload;
ManageAccount.Navigated += (sender, eventArgs) => WebViewHelper.SetIdleAndHandleError(
sender,
eventArgs,
"<html><b>Kann persönliche Daten nicht anzeigen/ verwalten!</b><br>Verbindung mit Internet ok?</html>");
ManageAccount.BindingContext = new ManageAccountViewModel(
App.ModelRoot.ActiveUser.SessionCookie,
Model.ShareeBikeApp.MerchantId,
CultureInfo.CurrentUICulture.TwoLetterISOLanguageName,
App.ModelRoot.NextActiveUri.Host);
}
}
}