From 30576b584de9507a8a2ed15c773f5603c052b5bd Mon Sep 17 00:00:00 2001 From: Jerker Dahlblom Date: Sat, 27 Jan 2024 12:05:23 +0200 Subject: [PATCH] Functions renamed for cursor handling (#64) --- src/client/DCSInsight/Misc/Common.cs | 4 ++-- src/client/DCSInsight/UserControls/UserControlAPI.xaml.cs | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/client/DCSInsight/Misc/Common.cs b/src/client/DCSInsight/Misc/Common.cs index 3922040..9ee3711 100644 --- a/src/client/DCSInsight/Misc/Common.cs +++ b/src/client/DCSInsight/Misc/Common.cs @@ -63,12 +63,12 @@ public static Tuple CheckJSONDirectory(string jsonDirectory) return new Tuple(true, jsonFound); } - public static void UIElement_OnMouseEnter(object sender, MouseEventArgs e) + public static void UIElement_OnMouseEnterHandIcon(object sender, MouseEventArgs e) { Mouse.OverrideCursor = Cursors.Hand; } - public static void UIElement_OnMouseLeave(object sender, MouseEventArgs e) + public static void UIElement_OnMouseLeaveNormalIcon(object sender, MouseEventArgs e) { Mouse.OverrideCursor = Cursors.Arrow; } diff --git a/src/client/DCSInsight/UserControls/UserControlAPI.xaml.cs b/src/client/DCSInsight/UserControls/UserControlAPI.xaml.cs index ccf27dc..2605a9c 100644 --- a/src/client/DCSInsight/UserControls/UserControlAPI.xaml.cs +++ b/src/client/DCSInsight/UserControls/UserControlAPI.xaml.cs @@ -104,8 +104,8 @@ protected override void BuildUI() Content = "[warning]", Foreground = (SolidColorBrush)new BrushConverter().ConvertFromString("#0000FF"), }; - labelConsoleWarning.MouseEnter += Common.UIElement_OnMouseEnter; - labelConsoleWarning.MouseLeave += Common.UIElement_OnMouseLeave; + labelConsoleWarning.MouseEnter += Common.UIElement_OnMouseEnterHandIcon; + labelConsoleWarning.MouseLeave += Common.UIElement_OnMouseLeaveNormalIcon; labelConsoleWarning.MouseDown += LabelConsoleWarningOnMouseDown; void LabelConsoleWarningOnMouseDown(object sender, MouseButtonEventArgs e) @@ -121,8 +121,8 @@ void LabelConsoleWarningOnMouseDown(object sender, MouseButtonEventArgs e) Content = "[list environment]", Foreground = (SolidColorBrush)new BrushConverter().ConvertFromString("#0000FF"), }; - labelDefaultLua.MouseEnter += Common.UIElement_OnMouseEnter; - labelDefaultLua.MouseLeave += Common.UIElement_OnMouseLeave; + labelDefaultLua.MouseEnter += Common.UIElement_OnMouseEnterHandIcon; + labelDefaultLua.MouseLeave += Common.UIElement_OnMouseLeaveNormalIcon; labelDefaultLua.MouseDown += LabelDefaultLuaOnMouseDown; void LabelDefaultLuaOnMouseDown(object sender, MouseButtonEventArgs e)