mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2025-06-22 13:57:28 +02:00
Version 3.0.337
This commit is contained in:
parent
fd0e63cf10
commit
573fe77e12
2336 changed files with 33688 additions and 86082 deletions
|
@ -1,11 +1,10 @@
|
|||
using TINK.View;
|
||||
using System.Windows.Input;
|
||||
using Xamarin.Forms;
|
||||
using System;
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Input;
|
||||
using TINK.View;
|
||||
using TINK.ViewModel.Info;
|
||||
using TINK.Model.User.Account;
|
||||
using Xamarin.Forms;
|
||||
|
||||
namespace TINK.ViewModel.WhatsNew.Agb
|
||||
{
|
||||
|
@ -20,21 +19,28 @@ namespace TINK.ViewModel.WhatsNew.Agb
|
|||
/// <summary> Holds value wether site caching is on or off.</summary>
|
||||
bool IsSiteCachingOn { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Holds the current ui two letter ISO language name.
|
||||
/// </summary>
|
||||
private string UiIsoLanguageName { get; }
|
||||
|
||||
/// <summary> Constructs AGB view model</summary>
|
||||
/// <param name="isSiteCachingOn">Holds value wether site caching is on or off.</param>
|
||||
/// <param name="uiIsoLangugageName">Two letter ISO language name.</param>
|
||||
/// <param name="resourceProvider">Delegate to get an an embedded html ressource. Used as fallback if download from web page does not work and cache is empty.</param>
|
||||
/// <param name="p_oViewService">View service to close page.</param>
|
||||
/// <param name="viewService">View service to close page.</param>
|
||||
public AgbViewModel(
|
||||
string hostName,
|
||||
bool isSiteCachingOn,
|
||||
string uiIsoLangugageName,
|
||||
Func<string, string> resourceProvider,
|
||||
IViewService p_oViewService)
|
||||
IViewService viewService)
|
||||
{
|
||||
HostName = hostName;
|
||||
|
||||
IsSiteCachingOn = isSiteCachingOn;
|
||||
UiIsoLanguageName = uiIsoLangugageName;
|
||||
|
||||
ViewService = p_oViewService
|
||||
ViewService = viewService
|
||||
?? throw new ArgumentException($"Can not instantiate {typeof(WhatsNewViewModel)}-object. No view available.");
|
||||
|
||||
ResourceProvider = resourceProvider
|
||||
|
@ -61,7 +67,7 @@ namespace TINK.ViewModel.WhatsNew.Agb
|
|||
/// <summary> Called when page is shown. </summary>
|
||||
public async Task OnAppearing()
|
||||
{
|
||||
InfoAgb = await InfoPageViewModel.GetAgb(HostName, "agbResourcePath", IsSiteCachingOn);
|
||||
InfoAgb = await InfoPageViewModel.GetAgb(HostName, "agbResourcePath", IsSiteCachingOn, UiIsoLanguageName);
|
||||
}
|
||||
|
||||
/// <summary> User clicks OK button.</summary>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue