mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-11-14 14:26:28 +01:00
34 lines
No EOL
926 B
C#
34 lines
No EOL
926 B
C#
|
|
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(
|
|
Model.TinkApp.MerchantId,
|
|
App.ModelRoot.NextActiveUri.Host);
|
|
|
|
}
|
|
}
|
|
} |