mirror of
https://github.com/Crypto-Notepad/Crypto-Notepad.git
synced 2026-03-11 08:55:25 +00:00
Files sorted by folders
This commit is contained in:
parent
7e346eae89
commit
dc5a2a8394
25 changed files with 67 additions and 27 deletions
|
|
@ -101,44 +101,44 @@
|
|||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="AboutFrom.cs">
|
||||
<Compile Include="Forms\AboutFrom.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="AboutFrom.Designer.cs">
|
||||
<Compile Include="Forms\AboutFrom.Designer.cs">
|
||||
<DependentUpon>AboutFrom.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="AES.cs" />
|
||||
<Compile Include="ChangeKeyForm.cs">
|
||||
<Compile Include="External Libraries\AES.cs" />
|
||||
<Compile Include="Forms\ChangeKeyForm.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="ChangeKeyForm.Designer.cs">
|
||||
<Compile Include="Forms\ChangeKeyForm.Designer.cs">
|
||||
<DependentUpon>ChangeKeyForm.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="EncryptedString.cs" />
|
||||
<Compile Include="HideCaretRichTextBox.cs">
|
||||
<Compile Include="External Libraries\EncryptedString.cs" />
|
||||
<Compile Include="External Libraries\HideCaretRichTextBox.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="MainForm.cs">
|
||||
<Compile Include="Forms\MainForm.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="MainForm.Designer.cs">
|
||||
<Compile Include="Forms\MainForm.Designer.cs">
|
||||
<DependentUpon>MainForm.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="EnterKeyForm.cs">
|
||||
<Compile Include="Forms\EnterKeyForm.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="EnterKeyForm.Designer.cs">
|
||||
<Compile Include="Forms\EnterKeyForm.Designer.cs">
|
||||
<DependentUpon>EnterKeyForm.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="External Libraries\MsgBoxCenterParent.cs" />
|
||||
<Compile Include="ExRichTextBox.cs">
|
||||
<Compile Include="External Libraries\ExRichTextBox.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="External Libraries\OSVersionInfoClass.cs" />
|
||||
<Compile Include="PasswordGeneratorFrom.cs">
|
||||
<Compile Include="Forms\PasswordGeneratorFrom.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="PasswordGeneratorFrom.Designer.cs">
|
||||
<Compile Include="Forms\PasswordGeneratorFrom.Designer.cs">
|
||||
<DependentUpon>PasswordGeneratorFrom.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="External Libraries\PortableSettingsProvider.cs" />
|
||||
|
|
@ -149,29 +149,29 @@
|
|||
<DesignTime>True</DesignTime>
|
||||
<DependentUpon>Resources.resx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="SettingsForm.cs">
|
||||
<Compile Include="Forms\SettingsForm.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="SettingsForm.Designer.cs">
|
||||
<Compile Include="Forms\SettingsForm.Designer.cs">
|
||||
<DependentUpon>SettingsForm.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="PlaceholderTextBox.cs">
|
||||
<Compile Include="External Libraries\PlaceholderTextBox.cs">
|
||||
<SubType>Component</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Methods.cs" />
|
||||
<EmbeddedResource Include="AboutFrom.resx">
|
||||
<Compile Include="External Libraries\Methods.cs" />
|
||||
<EmbeddedResource Include="Forms\AboutFrom.resx">
|
||||
<DependentUpon>AboutFrom.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="ChangeKeyForm.resx">
|
||||
<EmbeddedResource Include="Forms\ChangeKeyForm.resx">
|
||||
<DependentUpon>ChangeKeyForm.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="MainForm.resx">
|
||||
<EmbeddedResource Include="Forms\MainForm.resx">
|
||||
<DependentUpon>MainForm.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="EnterKeyForm.resx">
|
||||
<EmbeddedResource Include="Forms\EnterKeyForm.resx">
|
||||
<DependentUpon>EnterKeyForm.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="PasswordGeneratorFrom.resx">
|
||||
<EmbeddedResource Include="Forms\PasswordGeneratorFrom.resx">
|
||||
<DependentUpon>PasswordGeneratorFrom.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Properties\Resources.resx">
|
||||
|
|
@ -179,7 +179,7 @@
|
|||
<SubType>Designer</SubType>
|
||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="SettingsForm.resx">
|
||||
<EmbeddedResource Include="Forms\SettingsForm.resx">
|
||||
<DependentUpon>SettingsForm.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<None Include="packages.config" />
|
||||
|
|
|
|||
|
|
@ -50,12 +50,23 @@ private void InitializeComponent()
|
|||
this.aboutToolTip.SetToolTip(this.appVersionLabel, "Left click to copy debug info to the clipboard");
|
||||
this.appVersionLabel.MouseClick += new System.Windows.Forms.MouseEventHandler(this.AppVersionLabel_MouseClick);
|
||||
this.appVersionLabel.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.AppVersionLabel_MouseDoubleClick);
|
||||
this.appVersionLabel.MouseEnter += new System.EventHandler(this.appVersionLabel_MouseEnter);
|
||||
//
|
||||
// randomColorTimer
|
||||
//
|
||||
this.randomColorTimer.Interval = 200;
|
||||
this.randomColorTimer.Tick += new System.EventHandler(this.RandomColorTimer_Tick);
|
||||
//
|
||||
// aboutToolTip
|
||||
//
|
||||
this.aboutToolTip.AutoPopDelay = 1000;
|
||||
this.aboutToolTip.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(61)))), ((int)(((byte)(61)))), ((int)(((byte)(68)))));
|
||||
this.aboutToolTip.ForeColor = System.Drawing.Color.DarkGray;
|
||||
this.aboutToolTip.InitialDelay = 500;
|
||||
this.aboutToolTip.OwnerDraw = true;
|
||||
this.aboutToolTip.ReshowDelay = 100;
|
||||
this.aboutToolTip.Draw += new System.Windows.Forms.DrawToolTipEventHandler(this.AboutToolTip_Draw);
|
||||
//
|
||||
// appInfoRichTextBox
|
||||
//
|
||||
this.appInfoRichTextBox.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(45)))), ((int)(((byte)(50)))));
|
||||
|
|
@ -26,7 +26,7 @@ private void GetDebugInfo()
|
|||
sb.AppendLine(string.Format("OS version = {0}", OSVersionInfo.VersionString));
|
||||
sb.AppendLine(".Net Framework = " + Methods.GetDotNetVersion());
|
||||
Clipboard.SetText(sb.ToString());
|
||||
aboutToolTip.Show("Copied", appVersionLabel, 210, 1, 1000);
|
||||
aboutToolTip.SetToolTip(appVersionLabel, "Copied");
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
|
@ -86,6 +86,18 @@ private void AppVersionLabel_MouseClick(object sender, MouseEventArgs e)
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void AboutToolTip_Draw(object sender, DrawToolTipEventArgs e)
|
||||
{
|
||||
e.DrawBackground();
|
||||
e.DrawBorder();
|
||||
e.DrawText();
|
||||
}
|
||||
|
||||
private void appVersionLabel_MouseEnter(object sender, EventArgs e)
|
||||
{
|
||||
aboutToolTip.SetToolTip(appVersionLabel, "Left click to copy debug info to the clipboard");
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
|
|
@ -200,6 +200,7 @@ private void InitializeComponent()
|
|||
this.copyAllButton.Text = "Copy All";
|
||||
this.copyAllButton.UseVisualStyleBackColor = true;
|
||||
this.copyAllButton.Click += new System.EventHandler(this.CopyAllButton_Click);
|
||||
this.copyAllButton.MouseEnter += new System.EventHandler(this.CopyAllButton_MouseEnter);
|
||||
//
|
||||
// copyLastButton
|
||||
//
|
||||
|
|
@ -211,6 +212,13 @@ private void InitializeComponent()
|
|||
this.copyLastButton.Text = "Copy Last";
|
||||
this.copyLastButton.UseVisualStyleBackColor = true;
|
||||
this.copyLastButton.Click += new System.EventHandler(this.CopyLastButton_Click);
|
||||
this.copyLastButton.MouseEnter += new System.EventHandler(this.CopyLastButton_MouseEnter);
|
||||
//
|
||||
// passwordGeneratorToolTip
|
||||
//
|
||||
this.passwordGeneratorToolTip.AutoPopDelay = 1000;
|
||||
this.passwordGeneratorToolTip.InitialDelay = 500;
|
||||
this.passwordGeneratorToolTip.ReshowDelay = 100;
|
||||
//
|
||||
// PasswordGeneratorFrom
|
||||
//
|
||||
|
|
@ -137,13 +137,13 @@ private void PasswordValidation(object sender, EventArgs e)
|
|||
private void CopyAllButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
Clipboard.SetText(passwordsListTextBox.Text);
|
||||
passwordGeneratorToolTip.Show("Copied", copyAllButton, 0, -20, 1000);
|
||||
passwordGeneratorToolTip.SetToolTip(copyAllButton, "Copied");
|
||||
}
|
||||
|
||||
private void CopyLastButton_Click(object sender, EventArgs e)
|
||||
{
|
||||
Clipboard.SetText(passwordsListTextBox.Lines[passwordsListTextBox.Lines.Length - 1]);
|
||||
passwordGeneratorToolTip.Show("Copied", copyLastButton, 0, -20, 1000);
|
||||
passwordGeneratorToolTip.SetToolTip(copyLastButton, "Copied");
|
||||
}
|
||||
|
||||
private void PasswordsListTextBox_TextChanged(object sender, EventArgs e)
|
||||
|
|
@ -159,8 +159,17 @@ private void PasswordsListTextBox_TextChanged(object sender, EventArgs e)
|
|||
copyAllButton.Enabled = true;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private void CopyLastButton_MouseEnter(object sender, EventArgs e)
|
||||
{
|
||||
passwordGeneratorToolTip.SetToolTip(copyLastButton, null);
|
||||
}
|
||||
|
||||
private void CopyAllButton_MouseEnter(object sender, EventArgs e)
|
||||
{
|
||||
passwordGeneratorToolTip.SetToolTip(copyAllButton, null);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue