From 33aa9fb16909d0bb859c200a1e47187cc7e2e018 Mon Sep 17 00:00:00 2001
From: gbakeman
Date: Thu, 18 Jul 2024 15:23:47 -0400
Subject: [PATCH] Display polling int. in seconds, other prefs changes
- Replaced the polling interval field in the Prefs dialog with a NumericUpDown control, with precision to the tenths place and limited from 0.1 to 100.
- Updated references to the polling interval field by converting stored miliseconds to seconds and back
- Removed isModified parameter from the SavedPreferences event, the assumption being that preferences will be saved if anything was changed.
- Removed old code from WinNUT
---
.../WinNUT-Client.zh-TW.xlf | 66 +-
.../WinNUT-client.de-DE.xlf | 66 +-
.../WinNUT-client.fr-FR.xlf | 66 +-
.../WinNUT-client.ru-RU.xlf | 66 +-
.../WinNUT-client.zh-CN.xlf | 66 +-
WinNUT_V2/WinNUT-Client/Pref_Gui.Designer.vb | 32 +-
WinNUT_V2/WinNUT-Client/Pref_Gui.de-DE.resx | 27 +
WinNUT_V2/WinNUT-Client/Pref_Gui.fr-FR.resx | 27 +
WinNUT_V2/WinNUT-Client/Pref_Gui.resx | 1044 +++++++++++++----
WinNUT_V2/WinNUT-Client/Pref_Gui.ru-RU.resx | 27 +
WinNUT_V2/WinNUT-Client/Pref_Gui.vb | 27 +-
WinNUT_V2/WinNUT-Client/Pref_Gui.zh-CN.resx | 31 +-
WinNUT_V2/WinNUT-Client/Pref_Gui.zh-TW.resx | 27 +
WinNUT_V2/WinNUT-Client/WinNUT.vb | 9 -
14 files changed, 1214 insertions(+), 367 deletions(-)
diff --git a/WinNUT_V2/WinNUT-Client/MultilingualResources/WinNUT-Client.zh-TW.xlf b/WinNUT_V2/WinNUT-Client/MultilingualResources/WinNUT-Client.zh-TW.xlf
index 9d5421a..5532804 100644
--- a/WinNUT_V2/WinNUT-Client/MultilingualResources/WinNUT-Client.zh-TW.xlf
+++ b/WinNUT_V2/WinNUT-Client/MultilingualResources/WinNUT-Client.zh-TW.xlf
@@ -778,9 +778,9 @@ Cancel to Save Msi and Install Later
..\Resources\WinNUT-Updater.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
..\Resources\WinNUT-Updater.ico;System.Drawing.Icon, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
-
+
..\Resources\XP_Information.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
- ..\Resources\XP_Information.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
+ ..\Resources\XP_Information.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
Previous preferences data detected in the Registry.
@@ -1488,10 +1488,6 @@ Accepted value: Numeric value from 0 to 100.
Calibration
校正
-
- 12
- 12
-
UPS Load
UPS 負載
@@ -1756,12 +1752,6 @@ Accepted value: Numeric value from 0 to 100.
Debug
除錯
-
- Milliseconds between data updates from NUT server.
-Min: 100, Max: 60 000.
- Milliseconds between data updates from NUT server.
-Min: 100, Max: 60 000.
-
NoControl
NoControl
@@ -1880,10 +1870,6 @@ Accepted value: Numeric value from 0 to 3600.
92, 13
92, 13
-
- 154, 101
- 154, 101
-
4, 22
4, 22
@@ -2020,10 +2006,6 @@ Accepted value: Numeric value from 0 to 3600.
154, 11
154, 11
-
- 162, 20
- 162, 20
-
Close to Systray
關閉至系統匣
@@ -2454,6 +2436,50 @@ Accepted value: Numeric value from 0 to 100.
Microsoft Sans Serif, 8.25pt, style=Italic
Microsoft Sans Serif, 8.25pt, style=Italic
+
+ Right
+ Right
+
+
+ True
+ True
+
+
+ 251, 102
+ 251, 102
+
+
+ 49, 13
+ 49, 13
+
+
+ 20
+ 20
+
+
+ Seconds
+ Seconds
+
+
+ 154, 100
+ 154, 100
+
+
+ 91, 20
+ 91, 20
+
+
+ 19
+ 19
+
+
+ How often WinNUT refreshes data from the NUT server.
+ How often WinNUT refreshes data from the NUT server.
+
+
+ False
+ False
+
-
- 154, 101
- 154, 101
-
-
- 162, 20
- 162, 20
-
-
- 12
- 12
-
154, 71
154, 71
@@ -1234,12 +1222,6 @@
17, 17
17, 17
-
- Milliseconds between data updates from NUT server.
-Min: 100, Max: 60 000.
- Milliseconds between data updates from NUT server.
-Min: 100, Max: 60 000.
-
UPS name to monitor.
Accepted Value: Name of the UPS configured in the Nut server.
@@ -1557,6 +1539,50 @@ Accepted value: Numeric value from 0 to 100.
Microsoft Sans Serif, 8.25pt, style=Italic
Microsoft Sans Serif, 8.25pt, style=Italic
+
+ Right
+ Right
+
+
+ True
+ True
+
+
+ 251, 102
+ 251, 102
+
+
+ 49, 13
+ 49, 13
+
+
+ 20
+ 20
+
+
+ Seconds
+ Seconds
+
+
+ 154, 100
+ 154, 100
+
+
+ 91, 20
+ 91, 20
+
+
+ 19
+ 19
+
+
+ How often WinNUT refreshes data from the NUT server.
+ How often WinNUT refreshes data from the NUT server.
+
+
+ False
+ False
+