mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2025-07-09 04:47:31 +02:00
Version 3.0.376
This commit is contained in:
parent
ca080c87c0
commit
f963c0a219
158 changed files with 3228 additions and 1279 deletions
|
@ -3,12 +3,12 @@ using System.ComponentModel;
|
|||
using System.Threading.Tasks;
|
||||
using System.Windows.Input;
|
||||
using TINK.View;
|
||||
using TINK.ViewModel.Info;
|
||||
using TINK.ViewModel.LegalInformation;
|
||||
using Xamarin.Forms;
|
||||
|
||||
namespace TINK.ViewModel.WhatsNew.Agb
|
||||
namespace TINK.ViewModel.WhatsNew.Gtc
|
||||
{
|
||||
public class AgbViewModel : INotifyPropertyChanged
|
||||
public class GtcViewModel : INotifyPropertyChanged
|
||||
{
|
||||
/// <summary> Fired whenever a property changed.</summary>
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
|
@ -24,7 +24,7 @@ namespace TINK.ViewModel.WhatsNew.Agb
|
|||
/// <param name="uiIsoLangugageName">Two letter ISO language name.</param>
|
||||
/// <param name="resourceProvider">Delegate to get embedded html resource. Used as fallback if download from web page does not work and cache is empty.</param>
|
||||
/// <param name="viewService">View service to close page.</param>
|
||||
public AgbViewModel(
|
||||
public GtcViewModel(
|
||||
string hostName,
|
||||
bool isSiteCachingOn,
|
||||
Func<string, string> resourceProvider,
|
||||
|
@ -44,23 +44,23 @@ namespace TINK.ViewModel.WhatsNew.Agb
|
|||
private Func<string, string> ResourceProvider { get; set; }
|
||||
|
||||
/// <summary> Agb information text.</summary>
|
||||
private HtmlWebViewSource infoAgb;
|
||||
private HtmlWebViewSource gtcHtml;
|
||||
|
||||
/// <summary> Agb information text.</summary>
|
||||
public HtmlWebViewSource InfoAgb
|
||||
public HtmlWebViewSource GtcHtml
|
||||
{
|
||||
get => infoAgb;
|
||||
get => gtcHtml;
|
||||
set
|
||||
{
|
||||
infoAgb = value;
|
||||
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(InfoAgb)));
|
||||
gtcHtml = value;
|
||||
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(GtcHtml)));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary> Called when page is shown. </summary>
|
||||
public async Task OnAppearing()
|
||||
{
|
||||
InfoAgb = await InfoPageViewModel.GetAgb(HostName, "agbResourcePath", IsSiteCachingOn);
|
||||
GtcHtml = await LegalInformationPageViewModel.GetGtc(HostName, "agbResourcePath", IsSiteCachingOn);
|
||||
}
|
||||
|
||||
/// <summary> User clicks OK button.</summary>
|
|
@ -70,7 +70,7 @@ namespace TINK.ViewModel.WhatsNew
|
|||
{
|
||||
get
|
||||
{
|
||||
return new Command(async () => await ViewService.PushModalAsync(ViewTypes.AgbPage));
|
||||
return new Command(async () => await ViewService.PushModalAsync(ViewTypes.GtcPage));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue