mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2025-06-21 21:46:27 +02:00
Code updated to 3.0.238
This commit is contained in:
parent
3302d80678
commit
9c6a1fa92b
257 changed files with 7763 additions and 2861 deletions
|
@ -26,26 +26,45 @@ namespace TINK.View
|
|||
string cancel);
|
||||
|
||||
/// <summary> Displays alert message. </summary>
|
||||
/// <param name="p_strTitle">Title of message.</param>
|
||||
/// <param name="p_strMessage">Message to display.</param>
|
||||
/// <param name="p_strAccept">Text of accept button.</param>
|
||||
/// <param name="p_strCancel">Text of button.</param>
|
||||
/// <param name="title">Title of message.</param>
|
||||
/// <param name="message">Message to display.</param>
|
||||
/// <param name="accept">Text of accept button.</param>
|
||||
/// <param name="cancel">Text of button.</param>
|
||||
/// <returns>True if user pressed accept.</returns>
|
||||
Task<bool> DisplayAlert(string p_strTitle, string p_strMessage, string p_strAccept, string p_strCancel);
|
||||
Task<bool> DisplayAlert(string title, string message, string accept, string cancel);
|
||||
|
||||
/// <summary> Displays alert message. </summary>
|
||||
/// <param name="title">Title of message.</param>
|
||||
/// <param name="message">Message to display.</param>
|
||||
/// <param name="details">Detailed error description.</param>
|
||||
/// <param name="accept">Text of accept button.</param>
|
||||
/// <param name="cancel">Text of button.</param>
|
||||
/// <returns>True if user pressed accept.</returns>
|
||||
Task<bool> DisplayAdvancedAlert(string title, string message, string details, string accept, string cancel);
|
||||
|
||||
/// <summary> Displays an action sheet. </summary>
|
||||
/// <param name="title">Title of message.</param>
|
||||
/// <param name="p_strMessage">Message to display.</param>
|
||||
/// <param name="message">Message to display.</param>
|
||||
/// <param name="cancel">Text of button.</param>
|
||||
/// <param name="destruction"></param>
|
||||
/// <param name="buttons">Buttons holding options to select.</param>
|
||||
/// <returns>T</returns>
|
||||
Task<string> DisplayActionSheet(string title, string cancel, string destruction, params string[] buttons);
|
||||
|
||||
/// <summary> Show a page.</summary>
|
||||
#if USEMASTERDETAIL || USEFLYOUT
|
||||
/// <summary> Shows a page.</summary>
|
||||
/// <param name="type">Type of page to show.</param>
|
||||
/// <param name="title">Title of page to show.</param>
|
||||
void ShowPage(ViewTypes type, string title = null);
|
||||
#else
|
||||
/// <summary> Shows a page.</summary>
|
||||
/// <param name="route">Route of the page to show.</param>
|
||||
#if USCSHARP9
|
||||
public Task ShowPage(string route);
|
||||
#else
|
||||
Task ShowPage(string route);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/// <summary> Pushes a page onto the stack. </summary>
|
||||
/// <param name="typeOfPage">Page to display.</param>
|
||||
|
@ -60,6 +79,7 @@ namespace TINK.View
|
|||
|
||||
Task<IUserFeedback> DisplayUserFeedbackPopup();
|
||||
|
||||
#if USCSHARP9
|
||||
/// <summary>
|
||||
/// Feedback given by user when returning bike.
|
||||
/// </summary>
|
||||
|
@ -78,5 +98,27 @@ namespace TINK.View
|
|||
/// </summary>
|
||||
string Message { get; set; }
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !USCSHARP9
|
||||
/// <summary>
|
||||
/// Feedback given by user when returning bike.
|
||||
/// </summary>
|
||||
public interface IUserFeedback
|
||||
{
|
||||
/// <summary>
|
||||
/// Holds whether bike is broken or not.
|
||||
/// </summary>
|
||||
bool IsBikeBroken { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Holds either
|
||||
/// - general feedback
|
||||
/// - error description of broken bike
|
||||
/// or both.
|
||||
/// </summary>
|
||||
string Message { get; set; }
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
using Serilog;
|
||||
#if USEMASTERDETAIL || USEFLYOUT
|
||||
using Serilog;
|
||||
using System;
|
||||
|
||||
namespace TINK.View.MasterDetail
|
||||
{
|
||||
|
||||
public class EmptyNavigationMasterDetail : INavigationMasterDetail
|
||||
{
|
||||
public bool IsGestureEnabled { set => Log.ForContext<EmptyNavigationMasterDetail>().Error($"Unexpected call of {nameof(IsGestureEnabled)} detected."); }
|
||||
|
@ -13,3 +15,4 @@ namespace TINK.View.MasterDetail
|
|||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
using TINK.View.MasterDetail;
|
||||
#if USEMASTERDETAIL || USEFLYOUT
|
||||
using TINK.View.MasterDetail;
|
||||
|
||||
namespace TINK.View
|
||||
{
|
||||
|
@ -13,3 +14,4 @@ namespace TINK.View
|
|||
INavigationMasterDetail NavigationMasterDetail { set; }
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
using System;
|
||||
#if USEMASTERDETAIL || USEFLYOUT
|
||||
using System;
|
||||
|
||||
namespace TINK.View.MasterDetail
|
||||
{
|
||||
|
@ -16,3 +17,4 @@ namespace TINK.View.MasterDetail
|
|||
bool IsGestureEnabled { set; }
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue