Added WindowState parameter

This commit is contained in:
Sigmanor 2016-01-24 22:40:23 +02:00
parent 3600d9d8a4
commit 580fc43234
3 changed files with 19 additions and 0 deletions

View file

@ -66,6 +66,9 @@
<setting name="WindowSize" serializeAs="String">
<value>645, 460</value>
</setting>
<setting name="WindowState" serializeAs="String">
<value>Normal</value>
</setting>
</Crypto_Notepad.Properties.Settings>
<EncryptPad.Properties.Settings>
<setting name="TopPosition" serializeAs="String">

View file

@ -268,5 +268,18 @@ public bool AutoLock {
this["WindowSize"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("Normal")]
public global::System.Windows.Forms.FormWindowState WindowState {
get {
return ((global::System.Windows.Forms.FormWindowState)(this["WindowState"]));
}
set {
this["WindowState"] = value;
}
}
}
}

View file

@ -59,5 +59,8 @@
<Setting Name="WindowSize" Provider="PortableSettingsProvider" Type="System.Drawing.Size" Scope="User">
<Value Profile="(Default)">645, 460</Value>
</Setting>
<Setting Name="WindowState" Provider="PortableSettingsProvider" Type="System.Windows.Forms.FormWindowState" Scope="User">
<Value Profile="(Default)">Normal</Value>
</Setting>
</Settings>
</SettingsFile>