From ac8dc8423675cfc906d27561b03b726be8898526 Mon Sep 17 00:00:00 2001 From: BornToBeRoot <16019165+BornToBeRoot@users.noreply.github.com> Date: Mon, 10 Mar 2025 00:48:15 +0100 Subject: [PATCH 1/3] Feature: Profile file unlock child window --- .../Resources/Strings.Designer.cs | 9 ++ .../Resources/Strings.resx | 3 + .../ConfigurationInfo.cs | 21 ++++ Source/NETworkManager/MainWindow.xaml | 2 +- Source/NETworkManager/MainWindow.xaml.cs | 99 +++++++------------ .../Resources/Styles/PasswordBoxStyles.xaml | 1 + .../ViewModels/ARPTableViewModel.cs | 16 +-- .../ViewModels/BitCalculatorViewModel.cs | 4 +- .../ViewModels/ConnectionsViewModel.cs | 4 +- ...CredentialsPasswordProfileFileViewModel.cs | 5 +- .../ViewModels/DNSLookupViewModel.cs | 3 +- .../ViewModels/IPGeolocationViewModel.cs | 3 +- .../ViewModels/IPScannerViewModel.cs | 4 +- .../ViewModels/ListenersViewModel.cs | 3 +- .../ViewModels/LookupOUILookupViewModel.cs | 5 +- .../ViewModels/LookupPortViewModel.cs | 4 +- .../ViewModels/NetworkInterfaceViewModel.cs | 12 +-- .../ViewModels/PingMonitorHostViewModel.cs | 4 +- .../ViewModels/PortScannerViewModel.cs | 7 +- .../ViewModels/SNMPViewModel.cs | 3 +- .../ViewModels/SNTPLookupViewModel.cs | 3 +- .../SubnetCalculatorCalculatorViewModel.cs | 4 +- .../SubnetCalculatorSubnettingViewModel.cs | 4 +- .../SubnetCalculatorWideSubnetViewModel.cs | 4 +- .../ViewModels/TracerouteViewModel.cs | 3 +- .../ViewModels/WakeOnLANViewModel.cs | 4 +- .../ViewModels/WhoisViewModel.cs | 3 +- ...ntialsPasswordProfileFileChildWindow.xaml} | 73 +++++++++----- ...ialsPasswordProfileFileChildWindow.xaml.cs | 9 ++ ...edentialsPasswordProfileFileDialog.xaml.cs | 16 --- .../Views/WelcomeChildWindow.xaml | 2 +- 31 files changed, 192 insertions(+), 145 deletions(-) rename Source/NETworkManager/Views/{CredentialsPasswordProfileFileDialog.xaml => CredentialsPasswordProfileFileChildWindow.xaml} (53%) create mode 100644 Source/NETworkManager/Views/CredentialsPasswordProfileFileChildWindow.xaml.cs delete mode 100644 Source/NETworkManager/Views/CredentialsPasswordProfileFileDialog.xaml.cs diff --git a/Source/NETworkManager.Localization/Resources/Strings.Designer.cs b/Source/NETworkManager.Localization/Resources/Strings.Designer.cs index 0f995a8ebc..783c4482cd 100644 --- a/Source/NETworkManager.Localization/Resources/Strings.Designer.cs +++ b/Source/NETworkManager.Localization/Resources/Strings.Designer.cs @@ -6876,6 +6876,15 @@ public static string ProfileEncryptionDisclaimer { } } + /// + /// Sucht eine lokalisierte Zeichenfolge, die Profile file ähnelt. + /// + public static string ProfileFile { + get { + return ResourceManager.GetString("ProfileFile", resourceCulture); + } + } + /// /// Sucht eine lokalisierte Zeichenfolge, die Profile file could not be loaded! ähnelt. /// diff --git a/Source/NETworkManager.Localization/Resources/Strings.resx b/Source/NETworkManager.Localization/Resources/Strings.resx index a27f42d61b..b568f36d54 100644 --- a/Source/NETworkManager.Localization/Resources/Strings.resx +++ b/Source/NETworkManager.Localization/Resources/Strings.resx @@ -3876,4 +3876,7 @@ Right-click for more options. Donate + + Profile file + \ No newline at end of file diff --git a/Source/NETworkManager.Settings/ConfigurationInfo.cs b/Source/NETworkManager.Settings/ConfigurationInfo.cs index e93b1a4b69..491f23227f 100644 --- a/Source/NETworkManager.Settings/ConfigurationInfo.cs +++ b/Source/NETworkManager.Settings/ConfigurationInfo.cs @@ -430,6 +430,27 @@ public string ProfileManagerErrorMessage } } + /// + /// Private variable for . + /// + private bool _isChildWindowOpen; + + /// + /// Indicates if a child window is open. + /// + public bool IsChildWindowOpen + { + get => _isChildWindowOpen; + set + { + if (value == _isChildWindowOpen) + return; + + _isChildWindowOpen = value; + OnPropertyChanged(); + } + } + /// /// Private variable for . /// diff --git a/Source/NETworkManager/MainWindow.xaml b/Source/NETworkManager/MainWindow.xaml index 304799a908..8a67897a53 100644 --- a/Source/NETworkManager/MainWindow.xaml +++ b/Source/NETworkManager/MainWindow.xaml @@ -88,7 +88,7 @@ - +