From 2cf458beae0536de895237d61a5452e1feedfdce Mon Sep 17 00:00:00 2001 From: mshafer1 <2565361+mshafer1@users.noreply.github.com> Date: Sat, 21 Dec 2024 08:11:45 -0600 Subject: [PATCH] use CamelCasing --- ntfysh_client/NotificationDialog.cs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/ntfysh_client/NotificationDialog.cs b/ntfysh_client/NotificationDialog.cs index 9a34de7..d13fa97 100644 --- a/ntfysh_client/NotificationDialog.cs +++ b/ntfysh_client/NotificationDialog.cs @@ -52,7 +52,7 @@ namespace ntfysh_client if (IsVisible) { // close the current notification - handleTimeout(null, null); + HandleTimeout(null, null); } // setup data @@ -82,7 +82,7 @@ namespace ntfysh_client if (timeout_ms > 0) { _displayTimeoutTimer = new System.Timers.Timer(timeout_ms); - _displayTimeoutTimer.Elapsed += handleTimeout; + _displayTimeoutTimer.Elapsed += HandleTimeout; _displayTimeoutTimer.Start(); if (showTimeOutBar) @@ -160,7 +160,7 @@ namespace ntfysh_client Left = workingleft - NotificationDialog.ScreenMargin; } - private void ui_hide_window(object? sender, EventArgs? e) + private void UIThreadAnimatedHideWindow(object? sender, EventArgs? e) { AnimateWindow( @@ -172,19 +172,19 @@ namespace ntfysh_client IsVisible = false; } - private void handleTimeout(object? sender, EventArgs? e) + private void HandleTimeout(object? sender, EventArgs? e) { - cancelTimer(); + CancelTimer(); if (InvokeRequired) { // on a background thread, so invoke on the UI thread - Invoke(new Action(() => ui_hide_window(sender, e))); + Invoke(new Action(() => UIThreadAnimatedHideWindow(sender, e))); } else { // in the UI thread, invoke directly - ui_hide_window(sender, e); + UIThreadAnimatedHideWindow(sender, e); } } @@ -233,10 +233,10 @@ namespace ntfysh_client private void window_MouseDown(object sender, EventArgs e) { - cancelTimer(); + CancelTimer(); } - private void cancelTimer() + private void CancelTimer() { if (InvokeRequired) {