소스 검색

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

Kenric Nugteren 6 달 전
부모
커밋
9e9c6641a7
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      inabox.wpf/DynamicGrid/Editors/NotesEditor/NotesEditorControl.cs

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

@@ -207,6 +207,10 @@ namespace InABox.DynamicGrid
 
         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;
         }