aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples/common/src
diff options
context:
space:
mode:
Diffstat (limited to 'Samples/common/src')
-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