mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-11-16 23:26:26 +01:00
33 lines
884 B
C#
33 lines
884 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(
|
|||
|
App.ModelRoot.NextActiveUri.Host);
|
|||
|
|
|||
|
}
|
|||
|
}
|
|||
|
}
|