return ShortName if UniqueName has not yet been set

This commit is contained in:
Michael Becker 2021-02-06 22:42:21 -05:00
parent 7ca5acd471
commit 3d961c6691
No known key found for this signature in database
GPG Key ID: 98C333A81F18C22C

View File

@ -28,7 +28,24 @@ namespace MBS.Framework
public static Application Instance { get; set; } = null;
public Guid ID { get; set; } = Guid.Empty;
public string UniqueName { get; set; } = null;
private string _UniqueName = null;
public string UniqueName
{
get
{
if (_UniqueName == null)
{
return ShortName;
}
return _UniqueName;
}
set
{
_UniqueName = value;
}
}
public string ShortName { get; set; }
public string Title { get; set; } = String.Empty;
public int ExitCode { get; protected set; } = 0;