Minor functionality improvements in "Password generator" window

- Added icon to the title bar;
- Saving password parameters after window closing;
- Button "Generate" disabling when the password length is less than 8 or more than 128 or when all checkboxes are unchecked;
This commit is contained in:
Alexander 2019-11-19 15:55:05 +02:00
parent 9776aaf3e9
commit 7111741633
6 changed files with 291 additions and 93 deletions

View file

@ -144,6 +144,21 @@
<setting name="encryptionHint" serializeAs="String">
<value>True</value>
</setting>
<setting name="passwordGeneratorLowercase" serializeAs="String">
<value>True</value>
</setting>
<setting name="passwordGeneratorUppercase" serializeAs="String">
<value>True</value>
</setting>
<setting name="passwordGeneratorNumeric" serializeAs="String">
<value>True</value>
</setting>
<setting name="passwordGeneratorSpecial" serializeAs="String">
<value>True</value>
</setting>
<setting name="passwordGeneratorLength" serializeAs="String">
<value>40</value>
</setting>
</Crypto_Notepad.Properties.Settings>
</userSettings>
</configuration>

View file

@ -28,28 +28,33 @@ protected override void Dispose(bool disposing)
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(PasswordGeneratorFrom));
this.generateButton = new System.Windows.Forms.Button();
this.passwordsList = new System.Windows.Forms.TextBox();
this.clearPasswordsListButton = new System.Windows.Forms.Button();
this.includeLowercaseCheckBox = new System.Windows.Forms.CheckBox();
this.includeUppercaseCheckBox = new System.Windows.Forms.CheckBox();
this.includeNumericCheckBox = new System.Windows.Forms.CheckBox();
this.includeSpecialCheckBox = new System.Windows.Forms.CheckBox();
this.lowercaseCheckBox = new System.Windows.Forms.CheckBox();
this.uppercaseCheckBox = new System.Windows.Forms.CheckBox();
this.numericCheckBox = new System.Windows.Forms.CheckBox();
this.specialCheckBox = new System.Windows.Forms.CheckBox();
this.passwordLengthTextBox = new System.Windows.Forms.PlaceholderTextBox();
this.SuspendLayout();
//
// generateButton
//
this.generateButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.generateButton.Location = new System.Drawing.Point(303, 127);
this.generateButton.Name = "generateButton";
this.generateButton.Size = new System.Drawing.Size(79, 23);
this.generateButton.TabIndex = 0;
this.generateButton.TabIndex = 5;
this.generateButton.Text = "Generate";
this.generateButton.UseVisualStyleBackColor = true;
this.generateButton.Click += new System.EventHandler(this.GenerateButton_Click);
//
// passwordsList
//
this.passwordsList.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.passwordsList.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.passwordsList.Location = new System.Drawing.Point(7, 7);
this.passwordsList.Multiline = true;
@ -57,69 +62,83 @@ private void InitializeComponent()
this.passwordsList.ReadOnly = true;
this.passwordsList.ScrollBars = System.Windows.Forms.ScrollBars.Both;
this.passwordsList.Size = new System.Drawing.Size(290, 172);
this.passwordsList.TabIndex = 2;
this.passwordsList.TabIndex = 7;
this.passwordsList.WordWrap = false;
//
// clearPasswordsListButton
//
this.clearPasswordsListButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.clearPasswordsListButton.Location = new System.Drawing.Point(303, 156);
this.clearPasswordsListButton.Name = "clearPasswordsListButton";
this.clearPasswordsListButton.Size = new System.Drawing.Size(79, 23);
this.clearPasswordsListButton.TabIndex = 3;
this.clearPasswordsListButton.TabIndex = 6;
this.clearPasswordsListButton.Text = "Clear";
this.clearPasswordsListButton.UseVisualStyleBackColor = true;
this.clearPasswordsListButton.Click += new System.EventHandler(this.ClearPasswordsListButton_Click);
//
// includeLowercaseCheckBox
// lowercaseCheckBox
//
this.includeLowercaseCheckBox.AutoSize = true;
this.includeLowercaseCheckBox.Checked = true;
this.includeLowercaseCheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
this.includeLowercaseCheckBox.Location = new System.Drawing.Point(303, 7);
this.includeLowercaseCheckBox.Name = "includeLowercaseCheckBox";
this.includeLowercaseCheckBox.Size = new System.Drawing.Size(79, 17);
this.includeLowercaseCheckBox.TabIndex = 4;
this.includeLowercaseCheckBox.Text = "Lowercase";
this.includeLowercaseCheckBox.UseVisualStyleBackColor = true;
this.lowercaseCheckBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.lowercaseCheckBox.AutoSize = true;
this.lowercaseCheckBox.Checked = true;
this.lowercaseCheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
this.lowercaseCheckBox.Location = new System.Drawing.Point(303, 7);
this.lowercaseCheckBox.Name = "lowercaseCheckBox";
this.lowercaseCheckBox.Size = new System.Drawing.Size(79, 17);
this.lowercaseCheckBox.TabIndex = 0;
this.lowercaseCheckBox.Text = "Lowercase";
this.lowercaseCheckBox.UseVisualStyleBackColor = true;
this.lowercaseCheckBox.CheckedChanged += new System.EventHandler(this.PasswordValidation);
this.lowercaseCheckBox.Click += new System.EventHandler(this.LowercaseCheckBox_Click);
//
// includeUppercaseCheckBox
// uppercaseCheckBox
//
this.includeUppercaseCheckBox.AutoSize = true;
this.includeUppercaseCheckBox.Checked = true;
this.includeUppercaseCheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
this.includeUppercaseCheckBox.Location = new System.Drawing.Point(303, 30);
this.includeUppercaseCheckBox.Name = "includeUppercaseCheckBox";
this.includeUppercaseCheckBox.Size = new System.Drawing.Size(80, 17);
this.includeUppercaseCheckBox.TabIndex = 5;
this.includeUppercaseCheckBox.Text = "Uppercase";
this.includeUppercaseCheckBox.UseVisualStyleBackColor = true;
this.uppercaseCheckBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.uppercaseCheckBox.AutoSize = true;
this.uppercaseCheckBox.Checked = true;
this.uppercaseCheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
this.uppercaseCheckBox.Location = new System.Drawing.Point(303, 30);
this.uppercaseCheckBox.Name = "uppercaseCheckBox";
this.uppercaseCheckBox.Size = new System.Drawing.Size(80, 17);
this.uppercaseCheckBox.TabIndex = 1;
this.uppercaseCheckBox.Text = "Uppercase";
this.uppercaseCheckBox.UseVisualStyleBackColor = true;
this.uppercaseCheckBox.CheckedChanged += new System.EventHandler(this.PasswordValidation);
this.uppercaseCheckBox.Click += new System.EventHandler(this.UppercaseCheckBox_Click);
//
// includeNumericCheckBox
// numericCheckBox
//
this.includeNumericCheckBox.AutoSize = true;
this.includeNumericCheckBox.Checked = true;
this.includeNumericCheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
this.includeNumericCheckBox.Location = new System.Drawing.Point(303, 53);
this.includeNumericCheckBox.Name = "includeNumericCheckBox";
this.includeNumericCheckBox.Size = new System.Drawing.Size(68, 17);
this.includeNumericCheckBox.TabIndex = 6;
this.includeNumericCheckBox.Text = "Numeric";
this.includeNumericCheckBox.UseVisualStyleBackColor = true;
this.numericCheckBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.numericCheckBox.AutoSize = true;
this.numericCheckBox.Checked = true;
this.numericCheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
this.numericCheckBox.Location = new System.Drawing.Point(303, 53);
this.numericCheckBox.Name = "numericCheckBox";
this.numericCheckBox.Size = new System.Drawing.Size(68, 17);
this.numericCheckBox.TabIndex = 2;
this.numericCheckBox.Text = "Numeric";
this.numericCheckBox.UseVisualStyleBackColor = true;
this.numericCheckBox.CheckedChanged += new System.EventHandler(this.PasswordValidation);
this.numericCheckBox.Click += new System.EventHandler(this.NumericCheckBox_Click);
//
// includeSpecialCheckBox
// specialCheckBox
//
this.includeSpecialCheckBox.AutoSize = true;
this.includeSpecialCheckBox.Checked = true;
this.includeSpecialCheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
this.includeSpecialCheckBox.Location = new System.Drawing.Point(303, 76);
this.includeSpecialCheckBox.Name = "includeSpecialCheckBox";
this.includeSpecialCheckBox.Size = new System.Drawing.Size(62, 17);
this.includeSpecialCheckBox.TabIndex = 7;
this.includeSpecialCheckBox.Text = "Special";
this.includeSpecialCheckBox.UseVisualStyleBackColor = true;
this.specialCheckBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.specialCheckBox.AutoSize = true;
this.specialCheckBox.Checked = true;
this.specialCheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
this.specialCheckBox.Location = new System.Drawing.Point(303, 76);
this.specialCheckBox.Name = "specialCheckBox";
this.specialCheckBox.Size = new System.Drawing.Size(62, 17);
this.specialCheckBox.TabIndex = 3;
this.specialCheckBox.Text = "Special";
this.specialCheckBox.UseVisualStyleBackColor = true;
this.specialCheckBox.CheckedChanged += new System.EventHandler(this.PasswordValidation);
this.specialCheckBox.Click += new System.EventHandler(this.SpecialCheckBox_Click);
//
// passwordLengthTextBox
//
this.passwordLengthTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.passwordLengthTextBox.Location = new System.Drawing.Point(303, 99);
this.passwordLengthTextBox.Name = "passwordLengthTextBox";
this.passwordLengthTextBox.Placeholder = "Length";
@ -127,8 +146,9 @@ private void InitializeComponent()
this.passwordLengthTextBox.PlaceholderFont = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.passwordLengthTextBox.PlaceholderForeColor = System.Drawing.Color.Gray;
this.passwordLengthTextBox.Size = new System.Drawing.Size(79, 22);
this.passwordLengthTextBox.TabIndex = 8;
this.passwordLengthTextBox.Text = "32";
this.passwordLengthTextBox.TabIndex = 4;
this.passwordLengthTextBox.Text = "40";
this.passwordLengthTextBox.TextChanged += new System.EventHandler(this.PasswordValidation);
this.passwordLengthTextBox.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.PasswordLengthTextBox_KeyPress);
//
// PasswordGeneratorFrom
@ -137,20 +157,21 @@ private void InitializeComponent()
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(388, 186);
this.Controls.Add(this.passwordLengthTextBox);
this.Controls.Add(this.includeSpecialCheckBox);
this.Controls.Add(this.includeNumericCheckBox);
this.Controls.Add(this.includeUppercaseCheckBox);
this.Controls.Add(this.includeLowercaseCheckBox);
this.Controls.Add(this.specialCheckBox);
this.Controls.Add(this.numericCheckBox);
this.Controls.Add(this.uppercaseCheckBox);
this.Controls.Add(this.lowercaseCheckBox);
this.Controls.Add(this.clearPasswordsListButton);
this.Controls.Add(this.passwordsList);
this.Controls.Add(this.generateButton);
this.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.MaximizeBox = false;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MinimumSize = new System.Drawing.Size(404, 225);
this.Name = "PasswordGeneratorFrom";
this.ShowIcon = false;
this.ShowInTaskbar = false;
this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
this.Text = "Password Generator";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.PasswordGeneratorFrom_FormClosing);
this.Load += new System.EventHandler(this.PasswordGeneratorFrom_Load);
this.ResumeLayout(false);
this.PerformLayout();
@ -162,10 +183,10 @@ private void InitializeComponent()
private System.Windows.Forms.Button generateButton;
private System.Windows.Forms.TextBox passwordsList;
private System.Windows.Forms.Button clearPasswordsListButton;
private System.Windows.Forms.CheckBox includeLowercaseCheckBox;
private System.Windows.Forms.CheckBox includeUppercaseCheckBox;
private System.Windows.Forms.CheckBox includeNumericCheckBox;
private System.Windows.Forms.CheckBox includeSpecialCheckBox;
private System.Windows.Forms.CheckBox lowercaseCheckBox;
private System.Windows.Forms.CheckBox uppercaseCheckBox;
private System.Windows.Forms.CheckBox numericCheckBox;
private System.Windows.Forms.CheckBox specialCheckBox;
private System.Windows.Forms.PlaceholderTextBox passwordLengthTextBox;
}
}

