Jan-2021 Added VPN URL connection option.

This commit is contained in:
Andy Howard
2021-05-05 12:31:28 +01:00
parent 19446faa5e
commit afbd1e0817
3 changed files with 23 additions and 2 deletions
@@ -13,7 +13,20 @@ namespace Sarand.LogisticsMgr.Mobile.Core.App
//-------------------------------------------------------------------
// Construction.
public SlmCommand_Mobile (ExecuteFn executeFn, CanExecuteFn canExecuteFn = null) :
/// <summary>
/// Command with only Execute method - can always be executed.
/// </summary>
/// <param name="executeFn"></param>
public SlmCommand_Mobile (ExecuteFn executeFn) :
this(executeFn, CanAlwaysExecute)
{
}
/// <summary>
/// Command with Execute and CanExecute methods.
/// </summary>
/// <param name="executeFn"></param>
/// <param name="canExecuteFn"></param>
public SlmCommand_Mobile (ExecuteFn executeFn, CanExecuteFn canExecuteFn) :
base(executeFn, canExecuteFn)
{
}
@@ -29,6 +42,13 @@ namespace Sarand.LogisticsMgr.Mobile.Core.App
protected SlmUserContext_Mobile UserContext { get { return SessionProfile.UserContext_Mobile; } }
protected SlmSecurityProfile SecurityProfile { get { return UserContext.SecurityProfile; } }
//-------------------------------------------------------------------
// Execution.
public static bool CanAlwaysExecute (object commandParam)
{
return true;
}
//-------------------------------------------------------------------
}
//=======================================================================