mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2025-04-26 14:27:27 +02:00
3.0.277
This commit is contained in:
parent
6ed1579494
commit
3c97e2f4aa
34 changed files with 278 additions and 135 deletions
|
@ -1,7 +1,9 @@
|
|||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using TINK.Model.Device;
|
||||
#if USEFLYOUT
|
||||
using TINK.View.MasterDetail;
|
||||
#endif
|
||||
using TINK.ViewModel.Info;
|
||||
using Xamarin.Forms;
|
||||
using Xamarin.Forms.Xaml;
|
||||
|
@ -9,8 +11,11 @@ using Xamarin.Forms.Xaml;
|
|||
namespace TINK.View.Contact
|
||||
{
|
||||
[XamlCompilation(XamlCompilationOptions.Compile)]
|
||||
public partial class ContactPage : ContentPage, IViewService, IDetailPage
|
||||
|
||||
#if USEFLYOUT
|
||||
public partial class ContactPage : ContentPage, IViewService, IDetailPage
|
||||
#else
|
||||
public partial class ContactPage : ContentPage, IViewService
|
||||
#endif
|
||||
{
|
||||
public ContactPage ()
|
||||
{
|
||||
|
@ -71,8 +76,8 @@ namespace TINK.View.Contact
|
|||
/// <summary> Pushes a page onto the stack. </summary>
|
||||
/// <param name="typeOfPage">Page to display.</param>
|
||||
public async Task PushAsync(ViewTypes typeOfPage)
|
||||
{
|
||||
|
||||
{
|
||||
#if USEFLYOUT
|
||||
if (!(Activator.CreateInstance(typeOfPage.GetViewType()) is IDetailPage detailPage))
|
||||
{
|
||||
await Task.CompletedTask;
|
||||
|
@ -83,6 +88,7 @@ namespace TINK.View.Contact
|
|||
detailPage.NavigationMasterDetail = NavigationMasterDetail;
|
||||
|
||||
await Navigation.PushAsync((Page)detailPage);
|
||||
#endif
|
||||
}
|
||||
|
||||
#if USCSHARP9
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue