aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples/common/src/SampleBaseForEditor.cs
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2025-07-16 20:08:03 +0200
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2025-07-16 20:08:03 +0200
commit149205e8ebe5c4ab1ca52ca700ff754aabdf14aa (patch)
treee0d567ae9a304ec915e49a25e42af1803e3d83ed /Samples/common/src/SampleBaseForEditor.cs
parente96fecb4bb512ee47e9df0224e779b24d686bc30 (diff)
DebugLogViewer, DockTests
Diffstat (limited to 'Samples/common/src/SampleBaseForEditor.cs')
-rw-r--r--Samples/common/src/SampleBaseForEditor.cs17
1 files changed, 6 insertions, 11 deletions
diff --git a/Samples/common/src/SampleBaseForEditor.cs b/Samples/common/src/SampleBaseForEditor.cs
index b97982e6..3133286f 100644
--- a/Samples/common/src/SampleBaseForEditor.cs
+++ b/Samples/common/src/SampleBaseForEditor.cs
@@ -5,15 +5,11 @@
using System;
using Crow;
using System.IO;
-using System.Text;
-using Crow.IML;
-using System.Runtime.CompilerServices;
using Glfw;
-using System.Diagnostics;
using Crow.Text;
using System.Collections.Generic;
using Encoding = System.Text.Encoding;
-using System.Linq;
+using Crow.DebugLogger;
namespace Samples
{
@@ -69,9 +65,10 @@ namespace Samples
}
}
- #region DebugLog
+ #region DebugLog
bool debugLogRecording;
public bool DebugLoggingEnabled => DbgLogger.IsEnabled;
+ public IEnumerable<DbgEvent> DebugEvents => DbgLogger.Events;
static ObservableList<DbgEvtType> RecordedEvents;
public bool DebugLogRecording {
@@ -80,11 +77,6 @@ namespace Samples
if (debugLogRecording == value)
return;
debugLogRecording = value;
- if (debugLogRecording) {
- DbgLogger.IncludedEvents = new List<DbgEvtType>(RecordedEvents);
- } else {
- DbgLogger.IncludedEvents = null;
- }
NotifyValueChanged(debugLogRecording);
}
}
@@ -107,6 +99,9 @@ namespace Samples
NotifyValueChanged (DebugLogFilePath);
}
}
+
+
+
#endregion