From 2008ec07249f0ce929cc697791bd3091a51750f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Saliba?= Date: Tue, 16 Jul 2024 23:07:10 +0200 Subject: [PATCH] feat: Added a new background (customized through the Options screen). feat: Improved the Options screen a bit. fix: Improved theming and layout (more modern). fix: Removed the console size reset on open (don't remember why it was there in the first place?!). --- Common/App.config | 3 + Common/Config/Settings.Designer.cs | 719 +++++++++--------- Common/Config/Settings.settings | 3 + Common/Processes/ProcessHelper.cs | 5 +- Common/UI/Themes/Dark.xaml | 3 + Common/UI/Themes/Light.xaml | 5 +- Common/UI/Themes/System.xaml | 3 + Console/App.xaml | 36 +- Console/App.xaml.cs | 22 +- Console/Console.csproj | 22 +- Console/Resources/Backgrounds/BG (1).jpg | Bin 0 -> 176761 bytes Console/Resources/Backgrounds/BG (10).jpg | Bin 0 -> 239187 bytes Console/Resources/Backgrounds/BG (2).jpg | Bin 0 -> 289619 bytes Console/Resources/Backgrounds/BG (3).jpg | Bin 0 -> 219028 bytes Console/Resources/Backgrounds/BG (4).jpg | Bin 0 -> 233156 bytes Console/Resources/Backgrounds/BG (5).jpg | Bin 0 -> 229739 bytes Console/Resources/Backgrounds/BG (6).jpg | Bin 0 -> 126985 bytes Console/Resources/Backgrounds/BG (7).jpg | Bin 0 -> 167462 bytes Console/Resources/Backgrounds/BG (8).jpg | Bin 0 -> 233941 bytes Console/Resources/Backgrounds/BG (9).jpg | Bin 0 -> 289105 bytes .../Resources/Backgrounds/Blue-Abstract.jpg | Bin 16134 -> 0 bytes Console/UI/Pages/AdapterInfo.xaml | 270 +++---- Console/UI/Pages/Connections.xaml | 508 +++++++------ Console/UI/Pages/EventsLog.xaml | 158 ++-- Console/UI/Pages/Rules.xaml | 62 +- Console/UI/Pages/Status.xaml | 284 +++---- Console/UI/Windows/About.xaml | 2 +- Console/UI/Windows/MainWindow.xaml | 8 +- Console/UI/Windows/Options.xaml | 53 +- Console/UI/Windows/Options.xaml.cs | 42 +- 30 files changed, 1166 insertions(+), 1042 deletions(-) create mode 100644 Console/Resources/Backgrounds/BG (1).jpg create mode 100644 Console/Resources/Backgrounds/BG (10).jpg create mode 100644 Console/Resources/Backgrounds/BG (2).jpg create mode 100644 Console/Resources/Backgrounds/BG (3).jpg create mode 100644 Console/Resources/Backgrounds/BG (4).jpg create mode 100644 Console/Resources/Backgrounds/BG (5).jpg create mode 100644 Console/Resources/Backgrounds/BG (6).jpg create mode 100644 Console/Resources/Backgrounds/BG (7).jpg create mode 100644 Console/Resources/Backgrounds/BG (8).jpg create mode 100644 Console/Resources/Backgrounds/BG (9).jpg delete mode 100644 Console/Resources/Backgrounds/Blue-Abstract.jpg diff --git a/Common/App.config b/Common/App.config index 681ffbc9..dc088901 100644 --- a/Common/App.config +++ b/Common/App.config @@ -82,6 +82,9 @@ Automatic + + /WFN;component/Resources/Backgrounds/BG (10).jpg + diff --git a/Common/Config/Settings.Designer.cs b/Common/Config/Settings.Designer.cs index 9a62733d..d479d823 100644 --- a/Common/Config/Settings.Designer.cs +++ b/Common/Config/Settings.Designer.cs @@ -8,361 +8,374 @@ // //------------------------------------------------------------------------------ -namespace Wokhan.WindowsFirewallNotifier.Common.Config; - - -[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] -[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.4.0.0")] -public sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { - - private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); - - public static Settings Default { - get { - return defaultInstance; - } - } - - [global::System.Configuration.ApplicationScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("True")] - public bool EnableServiceDetectionGlobal { - get { - return ((bool)(this["EnableServiceDetectionGlobal"])); - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("600")] - public double ConsoleSizeHeight { - get { - return ((double)(this["ConsoleSizeHeight"])); - } - set { - this["ConsoleSizeHeight"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("Normal")] - public global::System.Windows.WindowState ConsoleState { - get { - return ((global::System.Windows.WindowState)(this["ConsoleState"])); - } - set { - this["ConsoleState"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("True")] - public bool UseAnimation { - get { - return ((bool)(this["UseAnimation"])); - } - set { - this["UseAnimation"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("True")] - public bool FirstRun { - get { - return ((bool)(this["FirstRun"])); - } - set { - this["FirstRun"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("False")] - public bool EnableForAllAccounts { - get { - return ((bool)(this["EnableForAllAccounts"])); - } - set { - this["EnableForAllAccounts"] = value; - } - } - - [global::System.Configuration.ApplicationScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("True")] - public bool UseBlockRulesGlobal { - get { - return ((bool)(this["UseBlockRulesGlobal"])); - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("0")] - public int EnableFor { - get { - return ((int)(this["EnableFor"])); - } - set { - this["EnableFor"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("True")] - public bool AlwaysShowDetails { - get { - return ((bool)(this["AlwaysShowDetails"])); - } - set { - this["AlwaysShowDetails"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("True")] - public bool MinimizeToTray { - get { - return ((bool)(this["MinimizeToTray"])); - } - set { - this["MinimizeToTray"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("900")] - public double ConsoleSizeWidth { - get { - return ((double)(this["ConsoleSizeWidth"])); - } - set { - this["ConsoleSizeWidth"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("False")] - public bool EnableVerboseLogging { - get { - return ((bool)(this["EnableVerboseLogging"])); - } - set { - this["EnableVerboseLogging"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("True")] - [global::System.Configuration.SettingsManageabilityAttribute(global::System.Configuration.SettingsManageability.Roaming)] - public bool AlwaysRunAs { - get { - return ((bool)(this["AlwaysRunAs"])); - } - set { - this["AlwaysRunAs"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("True")] - public bool EnableDnsResolver { - get { - return ((bool)(this["EnableDnsResolver"])); - } - set { - this["EnableDnsResolver"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("True")] - public bool FilterTcpOnlyEvents { - get { - return ((bool)(this["FilterTcpOnlyEvents"])); - } - set { - this["FilterTcpOnlyEvents"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("False")] - public bool AuditPolEnableSuccessEvent { - get { - return ((bool)(this["AuditPolEnableSuccessEvent"])); - } - set { - this["AuditPolEnableSuccessEvent"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("https://bgpview.io/ip/{0}")] - public string TargetInfoUrl { - get { - return ((string)(this["TargetInfoUrl"])); - } - set { - this["TargetInfoUrl"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("https://www.speedguide.net/port.php?port={0}")] - public string TargetPortUrl { - get { - return ((string)(this["TargetPortUrl"])); - } - set { - this["TargetPortUrl"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("0,0")] - public global::System.Windows.Point ActivityWindow_Position { - get { - return ((global::System.Windows.Point)(this["ActivityWindow_Position"])); - } - set { - this["ActivityWindow_Position"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("True")] - public bool ActivityWindow_Shown { - get { - return ((bool)(this["ActivityWindow_Shown"])); - } - set { - this["ActivityWindow_Shown"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("Horizontal")] - public global::System.Windows.Controls.Orientation ActivityWindow_Orientation { - get { - return ((global::System.Windows.Controls.Orientation)(this["ActivityWindow_Orientation"])); - } - set { - this["ActivityWindow_Orientation"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("True")] - public bool StartNotifierAfterLogin { - get { - return ((bool)(this["StartNotifierAfterLogin"])); - } - set { - this["StartNotifierAfterLogin"] = value; - } - } +namespace Wokhan.WindowsFirewallNotifier.Common.Config { - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("True")] - public bool StartNotifierMinimized { - get { - return ((bool)(this["StartNotifierMinimized"])); - } - set { - this["StartNotifierMinimized"] = value; - } - } - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("False")] - public bool IsInstalled { - get { - return ((bool)(this["IsInstalled"])); - } - set { - this["IsInstalled"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("False")] - public bool IsPortable { - get { - return ((bool)(this["IsPortable"])); - } - set { - this["IsPortable"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("False")] - public bool ShowMap { - get { - return ((bool)(this["ShowMap"])); - } - set { - this["ShowMap"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("False")] - public bool ShowGraph { - get { - return ((bool)(this["ShowGraph"])); - } - set { - this["ShowGraph"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("True")] - public bool ShowConnections { - get { - return ((bool)(this["ShowConnections"])); - } - set { - this["ShowConnections"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("Automatic")] - public string Theme { - get { - return ((string)(this["Theme"])); - } - set { - this["Theme"] = value; + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.11.0.0")] + public sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default { + get { + return defaultInstance; + } + } + + [global::System.Configuration.ApplicationScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("True")] + public bool EnableServiceDetectionGlobal { + get { + return ((bool)(this["EnableServiceDetectionGlobal"])); + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("600")] + public double ConsoleSizeHeight { + get { + return ((double)(this["ConsoleSizeHeight"])); + } + set { + this["ConsoleSizeHeight"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("Normal")] + public global::System.Windows.WindowState ConsoleState { + get { + return ((global::System.Windows.WindowState)(this["ConsoleState"])); + } + set { + this["ConsoleState"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("True")] + public bool UseAnimation { + get { + return ((bool)(this["UseAnimation"])); + } + set { + this["UseAnimation"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("True")] + public bool FirstRun { + get { + return ((bool)(this["FirstRun"])); + } + set { + this["FirstRun"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool EnableForAllAccounts { + get { + return ((bool)(this["EnableForAllAccounts"])); + } + set { + this["EnableForAllAccounts"] = value; + } + } + + [global::System.Configuration.ApplicationScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("True")] + public bool UseBlockRulesGlobal { + get { + return ((bool)(this["UseBlockRulesGlobal"])); + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("0")] + public int EnableFor { + get { + return ((int)(this["EnableFor"])); + } + set { + this["EnableFor"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("True")] + public bool AlwaysShowDetails { + get { + return ((bool)(this["AlwaysShowDetails"])); + } + set { + this["AlwaysShowDetails"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("True")] + public bool MinimizeToTray { + get { + return ((bool)(this["MinimizeToTray"])); + } + set { + this["MinimizeToTray"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("900")] + public double ConsoleSizeWidth { + get { + return ((double)(this["ConsoleSizeWidth"])); + } + set { + this["ConsoleSizeWidth"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool EnableVerboseLogging { + get { + return ((bool)(this["EnableVerboseLogging"])); + } + set { + this["EnableVerboseLogging"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("True")] + [global::System.Configuration.SettingsManageabilityAttribute(global::System.Configuration.SettingsManageability.Roaming)] + public bool AlwaysRunAs { + get { + return ((bool)(this["AlwaysRunAs"])); + } + set { + this["AlwaysRunAs"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("True")] + public bool EnableDnsResolver { + get { + return ((bool)(this["EnableDnsResolver"])); + } + set { + this["EnableDnsResolver"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("True")] + public bool FilterTcpOnlyEvents { + get { + return ((bool)(this["FilterTcpOnlyEvents"])); + } + set { + this["FilterTcpOnlyEvents"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool AuditPolEnableSuccessEvent { + get { + return ((bool)(this["AuditPolEnableSuccessEvent"])); + } + set { + this["AuditPolEnableSuccessEvent"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("https://bgpview.io/ip/{0}")] + public string TargetInfoUrl { + get { + return ((string)(this["TargetInfoUrl"])); + } + set { + this["TargetInfoUrl"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("https://www.speedguide.net/port.php?port={0}")] + public string TargetPortUrl { + get { + return ((string)(this["TargetPortUrl"])); + } + set { + this["TargetPortUrl"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("0,0")] + public global::System.Windows.Point ActivityWindow_Position { + get { + return ((global::System.Windows.Point)(this["ActivityWindow_Position"])); + } + set { + this["ActivityWindow_Position"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("True")] + public bool ActivityWindow_Shown { + get { + return ((bool)(this["ActivityWindow_Shown"])); + } + set { + this["ActivityWindow_Shown"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("Horizontal")] + public global::System.Windows.Controls.Orientation ActivityWindow_Orientation { + get { + return ((global::System.Windows.Controls.Orientation)(this["ActivityWindow_Orientation"])); + } + set { + this["ActivityWindow_Orientation"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("True")] + public bool StartNotifierAfterLogin { + get { + return ((bool)(this["StartNotifierAfterLogin"])); + } + set { + this["StartNotifierAfterLogin"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("True")] + public bool StartNotifierMinimized { + get { + return ((bool)(this["StartNotifierMinimized"])); + } + set { + this["StartNotifierMinimized"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool IsInstalled { + get { + return ((bool)(this["IsInstalled"])); + } + set { + this["IsInstalled"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool IsPortable { + get { + return ((bool)(this["IsPortable"])); + } + set { + this["IsPortable"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool ShowMap { + get { + return ((bool)(this["ShowMap"])); + } + set { + this["ShowMap"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool ShowGraph { + get { + return ((bool)(this["ShowGraph"])); + } + set { + this["ShowGraph"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("True")] + public bool ShowConnections { + get { + return ((bool)(this["ShowConnections"])); + } + set { + this["ShowConnections"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("Automatic")] + public string Theme { + get { + return ((string)(this["Theme"])); + } + set { + this["Theme"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("/WFN;component/Resources/Backgrounds/BG (10).jpg")] + public string Background { + get { + return ((string)(this["Background"])); + } + set { + this["Background"] = value; + } } } } diff --git a/Common/Config/Settings.settings b/Common/Config/Settings.settings index f3995d44..c1dbea4e 100644 --- a/Common/Config/Settings.settings +++ b/Common/Config/Settings.settings @@ -89,5 +89,8 @@ Automatic + + /WFN;component/Resources/Backgrounds/BG (10).jpg + \ No newline at end of file diff --git a/Common/Processes/ProcessHelper.cs b/Common/Processes/ProcessHelper.cs index d19963d8..48dd2c77 100644 --- a/Common/Processes/ProcessHelper.cs +++ b/Common/Processes/ProcessHelper.cs @@ -20,14 +20,15 @@ namespace Wokhan.WindowsFirewallNotifier.Common.Processes; public static partial class ProcessHelper { - public static void RunElevated(string process) + public static void RunElevated(string process, string? args = null) { ProcessStartInfo proc = new ProcessStartInfo { UseShellExecute = true, WorkingDirectory = Environment.CurrentDirectory, FileName = process, - Verb = "runas" + Verb = "runas", + Arguments = args }; Process.Start(proc); diff --git a/Common/UI/Themes/Dark.xaml b/Common/UI/Themes/Dark.xaml index 90afd3b3..b5c1bdfb 100644 --- a/Common/UI/Themes/Dark.xaml +++ b/Common/UI/Themes/Dark.xaml @@ -11,6 +11,9 @@ + 0.1 + #CC222222 + diff --git a/Common/UI/Themes/Light.xaml b/Common/UI/Themes/Light.xaml index 417b924b..3e1c3f07 100644 --- a/Common/UI/Themes/Light.xaml +++ b/Common/UI/Themes/Light.xaml @@ -11,6 +11,9 @@ + 0.1 + #BEFFFFFF + @@ -20,7 +23,7 @@ - + 38 diff --git a/Common/UI/Themes/System.xaml b/Common/UI/Themes/System.xaml index f3b90906..3342a3f2 100644 --- a/Common/UI/Themes/System.xaml +++ b/Common/UI/Themes/System.xaml @@ -11,6 +11,9 @@ + 0.05 + + diff --git a/Console/App.xaml b/Console/App.xaml index 3c0ab5c8..fec6379e 100644 --- a/Console/App.xaml +++ b/Console/App.xaml @@ -19,23 +19,23 @@ - + - + 600 900 - + - + - + - + - + - + - + + + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - + + - - - - - - - - - - - + + + + + + + diff --git a/Console/UI/Pages/Connections.xaml b/Console/UI/Pages/Connections.xaml index d22180be..b6ceb3a4 100644 --- a/Console/UI/Pages/Connections.xaml +++ b/Console/UI/Pages/Connections.xaml @@ -32,18 +32,19 @@ - - - - - - - - - - - - + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - + + + + + + + + + + - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Console/UI/Pages/EventsLog.xaml b/Console/UI/Pages/EventsLog.xaml index cfb7dba9..41f64106 100644 --- a/Console/UI/Pages/EventsLog.xaml +++ b/Console/UI/Pages/EventsLog.xaml @@ -31,83 +31,85 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - (Id: ) - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + (Id: ) + + + + + + + + diff --git a/Console/UI/Pages/Rules.xaml b/Console/UI/Pages/Rules.xaml index 7194404d..581e993d 100644 --- a/Console/UI/Pages/Rules.xaml +++ b/Console/UI/Pages/Rules.xaml @@ -47,35 +47,37 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Console/UI/Pages/Status.xaml b/Console/UI/Pages/Status.xaml index c8c48519..b50d864c 100644 --- a/Console/UI/Pages/Status.xaml +++ b/Console/UI/Pages/Status.xaml @@ -24,157 +24,159 @@ + diff --git a/Console/UI/Windows/Options.xaml b/Console/UI/Windows/Options.xaml index 50675417..e9e76636 100644 --- a/Console/UI/Windows/Options.xaml +++ b/Console/UI/Windows/Options.xaml @@ -9,20 +9,16 @@ xmlns:ext="clr-namespace:Wokhan.UI.Xaml.Extensibility;assembly=Wokhan.UI" xmlns:uicontrols="clr-namespace:Wokhan.UI.Xaml.Controls;assembly=Wokhan.UI" xmlns:themes="clr-namespace:Wokhan.WindowsFirewallNotifier.Common.UI.Themes;assembly=Wokhan.WindowsFirewallNotifier.Common" + xmlns:system="clr-namespace:System;assembly=System.Runtime" mc:Ignorable="d" x:Name="me" ShowInTaskbar="False" ResizeMode="NoResize" WindowStartupLocation="CenterOwner" - Height="600" Width="600" + Height="600" Width="700" Title="Settings" Margin="10" DataContext="{Binding Path=(settings:Settings.Default)}"> - +