Consoles, database generated.

This commit is contained in:
2019-04-11 11:59:22 +01:00
parent ef02a3a6ad
commit 724eb1c599
52 changed files with 16373 additions and 63 deletions
@@ -1,4 +1,5 @@
using System;
using Sarand.PatientMgr.Core.App;
using System;
using System.Collections.Generic;
using System.Text;
@@ -10,6 +11,9 @@ namespace Sarand.PatientMgr.Win.Forms.App
//-------------------------------------------------------------------
// Session profile.
public static SpmSessionProfile_Win SessionProfile { get; set; }
public static SpmUserContext UserContext { get { return SessionProfile.UserContext; } }
public static SpmSessionContext SessionContext { get { return SessionProfile.UserContext.SessionContext; } }
public static SpmSecurityProfile SecurityProfile { get { return SessionProfile.UserContext.SecurityProfile; } }
//-------------------------------------------------------------------
// Clear globals.
@@ -13,15 +13,32 @@ namespace Sarand.PatientMgr.Win.Forms.App
/// </summary>
public class SpmSessionProfile_Win : SpmSessionProfile
{
//-------------------------------------------------------------------
// User context.
private class SpmUserContext_Win : SpmUserContext
{
public SpmUserContext_Win (SpmSessionContext sessionContext) :
base(sessionContext)
{
}
}
//-------------------------------------------------------------------
// Data members.
private readonly SpmUserContext_Win userContext;
//-------------------------------------------------------------------
// Construction.
protected SpmSessionProfile_Win ()
protected SpmSessionProfile_Win (SpmSessionContext sessionContext)
{
userContext = new SpmUserContext_Win(sessionContext);
}
//-------------------------------------------------------------------
// User context.
public SpmSessionContext SessionContext { get { return userContext.SessionContext; } }
public SpmUserContext UserContext { get { return userContext; } }
//-------------------------------------------------------------------
}
//=======================================================================