adding DisplayName property that displays last save info if available

This commit is contained in:
Jake Norbut committed 2019-08-20 10:15:34 -05:00
1 parent 4e78938827
commit aa3dda2c57
1 file changed
+3 -1
@@ -1,4 +1,5 @@
using System;
using mbts.utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
@@ -17,6 +18,7 @@ namespace mbts.ui.shell
}
public string Name { get; private set; }
public string DisplayName => Definition.last_save_lldatetime > 0 ? $"{Name} - {Definition.last_save_lldatetime.lldatetime().ToLocalTime()}" : Name;
public bool IsShared { get { return Definition.is_shared; } }
public object Icon {
get { return Icons.Window; }