mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-12-25 16:46:26 +01:00
37 lines
1 KiB
C#
37 lines
1 KiB
C#
|
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
|
|||
|
{
|
|||
|
public HelpContactViewModel ViewModel { get; }
|
|||
|
|
|||
|
public FeesAndBikesPage ()
|
|||
|
{
|
|||
|
InitializeComponent();
|
|||
|
|
|||
|
ViewModel = new HelpContactViewModel(
|
|||
|
App.ModelRoot.NextActiveUri.Host,
|
|||
|
App.ModelRoot.IsSiteCachingOn,
|
|||
|
resourceName => ViewModelResourceHelper.GetSource(resourceName));
|
|||
|
|
|||
|
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();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|