View file

@ -1,57 +1,45 @@
using PasswordGenerator;
using Crypto_Notepad.Properties;
using PasswordGenerator;
using System;
using System.Runtime.InteropServices;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
namespace Crypto_Notepad
{
public partial class PasswordGeneratorFrom : Form
{
[DllImport("user32.dll")]
static extern IntPtr CloseClipboard();
Settings settings = Settings.Default;
public PasswordGeneratorFrom()
{
InitializeComponent();
11.Times(() => GenerateButton_Click(null, null));
}
private string GeneratePassword()
{
var pwd = new Password(
includeLowercase: includeLowercaseCheckBox.Checked,
includeUppercase: includeUppercaseCheckBox.Checked,
includeNumeric: includeNumericCheckBox.Checked,
includeSpecial: includeSpecialCheckBox.Checked,
includeLowercase: lowercaseCheckBox.Checked,
includeUppercase: uppercaseCheckBox.Checked,
includeNumeric: numericCheckBox.Checked,
includeSpecial: specialCheckBox.Checked,
passwordLength: int.Parse(passwordLengthTextBox.Text));
return pwd.Next();
}
private IEnumerable<string> GeneratePasswordGroup()
{
var pwd = new Password(
includeLowercase: lowercaseCheckBox.Checked,
includeUppercase: uppercaseCheckBox.Checked,
includeNumeric: numericCheckBox.Checked,
includeSpecial: specialCheckBox.Checked,
passwordLength: int.Parse(passwordLengthTextBox.Text));
return pwd.NextGroup(11);
}
private void GenerateButton_Click(object sender, EventArgs e)
{
PublicVar.messageBoxCenterParent = true;
if (string.IsNullOrEmpty(passwordLengthTextBox.Text))
{
passwordLengthTextBox.Text = 8.ToString();
}
if (int.Parse(passwordLengthTextBox.Text) < 8)
{
passwordLengthTextBox.Text = 8.ToString();
}
if (int.Parse(passwordLengthTextBox.Text) > 128)
{
passwordLengthTextBox.Text = 128.ToString();
}
try
{
passwordsList.AppendLine(GeneratePassword());
}
catch (ArgumentOutOfRangeException)
{
using (new CenterWinDialog(this))
{
DialogResult res = MessageBox.Show(this, "Choose at least one character type", "Uh oh! Something went wrong", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
passwordsList.AppendLine(GeneratePassword());
}
private void ClearPasswordsListButton_Click(object sender, EventArgs e)
@ -70,6 +58,75 @@ private void PasswordLengthTextBox_KeyPress(object sender, KeyPressEventArgs e)
private void PasswordGeneratorFrom_Load(object sender, EventArgs e)
{
CenterToParent();
lowercaseCheckBox.Checked = settings.passwordGeneratorLowercase;
uppercaseCheckBox.Checked = settings.passwordGeneratorUppercase;
numericCheckBox.Checked = settings.passwordGeneratorNumeric;
specialCheckBox.Checked = settings.passwordGeneratorSpecial;
passwordLengthTextBox.Text = settings.passwordGeneratorLength;
passwordsList.Text = string.Join(Environment.NewLine, GeneratePasswordGroup().ToArray());
}
private void LowercaseCheckBox_Click(object sender, EventArgs e)
{
settings.passwordGeneratorLowercase = lowercaseCheckBox.Checked;
settings.Save();
}
private void UppercaseCheckBox_Click(object sender, EventArgs e)
{
settings.passwordGeneratorUppercase = uppercaseCheckBox.Checked;
settings.Save();
}
private void NumericCheckBox_Click(object sender, EventArgs e)
{
settings.passwordGeneratorNumeric = numericCheckBox.Checked;
settings.Save();
}
private void SpecialCheckBox_Click(object sender, EventArgs e)
{
settings.passwordGeneratorSpecial = specialCheckBox.Checked;
settings.Save();
}
private void PasswordGeneratorFrom_FormClosing(object sender, FormClosingEventArgs e)
{
if (!settings.passwordGeneratorLowercase & !settings.passwordGeneratorUppercase
& !settings.passwordGeneratorNumeric & !settings.passwordGeneratorSpecial)
{
settings.passwordGeneratorLowercase = true;
}
if (passwordLengthTextBox.Text.Length >= 1)
{
if (int.Parse(passwordLengthTextBox.Text) >= 8 & int.Parse(passwordLengthTextBox.Text) <= 128)
{
settings.passwordGeneratorLength = passwordLengthTextBox.Text;
}
}
settings.Save();
}
private void PasswordValidation(object sender, EventArgs e)
{
if (passwordLengthTextBox.Text.Length >= 1)
{
if (int.Parse(passwordLengthTextBox.Text) < 8 | int.Parse(passwordLengthTextBox.Text) > 128 | !lowercaseCheckBox.Checked
& !uppercaseCheckBox.Checked & !numericCheckBox.Checked & !specialCheckBox.Checked)
{
generateButton.Enabled = false;
}
else
{
generateButton.Enabled = true;
}
}
else
{
generateButton.Enabled = false;
}
}
}
}

View file

@ -117,4 +117,29 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAA
AAD///8AAAAAAgAAAAwAAAAaABoxWQAtV70AGC5gAAAAKwAAAB4AAAAQAAAABAZtAJkFaQDMBm0AmQdx
AAAOjAAA////AAAAAAEAAAAGAAAADQAzXaiFzub/ADNdqQAjPk8AAAAPAAAACAAAAAIMgwDMK98a/wyD
AMwNiAAADowAAP///wAAAAAAAAAAAAAvTwAAPmihg8zl/33K5P8APmmiBEM1AA6NAJkOjADMDowAzD3i
LP8OjADMDowAzA6NAJn///8AAAAAAAA5WQAAS3YAAEt2qYPM5f8AS3apAEt2LghwOwAQlQDMUudB/1Ln
Qf9S50H/UudB/1LnQf8QlQDM////AABUfwAAVH8AAFR/AABUf7aDzOX/dsLc9gBUf7YJeEAAEpwAmRKd
AMwSnQDMZutV/xKdAMwSnQDMEpwAmf///wAAVYAAAFWAAABVgAAAVYC1g8zl/wBVgLUAVYAuBWdgABKd
AAAToQAAFKQAzHXuZP8UpADME6EAABKdAAD///8AAFmFAABWgQAAVYAAAFWAsYPM5f9muNX/AFWAsQBV
gAAFaGEAFKgAABWpAJkVqQDMFakAmRSoAAASnQAA////AABZhQAAVoEFAFWAQQBVgKyDzOX/YbPS/wBV
gKwAVYBBAFaBBQVtZAAVqQAAFaoAABWpAAAUqAAAEp0AAP///wAAWYUHAFiEbT6OscV8w+Drcrza/1uu
zv9Xr9LrLIatxQBYhG0AWYUHBm5kABWqAAAVqQAAFKgAABKdAAD///8AAV6MS1SkxcyW2vb/iMzu/2ey
0/9MosX/Ta/X/2LG7f87mcLMAV6MSwFejQAGcWoAC4RHAAuDRwAKfkcA////AAFjlIWZ3/f3mt74/5ba
9f+ByuX/br3a/2rD5P9pyvD/ac309wFjlIUBY5QAAWOUAAFjlAABY5QAAWOUAP///wACap6SoeX+/xCY
sc4AkKjJAJCoyQCQqMkAkKjJCZawzm7T+v8Cap6SAmqeAAJqngACap4AAmqeAAJqngD///8AAnCocYzX
8etFq8vdAIakggCJpRkAiaUZAIakgimix91qyu/rAnCocQJwqAACcKgAAnCoAAJwqAACcKgA////AAJ2
sC8nkcOkneH5/0WhxtYPeqW6C3iiuimUvNZ30fP/Io/CpAJ2sC8Cda8AAnWvAAJ1rwACda8AAnWvAP//
/wADe7cBA3y5TCmWyaF+zu3djdXs/4DM5v9txOXdJZTJoQN8uUwDe7cBA3u3AAN7twADe7cAA3u3AAN7
twD///8AA3u3AAN+vQEDgL8tA4C/aQOAv4MDgL+DA4C/aQOAvy0Dfr0BA3u3AAN7twADe7cAA3u3AAN7
twADe7cAgAMAAIADAADwgAAA8IAAAPCAAADw4wAA8OMAAMA/AACAHwAAgB8AAIAfAACAHwAAgB8AAIAf
AACAHwAAwD8AAA==
</value>
</data>
</root>

View file

@ -595,5 +595,70 @@ public bool encryptionHint {
this["encryptionHint"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("True")]
public bool passwordGeneratorLowercase {
get {
return ((bool)(this["passwordGeneratorLowercase"]));
}
set {
this["passwordGeneratorLowercase"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("True")]
public bool passwordGeneratorUppercase {
get {
return ((bool)(this["passwordGeneratorUppercase"]));
}
set {
this["passwordGeneratorUppercase"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("True")]
public bool passwordGeneratorNumeric {
get {
return ((bool)(this["passwordGeneratorNumeric"]));
}
set {
this["passwordGeneratorNumeric"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("True")]
public bool passwordGeneratorSpecial {
get {
return ((bool)(this["passwordGeneratorSpecial"]));
}
set {
this["passwordGeneratorSpecial"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("40")]
public string passwordGeneratorLength {
get {
return ((string)(this["passwordGeneratorLength"]));
}
set {
this["passwordGeneratorLength"] = value;
}
}
}
}

View file

@ -134,5 +134,20 @@
<Setting Name="encryptionHint" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">True</Value>
</Setting>
<Setting Name="passwordGeneratorLowercase" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">True</Value>
</Setting>
<Setting Name="passwordGeneratorUppercase" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">True</Value>
</Setting>
<Setting Name="passwordGeneratorNumeric" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">True</Value>
</Setting>
<Setting Name="passwordGeneratorSpecial" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">True</Value>
</Setting>
<Setting Name="passwordGeneratorLength" Provider="PortableSettingsProvider" Type="System.String" Scope="User">
<Value Profile="(Default)">40</Value>
</Setting>
</Settings>
</SettingsFile>