From b1e3263d96c68abcb6ac6ef1e924ae27d637b972 Mon Sep 17 00:00:00 2001 From: Daniel Chalmers Date: Thu, 7 Dec 2017 16:33:43 -0500 Subject: [PATCH] Add horizontal layout option --- Network Monitor/App.config | 8 +++++-- Network Monitor/MainWindow.xaml | 24 +++++++++++++++++++ .../Properties/Settings.Designer.cs | 12 ++++++++++ Network Monitor/Properties/Settings.settings | 3 +++ 4 files changed, 45 insertions(+), 2 deletions(-) diff --git a/Network Monitor/App.config b/Network Monitor/App.config index dfaea1e..7d20fbd 100644 --- a/Network Monitor/App.config +++ b/Network Monitor/App.config @@ -27,9 +27,10 @@ - + 0 - + Hide 0 @@ -51,6 +52,9 @@ True + + False + diff --git a/Network Monitor/MainWindow.xaml b/Network Monitor/MainWindow.xaml index e9f30e1..0c1da30 100644 --- a/Network Monitor/MainWindow.xaml +++ b/Network Monitor/MainWindow.xaml @@ -38,6 +38,10 @@ IsCheckable="True" IsChecked="{Binding ShowInTaskbar, Source={x:Static p:Settings.Default}, Mode=TwoWay}" /> + + @@ -83,6 +87,26 @@ + + + + + + + + + + diff --git a/Network Monitor/Properties/Settings.Designer.cs b/Network Monitor/Properties/Settings.Designer.cs index cbdbf1b..082492a 100644 --- a/Network Monitor/Properties/Settings.Designer.cs +++ b/Network Monitor/Properties/Settings.Designer.cs @@ -141,5 +141,17 @@ public bool Bits { return ((global::System.TimeSpan)(this["Timeout"])); } } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool Horizontal { + get { + return ((bool)(this["Horizontal"])); + } + set { + this["Horizontal"] = value; + } + } } } diff --git a/Network Monitor/Properties/Settings.settings b/Network Monitor/Properties/Settings.settings index 83aa09e..fe35696 100644 --- a/Network Monitor/Properties/Settings.settings +++ b/Network Monitor/Properties/Settings.settings @@ -49,5 +49,8 @@ 00:00:04 + + False + \ No newline at end of file