mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-11-14 14:26:28 +01:00
38 lines
No EOL
944 B
C#
38 lines
No EOL
944 B
C#
using TINK.ViewModel;
|
|
using TINK.ViewModel.Contact;
|
|
using Xamarin.Forms;
|
|
using Xamarin.Forms.Xaml;
|
|
|
|
namespace TINK.View.Contact
|
|
{
|
|
[XamlCompilation(XamlCompilationOptions.Compile)]
|
|
public partial class FeesAndBikesPage : TabbedPage
|
|
{
|
|
public FeesAndBikesPageViewModel ViewModel { get; }
|
|
|
|
public FeesAndBikesPage()
|
|
{
|
|
InitializeComponent();
|
|
|
|
ViewModel = new FeesAndBikesPageViewModel(
|
|
App.ModelRoot.NextActiveUri.Host,
|
|
App.ModelRoot.ResourceUrls.FeesResourcePath,
|
|
App.ModelRoot.ResourceUrls.BikesResourcePath,
|
|
App.ModelRoot.IsSiteCachingOn);
|
|
|
|
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();
|
|
}
|
|
}
|
|
} |