diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2021-09-18 09:22:04 +0000 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2021-09-18 09:22:04 +0000 |
| commit | f73ce5a6db8949227834d9d65b195bbb9e8acb32 (patch) | |
| tree | 759eac7b86ca8cf03a1cee9796dcd17079bdd02c /Samples/common/src | |
| parent | 8b343e10f1a65b07988e15ea76596b16a03adadc (diff) | |
save commit, BubbleEvents, iface.search type and ext meth for loadCtx wise searches, IncludedEvents as list, removed discarded events
Diffstat (limited to 'Samples/common/src')
| -rw-r--r-- | Samples/common/src/Editor.cs | 4 | ||||
| -rw-r--r-- | Samples/common/src/SampleBase.cs | 11 | ||||
| -rw-r--r-- | Samples/common/src/SampleBaseForEditor.cs | 7 |
3 files changed, 15 insertions, 7 deletions
diff --git a/Samples/common/src/Editor.cs b/Samples/common/src/Editor.cs index e56914f8..0c702745 100644 --- a/Samples/common/src/Editor.cs +++ b/Samples/common/src/Editor.cs @@ -52,13 +52,13 @@ namespace Crow IEnumerable<MemberInfo> getAllCrowTypeMembers (string crowTypeName) { - Type crowType = IML.Instantiator.GetWidgetTypeFromName (crowTypeName); + Type crowType = IFace.GetWidgetTypeFromName (crowTypeName); return crowType.GetMembers (BindingFlags.Public | BindingFlags.Instance). Where (m=>((m is PropertyInfo pi && pi.CanWrite) || (m is EventInfo)) && m.GetCustomAttribute<XmlIgnoreAttribute>() == null); } MemberInfo getCrowTypeMember (string crowTypeName, string memberName) { - Type crowType = IML.Instantiator.GetWidgetTypeFromName (crowTypeName); + Type crowType = IFace.GetWidgetTypeFromName (crowTypeName); return crowType.GetMember (memberName, BindingFlags.Public | BindingFlags.Instance).FirstOrDefault (); } diff --git a/Samples/common/src/SampleBase.cs b/Samples/common/src/SampleBase.cs index b44bb8f5..3e0ef714 100644 --- a/Samples/common/src/SampleBase.cs +++ b/Samples/common/src/SampleBase.cs @@ -94,6 +94,17 @@ namespace Samples new ActionCommand("Action A", () => MessageBox.ShowModal(this, MessageBox.Type.Information, "context menu A clicked")) ); } + DeviceEventType deviceEventTypeEnum; + public DeviceEventType DeviceEventTypeEnum { + get => deviceEventTypeEnum; + set { + if (deviceEventTypeEnum == value) + return; + deviceEventTypeEnum = value; + NotifyValueChanged ("DeviceEventTypeEnum", deviceEventTypeEnum); + } + + } public int intValue = 500; VerticalAlignment currentVAlign; diff --git a/Samples/common/src/SampleBaseForEditor.cs b/Samples/common/src/SampleBaseForEditor.cs index e1cadc0a..a63ba54e 100644 --- a/Samples/common/src/SampleBaseForEditor.cs +++ b/Samples/common/src/SampleBaseForEditor.cs @@ -67,7 +67,7 @@ namespace Samples } public bool DebugLoggingEnabled => DbgLogger.IsEnabled; - public DbgEvtType RecordedEvents { + /*public DbgEvtType RecordedEvents { get => Configuration.Global.Get<DbgEvtType> (nameof (RecordedEvents)); set { if (RecordedEvents == value) @@ -88,7 +88,7 @@ namespace Samples DbgLogger.DiscardEvents = DiscardedEvents; NotifyValueChanged(DiscardedEvents); } - } + }*/ public bool DebugLogRecording { get => debugLogRecording; set { @@ -119,9 +119,6 @@ namespace Samples } protected static void initDebugLog () { - DbgLogger.IncludeEvents = DbgEvtType.None; - DbgLogger.DiscardEvents = DbgEvtType.All; - //DbgLogger.DiscardEvents = DbgEvtType.All; DbgLogger.ConsoleOutput = !Configuration.Global.Get<bool> (nameof (DebugLogToFile)); } |