mirror of
https://github.com/Crypto-Notepad/Crypto-Notepad.git
synced 2026-03-11 08:55:25 +00:00
Code formatting
This commit is contained in:
parent
cf376d223a
commit
0acea85613
2 changed files with 13 additions and 5 deletions
|
|
@ -17,6 +17,7 @@ public AboutFrom()
|
|||
InitializeComponent();
|
||||
}
|
||||
|
||||
#region Methods
|
||||
private static string CheckFor45DotVersion(int releaseKey)
|
||||
{
|
||||
if (releaseKey >= 461808)
|
||||
|
|
@ -101,9 +102,10 @@ private async void GetDebugInfo()
|
|||
await Task.Delay(3000);
|
||||
copyToClipboardLabel.Visible = false;
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
/*Event Handlers*/
|
||||
#region Event Handlers
|
||||
private void AboutWindow_Load(object sender, EventArgs e)
|
||||
{
|
||||
Version vrs = new Version(Application.ProductVersion);
|
||||
|
|
@ -125,16 +127,16 @@ private void RandomColorTimer_Tick(object sender, EventArgs e)
|
|||
Color randomColor = Color.FromArgb(rnd.Next(256), rnd.Next(256), rnd.Next(256));
|
||||
appVersionLabel.ForeColor = randomColor;
|
||||
}
|
||||
/*Event Handlers*/
|
||||
#endregion
|
||||
|
||||
|
||||
/*Main*/
|
||||
#region Main
|
||||
private void AppInfoRichTextBox_LinkClicked(object sender, LinkClickedEventArgs e)
|
||||
{
|
||||
Process.Start(e.LinkText);
|
||||
}
|
||||
|
||||
private void appVersionLabel_MouseClick(object sender, MouseEventArgs e)
|
||||
private void AppVersionLabel_MouseClick(object sender, MouseEventArgs e)
|
||||
{
|
||||
if (e.Button == MouseButtons.Left)
|
||||
{
|
||||
|
|
@ -153,7 +155,8 @@ private void appVersionLabel_MouseClick(object sender, MouseEventArgs e)
|
|||
}
|
||||
}
|
||||
}
|
||||
/*Main*/
|
||||
#endregion
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ public PasswordGeneratorFrom()
|
|||
InitializeComponent();
|
||||
}
|
||||
|
||||
#region Methods
|
||||
private string GeneratePassword()
|
||||
{
|
||||
var pwd = new Password(
|
||||
|
|
@ -36,7 +37,10 @@ private IEnumerable<string> GeneratePasswordGroup()
|
|||
passwordLength: int.Parse(passwordLengthTextBox.Text));
|
||||
return pwd.NextGroup(11);
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
#region Event Handlers
|
||||
private void GenerateButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
passwordsList.AppendLine(GeneratePassword());
|
||||
|
|
@ -126,6 +130,7 @@ private void PasswordValidation(object sender, EventArgs e)
|
|||
generateButton.Enabled = false;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue