2021-11-07 19:42:59 +01:00
|
|
|
|
using TINK.ViewModel;
|
|
|
|
|
using Xamarin.Forms;
|
|
|
|
|
using Xamarin.Forms.Xaml;
|
|
|
|
|
using TINK.ViewModel.Contact;
|
|
|
|
|
|
|
|
|
|
namespace TINK.View.Contact
|
|
|
|
|
{
|
|
|
|
|
[XamlCompilation(XamlCompilationOptions.Compile)]
|
|
|
|
|
public partial class FeesAndBikesPage : TabbedPage
|
|
|
|
|
{
|
2022-01-22 18:28:01 +01:00
|
|
|
|
public FeesAndBikesPageViewModel ViewModel { get; }
|
2021-11-07 19:42:59 +01:00
|
|
|
|
|
|
|
|
|
public FeesAndBikesPage ()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
|
2022-01-22 18:28:01 +01:00
|
|
|
|
ViewModel = new FeesAndBikesPageViewModel(
|
2021-11-07 19:42:59 +01:00
|
|
|
|
App.ModelRoot.NextActiveUri.Host,
|
2022-01-22 18:28:01 +01:00
|
|
|
|
App.ModelRoot.ResourceUrls.FeesResourcePath,
|
|
|
|
|
App.ModelRoot.ResourceUrls.BikesResourcePath,
|
|
|
|
|
App.ModelRoot.IsSiteCachingOn);
|
2021-11-07 19:42:59 +01:00
|
|
|
|
|
|
|
|
|
BindingContext = ViewModel;
|
|
|
|
|
|
|
|
|
|
/// Info about renting.
|
|
|
|
|
InfoRentBikeWebView.Navigating += ViewModelHelper.OnNavigating;
|
|
|
|
|
|
|
|
|
|
/// Info about types of bikes.
|
|
|
|
|
InfoTypesOfBikesWebView.Navigating += ViewModelHelper.OnNavigating;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary> Called when page is shown. </summary>
|
|
|
|
|
protected override void OnAppearing()
|
|
|
|
|
{
|
|
|
|
|
ViewModel.OnAppearing();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|