2021-11-07 19:42:59 +01:00
|
|
|
|
|
|
|
|
|
using TINK.Model.Device;
|
|
|
|
|
using TINK.ViewModel.CopriWebView;
|
|
|
|
|
using Xamarin.Forms;
|
|
|
|
|
using Xamarin.Forms.Xaml;
|
|
|
|
|
|
|
|
|
|
namespace TINK.View.CopriWebView
|
|
|
|
|
{
|
|
|
|
|
[XamlCompilation(XamlCompilationOptions.Compile)]
|
|
|
|
|
public partial class RegisterPage : ContentPage
|
|
|
|
|
{
|
|
|
|
|
public RegisterPage()
|
|
|
|
|
{
|
|
|
|
|
DependencyService.Get<IWebView>().ClearCookies();
|
|
|
|
|
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
|
|
|
|
|
RegisterView.Navigated += (sender, ev) =>
|
|
|
|
|
{
|
|
|
|
|
if (ev.Result == WebNavigationResult.Success) return;
|
|
|
|
|
|
|
|
|
|
RegisterView.Source = new HtmlWebViewSource
|
|
|
|
|
{
|
|
|
|
|
Html = "<html><b>Kann Anmeldeseite nicht anzeigen</b>!<br>Verbindung mit Internet ok?</html>"
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
RegisterView.BindingContext = new RegisterPageViewModel(
|
2022-01-04 18:59:16 +01:00
|
|
|
|
Model.TinkApp.MerchantId,
|
2021-11-07 19:42:59 +01:00
|
|
|
|
App.ModelRoot.NextActiveUri.Host);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|