2022-08-30 15:42:25 +02:00
|
|
|
|
using System.Globalization;
|
|
|
|
|
using TINK.ViewModel;
|
2021-11-07 19:42:59 +01:00
|
|
|
|
using TINK.ViewModel.Info;
|
|
|
|
|
using Xamarin.Forms;
|
|
|
|
|
using Xamarin.Forms.Xaml;
|
|
|
|
|
|
|
|
|
|
namespace TINK.View.Info
|
|
|
|
|
{
|
|
|
|
|
[XamlCompilation(XamlCompilationOptions.Compile)]
|
2022-01-22 18:28:01 +01:00
|
|
|
|
public partial class InfoPage : TabbedPage
|
2021-11-07 19:42:59 +01:00
|
|
|
|
{
|
2022-01-22 18:28:01 +01:00
|
|
|
|
public InfoPageViewModel ViewModel { get; }
|
2021-11-07 19:42:59 +01:00
|
|
|
|
|
2022-01-22 18:28:01 +01:00
|
|
|
|
public InfoPage()
|
2021-11-07 19:42:59 +01:00
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
|
2022-01-22 18:28:01 +01:00
|
|
|
|
ViewModel = new InfoPageViewModel(
|
2021-11-07 19:42:59 +01:00
|
|
|
|
App.ModelRoot.NextActiveUri.Host,
|
2022-01-22 18:28:01 +01:00
|
|
|
|
App.ModelRoot.ResourceUrls.AgbResourcePath,
|
|
|
|
|
App.ModelRoot.ResourceUrls.PrivacyResourcePath,
|
|
|
|
|
App.ModelRoot.ResourceUrls.ImpressResourcePath,
|
2021-11-07 19:42:59 +01:00
|
|
|
|
App.ModelRoot.IsSiteCachingOn,
|
2022-08-30 15:42:25 +02:00
|
|
|
|
CultureInfo.CurrentUICulture.TwoLetterISOLanguageName,
|
2021-11-07 19:42:59 +01:00
|
|
|
|
resourceName => ViewModelResourceHelper.GetSource(resourceName));
|
|
|
|
|
TabbedInfoPage.BindingContext = ViewModel;
|
|
|
|
|
|
|
|
|
|
InfoLicenses.Navigating += ViewModelHelper.OnNavigating;
|
|
|
|
|
InfoDatenschutz.Navigating += ViewModelHelper.OnNavigating;
|
|
|
|
|
InfoABG.Navigating += ViewModelHelper.OnNavigating;
|
|
|
|
|
|
|
|
|
|
InfoImpressum.Navigating += ViewModelHelper.OnNavigating;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary> Called when page is shown. </summary>
|
|
|
|
|
protected override void OnAppearing()
|
|
|
|
|
{
|
|
|
|
|
ViewModel.OnAppearing();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|