2022-10-03 17:55:10 +02:00
|
|
|
using System.Globalization;
|
2022-08-30 15:42:25 +02:00
|
|
|
using Serilog;
|
2024-04-09 12:53:23 +02:00
|
|
|
using ShareeBike.Model.Device;
|
|
|
|
using ShareeBike.ViewModel.Login;
|
2021-11-07 19:42:59 +01:00
|
|
|
using Xamarin.Forms;
|
|
|
|
using Xamarin.Forms.Xaml;
|
|
|
|
|
2024-04-09 12:53:23 +02:00
|
|
|
namespace ShareeBike.View.CopriWebView
|
2021-11-07 19:42:59 +01:00
|
|
|
{
|
2022-09-06 16:08:19 +02:00
|
|
|
[XamlCompilation(XamlCompilationOptions.Compile)]
|
|
|
|
public partial class ManageAccountPage : ContentPage
|
|
|
|
{
|
|
|
|
public ManageAccountPage()
|
|
|
|
{
|
|
|
|
InitializeComponent();
|
2021-11-07 19:42:59 +01:00
|
|
|
|
2022-10-03 17:55:10 +02:00
|
|
|
ManageAccount.Navigating += WebViewHelper.SetBusyAndDisplayOrDownload;
|
2021-11-07 19:42:59 +01:00
|
|
|
|
2022-10-03 17:55:10 +02:00
|
|
|
ManageAccount.Navigated += (sender, eventArgs) => WebViewHelper.SetIdleAndHandleError(
|
|
|
|
sender,
|
|
|
|
eventArgs,
|
|
|
|
"<html><b>Kann persönliche Daten nicht anzeigen/ verwalten!</b><br>Verbindung mit Internet ok?</html>");
|
2021-11-07 19:42:59 +01:00
|
|
|
|
2022-09-06 16:08:19 +02:00
|
|
|
ManageAccount.BindingContext = new ManageAccountViewModel(
|
|
|
|
App.ModelRoot.ActiveUser.SessionCookie,
|
2024-04-09 12:53:23 +02:00
|
|
|
Model.ShareeBikeApp.MerchantId,
|
2022-09-06 16:08:19 +02:00
|
|
|
CultureInfo.CurrentUICulture.TwoLetterISOLanguageName,
|
|
|
|
App.ModelRoot.NextActiveUri.Host);
|
|
|
|
}
|
|
|
|
}
|
2022-10-03 17:55:10 +02:00
|
|
|
}
|