diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2021-04-10 02:13:37 +0200 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2021-04-10 02:13:37 +0200 |
| commit | ba4e19bd5a09ac02a81db47f804af11ef2821014 (patch) | |
| tree | 5b2c141d6815a5169c9e6ed827501fec5c3803d9 /Samples/DebugLogAnalyzer/src/DebugInterfaceWidget.cs | |
| parent | ae9c383ea4e3caccc768ca8caa7a0f6d8c875172 (diff) | |
DebugLogAnalyzer StickyMouse bug
Diffstat (limited to 'Samples/DebugLogAnalyzer/src/DebugInterfaceWidget.cs')
| -rw-r--r-- | Samples/DebugLogAnalyzer/src/DebugInterfaceWidget.cs | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/Samples/DebugLogAnalyzer/src/DebugInterfaceWidget.cs b/Samples/DebugLogAnalyzer/src/DebugInterfaceWidget.cs index ee30d5ed..5432b05e 100644 --- a/Samples/DebugLogAnalyzer/src/DebugInterfaceWidget.cs +++ b/Samples/DebugLogAnalyzer/src/DebugInterfaceWidget.cs @@ -140,16 +140,19 @@ namespace Crow public bool CrowDebuggerOK => initialized; public bool CrowDebuggerNOK => !initialized; - void notifyCrowDebuggerState () { + public string CrowDebuggerErrorMessage = ""; + void notifyCrowDebuggerState (string errorMsg = null) { NotifyValueChanged("CrowDebuggerOK", CrowDebuggerOK); NotifyValueChanged("CrowDebuggerNOK", CrowDebuggerNOK); + CrowDebuggerErrorMessage = errorMsg; + NotifyValueChanged("CrowDebuggerErrorMessage", CrowDebuggerErrorMessage); } void tryStartDebugInterface () { if (initialized) return; if (!File.Exists (crowDbgAssemblyLocation)) { - notifyCrowDebuggerState(); + notifyCrowDebuggerState($"Crow.dll for debugging file not found"); return; } @@ -161,7 +164,7 @@ namespace Crow Type debuggerType = crowAssembly.GetType("Crow.DbgLogger"); if (!(bool)debuggerType.GetField("IsEnabled").GetValue(null)) { - notifyCrowDebuggerState(); + notifyCrowDebuggerState("Crow.dll must be compiled with CrowDebugLogEnabled='True'"); return; } @@ -201,6 +204,7 @@ namespace Crow dbgIfaceType.GetMethod("Run").Invoke (dbgIFace, null); initialized = true; + notifyCrowDebuggerState(); //Console.WriteLine($"DbgIFace: LoadCtx:{AssemblyLoadContext.GetLoadContext (dbgIFace.GetType().Assembly).Name})"); //} @@ -298,5 +302,7 @@ namespace Crow dla.Events = events; } } + + public virtual object GetScreenCoordinates () => ScreenCoordinates(Slot).TopLeft; } }
\ No newline at end of file |