From c79d0f64fb9d74d6e51b39b88877f6766f113720 Mon Sep 17 00:00:00 2001 From: Sigmanor Date: Wed, 20 Jan 2016 21:27:18 +0200 Subject: [PATCH] Changing the settings of windows size and position --- Crypto Notepad/App.config | 18 ++-- .../Properties/Settings.Designer.cs | 90 ++++++++----------- Crypto Notepad/Properties/Settings.settings | 21 ++--- 3 files changed, 53 insertions(+), 76 deletions(-) diff --git a/Crypto Notepad/App.config b/Crypto Notepad/App.config index 86c69a6..81db5ff 100644 --- a/Crypto Notepad/App.config +++ b/Crypto Notepad/App.config @@ -12,24 +12,12 @@ - - 0 - - - 0 - Consolas 228, 228, 228 - - 690 - - - 430 - 56, 56, 56 @@ -72,6 +60,12 @@ True + + False + + + 645, 460 + diff --git a/Crypto Notepad/Properties/Settings.Designer.cs b/Crypto Notepad/Properties/Settings.Designer.cs index 3d3fef1..f68fc3c 100644 --- a/Crypto Notepad/Properties/Settings.Designer.cs +++ b/Crypto Notepad/Properties/Settings.Designer.cs @@ -23,32 +23,6 @@ public static Settings Default { } } - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("0")] - public int TopPosition { - get { - return ((int)(this["TopPosition"])); - } - set { - this["TopPosition"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("0")] - public int LeftPosition { - get { - return ((int)(this["LeftPosition"])); - } - set { - this["LeftPosition"] = value; - } - } - [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -75,32 +49,6 @@ public string RichTextFont { } } - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("690")] - public int FormWidth { - get { - return ((int)(this["FormWidth"])); - } - set { - this["FormWidth"] = value; - } - } - - [global::System.Configuration.UserScopedSettingAttribute()] - [global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Configuration.DefaultSettingValueAttribute("430")] - public int FormHeight { - get { - return ((int)(this["FormHeight"])); - } - set { - this["FormHeight"] = value; - } - } - [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] @@ -282,5 +230,43 @@ public bool AutoCheckUpdate { this["AutoCheckUpdate"] = value; } } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool AutoLock { + get { + return ((bool)(this["AutoLock"])); + } + set { + this["AutoLock"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + public global::System.Drawing.Point WindowLocation { + get { + return ((global::System.Drawing.Point)(this["WindowLocation"])); + } + set { + this["WindowLocation"] = value; + } + } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("645, 460")] + public global::System.Drawing.Size WindowSize { + get { + return ((global::System.Drawing.Size)(this["WindowSize"])); + } + set { + this["WindowSize"] = value; + } + } } } diff --git a/Crypto Notepad/Properties/Settings.settings b/Crypto Notepad/Properties/Settings.settings index e54c745..198442e 100644 --- a/Crypto Notepad/Properties/Settings.settings +++ b/Crypto Notepad/Properties/Settings.settings @@ -2,24 +2,12 @@ - - 0 - - - 0 - Consolas 228, 228, 228 - - 690 - - - 430 - 56, 56, 56 @@ -62,5 +50,14 @@ True + + False + + + + + + 645, 460 + \ No newline at end of file