Browse Source

Added timestamp and user name to first note to be saved.

Kenric Nugteren 5 tháng trước cách đây
mục cha
commit
9e9c6641a7

+ 4 - 0
inabox.wpf/DynamicGrid/Editors/NotesEditor/NotesEditorControl.cs

@@ -207,6 +207,10 @@ namespace InABox.DynamicGrid
 
 
         protected override string[] RetrieveValue()
         protected override string[] RetrieveValue()
         {
         {
+            if(_value is null || _value.Length == 0 && !History.Text.IsNullOrWhiteSpace())
+            {
+                return [$"{DateTime.Now:yyyy-MM-dd HH:mm:ss} {ClientFactory.UserID}: {History.Text}"];
+            }
             return _value;
             return _value;
         }
         }