NB.GetUser - Get current user

This commit is contained in:
Tim Young 2017-07-29 18:34:51 -05:00
parent ce8b16c2d6
commit 364858d07c
2 changed files with 8 additions and 1 deletions

View File

@ -420,6 +420,13 @@ namespace EduNetworkBuilder
return myWin; return myWin;
} }
public static PersonClass GetUser()
{
BuilderWindow BW = GetBuilderWin();
if (BW == null) return null;
return BW.CurrentUser;
}
/// <summary> /// <summary>
/// Return a translated string in the current chosen language /// Return a translated string in the current chosen language
/// </summary> /// </summary>

View File

@ -53,7 +53,7 @@ namespace EduNetworkBuilder
private string InitialFileLoad = ""; private string InitialFileLoad = "";
private PersonClass CurrentUser; public PersonClass CurrentUser;
public BuilderWindow(string FirstArg="") public BuilderWindow(string FirstArg="")
{ {