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,
"Kann persönliche Daten nicht anzeigen/ verwalten!
Verbindung mit Internet ok?");
ManageAccount.BindingContext = new ManageAccountViewModel(
App.ModelRoot.ActiveUser.SessionCookie,
Model.ShareeBikeApp.MerchantId,
CultureInfo.CurrentUICulture.TwoLetterISOLanguageName,
App.ModelRoot.NextActiveUri.Host);
}
}
}