aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples/DebugLogAnalyzer/src/DebugInterfaceWidget.cs
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2021-04-09 04:51:37 +0200
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2021-04-09 04:51:37 +0200
commit2b6d20f81ec25698e39f2b1efac2574340aafcdd (patch)
tree821a44ace4d045f77733402bb1867b47b677c396 /Samples/DebugLogAnalyzer/src/DebugInterfaceWidget.cs
parent1a2d73613006acc5d519bac9b86d8c0c79ae9d46 (diff)
TG recursive lock check, IObsList clear evt, sample Editor xml syntax, command IList, CommandBase class
Diffstat (limited to 'Samples/DebugLogAnalyzer/src/DebugInterfaceWidget.cs')
-rw-r--r--Samples/DebugLogAnalyzer/src/DebugInterfaceWidget.cs31
1 files changed, 26 insertions, 5 deletions
diff --git a/Samples/DebugLogAnalyzer/src/DebugInterfaceWidget.cs b/Samples/DebugLogAnalyzer/src/DebugInterfaceWidget.cs
index 3f331cf2..ee30d5ed 100644
--- a/Samples/DebugLogAnalyzer/src/DebugInterfaceWidget.cs
+++ b/Samples/DebugLogAnalyzer/src/DebugInterfaceWidget.cs
@@ -216,9 +216,16 @@ namespace Crow
public override void onMouseMove(object sender, MouseMoveEventArgs e)
{
- if (initialized) {
- Point m = ScreenPointToLocal (e.Position);
- delMouseMove (m.X, m.Y);
+ if (initialized) {
+ try
+ {
+ Point m = ScreenPointToLocal (e.Position);
+ delMouseMove (m.X, m.Y);
+ }
+ catch (System.Exception ex)
+ {
+ Console.WriteLine($"[Error][DebugIFace mouse move]{ex}");
+ }
e.Handled = true;
}
base.onMouseMove(sender, e);
@@ -226,7 +233,14 @@ namespace Crow
public override void onMouseDown(object sender, MouseButtonEventArgs e)
{
if (initialized) {
- delMouseDown (e.Button);
+ try
+ {
+ delMouseDown (e.Button);
+ }
+ catch (System.Exception ex)
+ {
+ Console.WriteLine($"[Error][DebugIFace mouse down]{ex}");
+ }
e.Handled=true;
}
base.onMouseDown (sender, e);
@@ -234,7 +248,14 @@ namespace Crow
public override void onMouseUp(object sender, MouseButtonEventArgs e)
{
if (initialized) {
- delMouseUp (e.Button);
+ try
+ {
+ delMouseUp (e.Button);
+ }
+ catch (System.Exception ex)
+ {
+ Console.WriteLine($"[Error][DebugIFace mouse up]{ex}");
+ }
e.Handled=true;
}
base.onMouseUp (sender, e);