Compare commits

..

No commits in common. "master" and "v1.6.8" have entirely different histories.

30 changed files with 1086 additions and 1561 deletions

4
.github/FUNDING.yml vendored
View file

@ -2,11 +2,11 @@
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username patreon: # Replace with a single Patreon username
open_collective: # open_collective: crypto-notepad
ko_fi: ko_fi:
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: liberapay:
issuehunt: # issuehunt: #
otechie: # Replace with a single Otechie username otechie: # Replace with a single Otechie username
custom: https://github.com/Crypto-Notepad/Crypto-Notepad/wiki/Support-the-project custom:

View file

@ -55,7 +55,7 @@ further defined and clarified by project maintainers.
## Enforcement ## Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior may be Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at dock-brunt-rarity@duck.com. All reported by contacting the project team at sigmanor@pm.me. All
complaints will be reviewed and investigated and will result in a response that complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident. obligated to maintain confidentiality with regard to the reporter of an incident.

View file

@ -4,7 +4,7 @@ Before starting, make sure that you visited the [projects](https://github.com/Cr
## How to contribute to Crypto Notepad ## How to contribute to Crypto Notepad
### Did you find any bug/have an idea how to improve the project? ### Did you find any bug/have an idea how to improve the project?
* Send me a message: [`email`](mailto:dock-brunt-rarity@duck.com) * Send me a message: [`telegram`](https://t.me/Sigmanor) [`facebook`](https://www.fb.com/SlGMANOR) [`email`](mailto:sigmanor@pm.me)
* Create an [issue](https://github.com/Sigmanor/Crypto-Notepad/issues/new/choose). * Create an [issue](https://github.com/Sigmanor/Crypto-Notepad/issues/new/choose).
### You can help me fix some bug/implement a new feature? ### You can help me fix some bug/implement a new feature?

View file

@ -12,7 +12,7 @@
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/></startup> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/></startup>
<userSettings> <userSettings>
<Crypto_Notepad.Properties.Settings> <Crypto_Notepad.Properties.Settings>
<setting name="editorForeColor" serializeAs="String"> <setting name="editroForeColor" serializeAs="String">
<value>Black</value> <value>Black</value>
</setting> </setting>
<setting name="editorBackColor" serializeAs="String"> <setting name="editorBackColor" serializeAs="String">
@ -195,12 +195,6 @@
<setting name="openTxtUnencrypted" serializeAs="String"> <setting name="openTxtUnencrypted" serializeAs="String">
<value>False</value> <value>False</value>
</setting> </setting>
<setting name="trayMenu" serializeAs="String">
<value>False</value>
</setting>
<setting name="statusPanelPasteboard" serializeAs="String">
<value>False</value>
</setting>
</Crypto_Notepad.Properties.Settings> </Crypto_Notepad.Properties.Settings>
</userSettings> </userSettings>
</configuration> </configuration>

View file

@ -56,15 +56,14 @@
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget> <PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>embedded</DebugType> <DebugType>PdbOnly</DebugType>
<Optimize>true</Optimize> <Optimize>True</Optimize>
<OutputPath>bin\Release\</OutputPath> <OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants> <DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel> <WarningLevel>4</WarningLevel>
<UseVSHostingProcess>false</UseVSHostingProcess> <UseVSHostingProcess>false</UseVSHostingProcess>
<Prefer32Bit>false</Prefer32Bit> <Prefer32Bit>false</Prefer32Bit>
<DebugSymbols>true</DebugSymbols>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' "> <PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<CheckForOverflowUnderflow>False</CheckForOverflowUnderflow> <CheckForOverflowUnderflow>False</CheckForOverflowUnderflow>
@ -82,9 +81,6 @@
<PropertyGroup> <PropertyGroup>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects> <AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
</PropertyGroup> </PropertyGroup>
<PropertyGroup>
<NoWin32Manifest>true</NoWin32Manifest>
</PropertyGroup>
<ItemGroup> <ItemGroup>
<Reference Include="Costura, Version=4.1.0.0, Culture=neutral, PublicKeyToken=9919ef960d84173d, processorArchitecture=MSIL"> <Reference Include="Costura, Version=4.1.0.0, Culture=neutral, PublicKeyToken=9919ef960d84173d, processorArchitecture=MSIL">
<HintPath>..\packages\Costura.Fody.4.1.0\lib\net40\Costura.dll</HintPath> <HintPath>..\packages\Costura.Fody.4.1.0\lib\net40\Costura.dll</HintPath>
@ -203,12 +199,7 @@
<None Include="App.config" /> <None Include="App.config" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<None Include="Resources\clock--plus.png" />
<None Include="Resources\clock_add.png" />
<None Include="Resources\clipboard-text.png" />
<None Include="Resources\Updater.exe" /> <None Include="Resources\Updater.exe" />
<None Include="Resources\application.png" />
<None Include="Resources\application-dock-180.png" />
<Content Include="Notepad_Lock.ico" /> <Content Include="Notepad_Lock.ico" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>

View file

@ -1,8 +1,6 @@
using Microsoft.Win32; using Microsoft.Win32;
using System; using System;
using System.Drawing;
using System.IO; using System.IO;
using System.Linq;
using System.Reflection; using System.Reflection;
using System.Windows.Forms; using System.Windows.Forms;
@ -19,12 +17,6 @@ public static void AppendLine(this TextBox source, string value)
source.AppendText("\r\n" + value); source.AppendText("\r\n" + value);
} }
public static bool IsOnScreen(Form form)
{
Rectangle formRectangle = new Rectangle(form.Left, form.Top, form.Width, form.Height);
return Screen.AllScreens.Any(s => s.WorkingArea.IntersectsWith(formRectangle));
}
public static void Times(this int count, Action action) public static void Times(this int count, Action action)
{ {
for (int i = 0; i < count; i++) for (int i = 0; i < count; i++)

View file

@ -35,11 +35,11 @@ private void InitializeComponent()
this.lockPictureBox = new System.Windows.Forms.PictureBox(); this.lockPictureBox = new System.Windows.Forms.PictureBox();
this.showNewKeyPictureBox = new System.Windows.Forms.PictureBox(); this.showNewKeyPictureBox = new System.Windows.Forms.PictureBox();
this.showOldKeyPictureBox = new System.Windows.Forms.PictureBox(); this.showOldKeyPictureBox = new System.Windows.Forms.PictureBox();
this.oldKeyTextBox = new System.Windows.Forms.PlaceholderTextBox();
this.newKeyTextBox = new System.Windows.Forms.PlaceholderTextBox();
this.statusLabel = new System.Windows.Forms.Label(); this.statusLabel = new System.Windows.Forms.Label();
this.changeKeyFormToolTip = new System.Windows.Forms.ToolTip(this.components); this.changeKeyFormToolTip = new System.Windows.Forms.ToolTip(this.components);
this.passwordGeneratorButton = new System.Windows.Forms.Button(); this.passwordGeneratorButton = new System.Windows.Forms.Button();
this.oldKeyTextBox = new System.Windows.Forms.PlaceholderTextBox();
this.newKeyTextBox = new System.Windows.Forms.PlaceholderTextBox();
this.mainPanel.SuspendLayout(); this.mainPanel.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.lockPictureBox)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.lockPictureBox)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.showNewKeyPictureBox)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.showNewKeyPictureBox)).BeginInit();
@ -49,7 +49,6 @@ private void InitializeComponent()
// acceptButton // acceptButton
// //
this.acceptButton.Enabled = false; this.acceptButton.Enabled = false;
this.acceptButton.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.acceptButton.Location = new System.Drawing.Point(211, 80); this.acceptButton.Location = new System.Drawing.Point(211, 80);
this.acceptButton.Name = "acceptButton"; this.acceptButton.Name = "acceptButton";
this.acceptButton.Size = new System.Drawing.Size(53, 25); this.acceptButton.Size = new System.Drawing.Size(53, 25);
@ -79,7 +78,7 @@ private void InitializeComponent()
this.lockPictureBox.Image = global::Crypto_Notepad.Properties.Resources.gnupg_keys; this.lockPictureBox.Image = global::Crypto_Notepad.Properties.Resources.gnupg_keys;
this.lockPictureBox.Location = new System.Drawing.Point(8, 14); this.lockPictureBox.Location = new System.Drawing.Point(8, 14);
this.lockPictureBox.Name = "lockPictureBox"; this.lockPictureBox.Name = "lockPictureBox";
this.lockPictureBox.Size = new System.Drawing.Size(48, 48); this.lockPictureBox.Size = new System.Drawing.Size(47, 47);
this.lockPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; this.lockPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
this.lockPictureBox.TabIndex = 7; this.lockPictureBox.TabIndex = 7;
this.lockPictureBox.TabStop = false; this.lockPictureBox.TabStop = false;
@ -91,7 +90,7 @@ private void InitializeComponent()
this.showNewKeyPictureBox.Image = global::Crypto_Notepad.Properties.Resources.eye_half; this.showNewKeyPictureBox.Image = global::Crypto_Notepad.Properties.Resources.eye_half;
this.showNewKeyPictureBox.Location = new System.Drawing.Point(269, 39); this.showNewKeyPictureBox.Location = new System.Drawing.Point(269, 39);
this.showNewKeyPictureBox.Name = "showNewKeyPictureBox"; this.showNewKeyPictureBox.Name = "showNewKeyPictureBox";
this.showNewKeyPictureBox.Size = new System.Drawing.Size(19, 23); this.showNewKeyPictureBox.Size = new System.Drawing.Size(18, 22);
this.showNewKeyPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; this.showNewKeyPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
this.showNewKeyPictureBox.TabIndex = 5; this.showNewKeyPictureBox.TabIndex = 5;
this.showNewKeyPictureBox.TabStop = false; this.showNewKeyPictureBox.TabStop = false;
@ -104,12 +103,40 @@ private void InitializeComponent()
this.showOldKeyPictureBox.Image = global::Crypto_Notepad.Properties.Resources.eye_half; this.showOldKeyPictureBox.Image = global::Crypto_Notepad.Properties.Resources.eye_half;
this.showOldKeyPictureBox.Location = new System.Drawing.Point(269, 14); this.showOldKeyPictureBox.Location = new System.Drawing.Point(269, 14);
this.showOldKeyPictureBox.Name = "showOldKeyPictureBox"; this.showOldKeyPictureBox.Name = "showOldKeyPictureBox";
this.showOldKeyPictureBox.Size = new System.Drawing.Size(19, 23); this.showOldKeyPictureBox.Size = new System.Drawing.Size(18, 22);
this.showOldKeyPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; this.showOldKeyPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
this.showOldKeyPictureBox.TabIndex = 5; this.showOldKeyPictureBox.TabIndex = 5;
this.showOldKeyPictureBox.TabStop = false; this.showOldKeyPictureBox.TabStop = false;
this.showOldKeyPictureBox.Click += new System.EventHandler(this.ShowOldKeyPictureBox_Click); this.showOldKeyPictureBox.Click += new System.EventHandler(this.ShowOldKeyPictureBox_Click);
// //
// oldKeyTextBox
//
this.oldKeyTextBox.Location = new System.Drawing.Point(64, 14);
this.oldKeyTextBox.Name = "oldKeyTextBox";
this.oldKeyTextBox.Placeholder = "Old password";
this.oldKeyTextBox.PlaceholderActiveForeColor = System.Drawing.Color.DarkGray;
this.oldKeyTextBox.PlaceholderFont = new System.Drawing.Font("Segoe UI", 8.25F);
this.oldKeyTextBox.PlaceholderForeColor = System.Drawing.Color.DarkGray;
this.oldKeyTextBox.Size = new System.Drawing.Size(206, 22);
this.oldKeyTextBox.TabIndex = 0;
this.oldKeyTextBox.UseSystemPasswordChar = true;
this.oldKeyTextBox.TextChanged += new System.EventHandler(this.OldKeyTextBox_TextChanged);
this.oldKeyTextBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.OldKeyTextBox_KeyDown);
//
// newKeyTextBox
//
this.newKeyTextBox.Location = new System.Drawing.Point(64, 39);
this.newKeyTextBox.Name = "newKeyTextBox";
this.newKeyTextBox.Placeholder = "New password";
this.newKeyTextBox.PlaceholderActiveForeColor = System.Drawing.Color.DarkGray;
this.newKeyTextBox.PlaceholderFont = new System.Drawing.Font("Segoe UI", 8.25F);
this.newKeyTextBox.PlaceholderForeColor = System.Drawing.Color.DarkGray;
this.newKeyTextBox.Size = new System.Drawing.Size(206, 22);
this.newKeyTextBox.TabIndex = 1;
this.newKeyTextBox.UseSystemPasswordChar = true;
this.newKeyTextBox.TextChanged += new System.EventHandler(this.NewKeyTextBox_TextChanged);
this.newKeyTextBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.NewKeyTextBox_KeyDown);
//
// statusLabel // statusLabel
// //
this.statusLabel.AutoSize = true; this.statusLabel.AutoSize = true;
@ -132,36 +159,6 @@ private void InitializeComponent()
this.passwordGeneratorButton.UseVisualStyleBackColor = true; this.passwordGeneratorButton.UseVisualStyleBackColor = true;
this.passwordGeneratorButton.Click += new System.EventHandler(this.PasswordGeneratorButton_Click); this.passwordGeneratorButton.Click += new System.EventHandler(this.PasswordGeneratorButton_Click);
// //
// oldKeyTextBox
//
this.oldKeyTextBox.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.oldKeyTextBox.Location = new System.Drawing.Point(64, 14);
this.oldKeyTextBox.Name = "oldKeyTextBox";
this.oldKeyTextBox.Placeholder = "Old password";
this.oldKeyTextBox.PlaceholderActiveForeColor = System.Drawing.Color.DarkGray;
this.oldKeyTextBox.PlaceholderFont = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.oldKeyTextBox.PlaceholderForeColor = System.Drawing.Color.DarkGray;
this.oldKeyTextBox.Size = new System.Drawing.Size(206, 23);
this.oldKeyTextBox.TabIndex = 0;
this.oldKeyTextBox.UseSystemPasswordChar = true;
this.oldKeyTextBox.TextChanged += new System.EventHandler(this.OldKeyTextBox_TextChanged);
this.oldKeyTextBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.OldKeyTextBox_KeyDown);
//
// newKeyTextBox
//
this.newKeyTextBox.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.newKeyTextBox.Location = new System.Drawing.Point(64, 39);
this.newKeyTextBox.Name = "newKeyTextBox";
this.newKeyTextBox.Placeholder = "New password";
this.newKeyTextBox.PlaceholderActiveForeColor = System.Drawing.Color.DarkGray;
this.newKeyTextBox.PlaceholderFont = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.newKeyTextBox.PlaceholderForeColor = System.Drawing.Color.DarkGray;
this.newKeyTextBox.Size = new System.Drawing.Size(206, 23);
this.newKeyTextBox.TabIndex = 1;
this.newKeyTextBox.UseSystemPasswordChar = true;
this.newKeyTextBox.TextChanged += new System.EventHandler(this.NewKeyTextBox_TextChanged);
this.newKeyTextBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.NewKeyTextBox_KeyDown);
//
// ChangePasswordForm // ChangePasswordForm
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);

View file

@ -46,7 +46,6 @@ private void InitializeComponent()
// okButton // okButton
// //
this.okButton.Enabled = false; this.okButton.Enabled = false;
this.okButton.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.okButton.Location = new System.Drawing.Point(211, 80); this.okButton.Location = new System.Drawing.Point(211, 80);
this.okButton.Name = "okButton"; this.okButton.Name = "okButton";
this.okButton.Size = new System.Drawing.Size(53, 25); this.okButton.Size = new System.Drawing.Size(53, 25);
@ -75,7 +74,7 @@ private void InitializeComponent()
this.lockPictureBox.Image = global::Crypto_Notepad.Properties.Resources.key_solid; this.lockPictureBox.Image = global::Crypto_Notepad.Properties.Resources.key_solid;
this.lockPictureBox.Location = new System.Drawing.Point(8, 14); this.lockPictureBox.Location = new System.Drawing.Point(8, 14);
this.lockPictureBox.Name = "lockPictureBox"; this.lockPictureBox.Name = "lockPictureBox";
this.lockPictureBox.Size = new System.Drawing.Size(48, 48); this.lockPictureBox.Size = new System.Drawing.Size(47, 47);
this.lockPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; this.lockPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
this.lockPictureBox.TabIndex = 6; this.lockPictureBox.TabIndex = 6;
this.lockPictureBox.TabStop = false; this.lockPictureBox.TabStop = false;
@ -83,7 +82,6 @@ private void InitializeComponent()
// fileNameLabel // fileNameLabel
// //
this.fileNameLabel.AutoEllipsis = true; this.fileNameLabel.AutoEllipsis = true;
this.fileNameLabel.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.fileNameLabel.Location = new System.Drawing.Point(61, 14); this.fileNameLabel.Location = new System.Drawing.Point(61, 14);
this.fileNameLabel.Name = "fileNameLabel"; this.fileNameLabel.Name = "fileNameLabel";
this.fileNameLabel.Size = new System.Drawing.Size(221, 13); this.fileNameLabel.Size = new System.Drawing.Size(221, 13);
@ -93,14 +91,13 @@ private void InitializeComponent()
// //
// keyTextBox // keyTextBox
// //
this.keyTextBox.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.keyTextBox.Location = new System.Drawing.Point(64, 39); this.keyTextBox.Location = new System.Drawing.Point(64, 39);
this.keyTextBox.Name = "keyTextBox"; this.keyTextBox.Name = "keyTextBox";
this.keyTextBox.Placeholder = "Password"; this.keyTextBox.Placeholder = "Password";
this.keyTextBox.PlaceholderActiveForeColor = System.Drawing.Color.DarkGray; this.keyTextBox.PlaceholderActiveForeColor = System.Drawing.Color.DarkGray;
this.keyTextBox.PlaceholderFont = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.keyTextBox.PlaceholderFont = new System.Drawing.Font("Segoe UI", 8.25F);
this.keyTextBox.PlaceholderForeColor = System.Drawing.Color.DarkGray; this.keyTextBox.PlaceholderForeColor = System.Drawing.Color.DarkGray;
this.keyTextBox.Size = new System.Drawing.Size(206, 23); this.keyTextBox.Size = new System.Drawing.Size(206, 22);
this.keyTextBox.TabIndex = 0; this.keyTextBox.TabIndex = 0;
this.keyTextBox.UseSystemPasswordChar = true; this.keyTextBox.UseSystemPasswordChar = true;
this.keyTextBox.TextChanged += new System.EventHandler(this.KeyTextBox_TextChanged); this.keyTextBox.TextChanged += new System.EventHandler(this.KeyTextBox_TextChanged);
@ -114,7 +111,7 @@ private void InitializeComponent()
this.showKeyPictureBox.InitialImage = global::Crypto_Notepad.Properties.Resources.eye_half; this.showKeyPictureBox.InitialImage = global::Crypto_Notepad.Properties.Resources.eye_half;
this.showKeyPictureBox.Location = new System.Drawing.Point(269, 39); this.showKeyPictureBox.Location = new System.Drawing.Point(269, 39);
this.showKeyPictureBox.Name = "showKeyPictureBox"; this.showKeyPictureBox.Name = "showKeyPictureBox";
this.showKeyPictureBox.Size = new System.Drawing.Size(19, 23); this.showKeyPictureBox.Size = new System.Drawing.Size(18, 22);
this.showKeyPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage; this.showKeyPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
this.showKeyPictureBox.TabIndex = 3; this.showKeyPictureBox.TabIndex = 3;
this.showKeyPictureBox.TabStop = false; this.showKeyPictureBox.TabStop = false;

View file

@ -59,7 +59,6 @@ public void InitializeComponent()
this.clearClipboardMainMenu = new System.Windows.Forms.ToolStripMenuItem(); this.clearClipboardMainMenu = new System.Windows.Forms.ToolStripMenuItem();
this.wordWrapMainMenu = new System.Windows.Forms.ToolStripMenuItem(); this.wordWrapMainMenu = new System.Windows.Forms.ToolStripMenuItem();
this.readOnlyMainMenu = new System.Windows.Forms.ToolStripMenuItem(); this.readOnlyMainMenu = new System.Windows.Forms.ToolStripMenuItem();
this.insertDateTimeMainMenu = new System.Windows.Forms.ToolStripMenuItem();
this.mainMenuSeparator7 = new System.Windows.Forms.ToolStripSeparator(); this.mainMenuSeparator7 = new System.Windows.Forms.ToolStripSeparator();
this.clearMainMenu = new System.Windows.Forms.ToolStripMenuItem(); this.clearMainMenu = new System.Windows.Forms.ToolStripMenuItem();
this.toolsMainMenu = new System.Windows.Forms.ToolStripMenuItem(); this.toolsMainMenu = new System.Windows.Forms.ToolStripMenuItem();
@ -68,7 +67,6 @@ public void InitializeComponent()
this.changePasswordMainMenu = new System.Windows.Forms.ToolStripMenuItem(); this.changePasswordMainMenu = new System.Windows.Forms.ToolStripMenuItem();
this.lockMainMenu = new System.Windows.Forms.ToolStripMenuItem(); this.lockMainMenu = new System.Windows.Forms.ToolStripMenuItem();
this.settingsMainMenu = new System.Windows.Forms.ToolStripMenuItem(); this.settingsMainMenu = new System.Windows.Forms.ToolStripMenuItem();
this.pasteBoardMainMenu = new System.Windows.Forms.ToolStripMenuItem();
this.helpMainMenu = new System.Windows.Forms.ToolStripMenuItem(); this.helpMainMenu = new System.Windows.Forms.ToolStripMenuItem();
this.documentationMainMenu = new System.Windows.Forms.ToolStripMenuItem(); this.documentationMainMenu = new System.Windows.Forms.ToolStripMenuItem();
this.checkForUpdatesMainMenu = new System.Windows.Forms.ToolStripMenuItem(); this.checkForUpdatesMainMenu = new System.Windows.Forms.ToolStripMenuItem();
@ -120,15 +118,10 @@ public void InitializeComponent()
this.statusPanelSizeLabel = new System.Windows.Forms.ToolStripStatusLabel(); this.statusPanelSizeLabel = new System.Windows.Forms.ToolStripStatusLabel();
this.statusPanelReadonlyLabel = new System.Windows.Forms.ToolStripStatusLabel(); this.statusPanelReadonlyLabel = new System.Windows.Forms.ToolStripStatusLabel();
this.statusPanelWordwrapLabel = new System.Windows.Forms.ToolStripStatusLabel(); this.statusPanelWordwrapLabel = new System.Windows.Forms.ToolStripStatusLabel();
this.statusPanelPasteboardLabel = new System.Windows.Forms.ToolStripStatusLabel();
this.statusPanelClipboardProgressBar = new System.Windows.Forms.ToolStripProgressBar(); this.statusPanelClipboardProgressBar = new System.Windows.Forms.ToolStripProgressBar();
this.trayIcon = new System.Windows.Forms.NotifyIcon(this.components); this.trayIcon = new System.Windows.Forms.NotifyIcon(this.components);
this.trayMenu = new System.Windows.Forms.ContextMenuStrip(this.components); this.trayMenu = new System.Windows.Forms.ContextMenuStrip(this.components);
this.settingsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.showTrayMenu = new System.Windows.Forms.ToolStripMenuItem();
this.resetWindowLocationTrayMenu = new System.Windows.Forms.ToolStripMenuItem();
this.showWindowTrayMenu = new System.Windows.Forms.ToolStripMenuItem();
this.hideWindowTrayMenu = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
this.exitTrayMenu = new System.Windows.Forms.ToolStripMenuItem(); this.exitTrayMenu = new System.Windows.Forms.ToolStripMenuItem();
this.fileLockedPanel = new System.Windows.Forms.Panel(); this.fileLockedPanel = new System.Windows.Forms.Panel();
this.fileLockedCloseButton = new System.Windows.Forms.Button(); this.fileLockedCloseButton = new System.Windows.Forms.Button();
@ -142,7 +135,6 @@ public void InitializeComponent()
this.statusPanelTimer = new System.Windows.Forms.Timer(this.components); this.statusPanelTimer = new System.Windows.Forms.Timer(this.components);
this.lockTimer = new System.Windows.Forms.Timer(this.components); this.lockTimer = new System.Windows.Forms.Timer(this.components);
this.clipboardTimer = new System.Windows.Forms.Timer(this.components); this.clipboardTimer = new System.Windows.Forms.Timer(this.components);
this.pasteBoardTimer = new System.Windows.Forms.Timer(this.components);
this.mainMenu.SuspendLayout(); this.mainMenu.SuspendLayout();
this.contextMenu.SuspendLayout(); this.contextMenu.SuspendLayout();
this.searchPanel.SuspendLayout(); this.searchPanel.SuspendLayout();
@ -180,7 +172,7 @@ public void InitializeComponent()
this.mainMenu.Location = new System.Drawing.Point(0, 0); this.mainMenu.Location = new System.Drawing.Point(0, 0);
this.mainMenu.Name = "mainMenu"; this.mainMenu.Name = "mainMenu";
this.mainMenu.Padding = new System.Windows.Forms.Padding(0); this.mainMenu.Padding = new System.Windows.Forms.Padding(0);
this.mainMenu.Size = new System.Drawing.Size(593, 24); this.mainMenu.Size = new System.Drawing.Size(544, 24);
this.mainMenu.TabIndex = 0; this.mainMenu.TabIndex = 0;
this.mainMenu.Text = "menuStrip1"; this.mainMenu.Text = "menuStrip1";
// //
@ -315,7 +307,6 @@ public void InitializeComponent()
this.clearClipboardMainMenu, this.clearClipboardMainMenu,
this.wordWrapMainMenu, this.wordWrapMainMenu,
this.readOnlyMainMenu, this.readOnlyMainMenu,
this.insertDateTimeMainMenu,
this.mainMenuSeparator7, this.mainMenuSeparator7,
this.clearMainMenu}); this.clearMainMenu});
this.editMainMenu.ForeColor = System.Drawing.SystemColors.ControlText; this.editMainMenu.ForeColor = System.Drawing.SystemColors.ControlText;
@ -436,14 +427,6 @@ public void InitializeComponent()
this.readOnlyMainMenu.Text = "Readonly"; this.readOnlyMainMenu.Text = "Readonly";
this.readOnlyMainMenu.Click += new System.EventHandler(this.ReadOnlyMainMenu_Click); this.readOnlyMainMenu.Click += new System.EventHandler(this.ReadOnlyMainMenu_Click);
// //
// insertDateTimeMainMenu
//
this.insertDateTimeMainMenu.Name = "insertDateTimeMainMenu";
this.insertDateTimeMainMenu.ShortcutKeys = System.Windows.Forms.Keys.F5;
this.insertDateTimeMainMenu.Size = new System.Drawing.Size(198, 22);
this.insertDateTimeMainMenu.Text = "Insert Date Time";
this.insertDateTimeMainMenu.Click += new System.EventHandler(this.InsertDateTimeMainMenu_Click);
//
// mainMenuSeparator7 // mainMenuSeparator7
// //
this.mainMenuSeparator7.Name = "mainMenuSeparator7"; this.mainMenuSeparator7.Name = "mainMenuSeparator7";
@ -464,8 +447,7 @@ public void InitializeComponent()
this.passwordGeneratorMainMenu, this.passwordGeneratorMainMenu,
this.changePasswordMainMenu, this.changePasswordMainMenu,
this.lockMainMenu, this.lockMainMenu,
this.settingsMainMenu, this.settingsMainMenu});
this.pasteBoardMainMenu});
this.toolsMainMenu.ForeColor = System.Drawing.SystemColors.ControlText; this.toolsMainMenu.ForeColor = System.Drawing.SystemColors.ControlText;
this.toolsMainMenu.Name = "toolsMainMenu"; this.toolsMainMenu.Name = "toolsMainMenu";
this.toolsMainMenu.Size = new System.Drawing.Size(46, 24); this.toolsMainMenu.Size = new System.Drawing.Size(46, 24);
@ -477,7 +459,7 @@ public void InitializeComponent()
this.alwaysOnTopMainMenu.CheckOnClick = true; this.alwaysOnTopMainMenu.CheckOnClick = true;
this.alwaysOnTopMainMenu.Name = "alwaysOnTopMainMenu"; this.alwaysOnTopMainMenu.Name = "alwaysOnTopMainMenu";
this.alwaysOnTopMainMenu.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.T))); this.alwaysOnTopMainMenu.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.T)));
this.alwaysOnTopMainMenu.Size = new System.Drawing.Size(245, 22); this.alwaysOnTopMainMenu.Size = new System.Drawing.Size(241, 22);
this.alwaysOnTopMainMenu.Text = "Always on Top"; this.alwaysOnTopMainMenu.Text = "Always on Top";
this.alwaysOnTopMainMenu.Click += new System.EventHandler(this.AlwaysOnTopMainMenu_Click); this.alwaysOnTopMainMenu.Click += new System.EventHandler(this.AlwaysOnTopMainMenu_Click);
// //
@ -485,7 +467,7 @@ public void InitializeComponent()
// //
this.passwordGeneratorMainMenu.Name = "passwordGeneratorMainMenu"; this.passwordGeneratorMainMenu.Name = "passwordGeneratorMainMenu";
this.passwordGeneratorMainMenu.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.P))); this.passwordGeneratorMainMenu.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.P)));
this.passwordGeneratorMainMenu.Size = new System.Drawing.Size(245, 22); this.passwordGeneratorMainMenu.Size = new System.Drawing.Size(241, 22);
this.passwordGeneratorMainMenu.Text = "Password Generator"; this.passwordGeneratorMainMenu.Text = "Password Generator";
this.passwordGeneratorMainMenu.Click += new System.EventHandler(this.PasswordGeneratorMainMenu_Click); this.passwordGeneratorMainMenu.Click += new System.EventHandler(this.PasswordGeneratorMainMenu_Click);
// //
@ -494,7 +476,7 @@ public void InitializeComponent()
this.changePasswordMainMenu.Name = "changePasswordMainMenu"; this.changePasswordMainMenu.Name = "changePasswordMainMenu";
this.changePasswordMainMenu.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift) this.changePasswordMainMenu.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift)
| System.Windows.Forms.Keys.P))); | System.Windows.Forms.Keys.P)));
this.changePasswordMainMenu.Size = new System.Drawing.Size(245, 22); this.changePasswordMainMenu.Size = new System.Drawing.Size(241, 22);
this.changePasswordMainMenu.Text = "Change Password"; this.changePasswordMainMenu.Text = "Change Password";
this.changePasswordMainMenu.Click += new System.EventHandler(this.ChangePasswordMainMenu_Click); this.changePasswordMainMenu.Click += new System.EventHandler(this.ChangePasswordMainMenu_Click);
// //
@ -502,7 +484,7 @@ public void InitializeComponent()
// //
this.lockMainMenu.Name = "lockMainMenu"; this.lockMainMenu.Name = "lockMainMenu";
this.lockMainMenu.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.L))); this.lockMainMenu.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.L)));
this.lockMainMenu.Size = new System.Drawing.Size(245, 22); this.lockMainMenu.Size = new System.Drawing.Size(241, 22);
this.lockMainMenu.Text = "Lock"; this.lockMainMenu.Text = "Lock";
this.lockMainMenu.Click += new System.EventHandler(this.LockMainMenu_Click); this.lockMainMenu.Click += new System.EventHandler(this.LockMainMenu_Click);
// //
@ -512,20 +494,10 @@ public void InitializeComponent()
this.settingsMainMenu.ShortcutKeyDisplayString = ""; this.settingsMainMenu.ShortcutKeyDisplayString = "";
this.settingsMainMenu.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift) this.settingsMainMenu.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift)
| System.Windows.Forms.Keys.T))); | System.Windows.Forms.Keys.T)));
this.settingsMainMenu.Size = new System.Drawing.Size(245, 22); this.settingsMainMenu.Size = new System.Drawing.Size(241, 22);
this.settingsMainMenu.Text = "Settings"; this.settingsMainMenu.Text = "Settings";
this.settingsMainMenu.Click += new System.EventHandler(this.SettingsMainMenu_Click); this.settingsMainMenu.Click += new System.EventHandler(this.SettingsMainMenu_Click);
// //
// pasteBoardMainMenu
//
this.pasteBoardMainMenu.CheckOnClick = true;
this.pasteBoardMainMenu.Name = "pasteBoardMainMenu";
this.pasteBoardMainMenu.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift)
| System.Windows.Forms.Keys.P)));
this.pasteBoardMainMenu.Size = new System.Drawing.Size(245, 22);
this.pasteBoardMainMenu.Text = "Use as Paste Board";
this.pasteBoardMainMenu.Click += new System.EventHandler(this.PasteBoardMainMenu_Click);
//
// helpMainMenu // helpMainMenu
// //
this.helpMainMenu.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { this.helpMainMenu.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
@ -726,11 +698,11 @@ public void InitializeComponent()
this.searchPanel.Dock = System.Windows.Forms.DockStyle.Bottom; this.searchPanel.Dock = System.Windows.Forms.DockStyle.Bottom;
this.searchPanel.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.searchPanel.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.searchPanel.ForeColor = System.Drawing.Color.Black; this.searchPanel.ForeColor = System.Drawing.Color.Black;
this.searchPanel.Location = new System.Drawing.Point(0, 318); this.searchPanel.Location = new System.Drawing.Point(0, 274);
this.searchPanel.Name = "searchPanel"; this.searchPanel.Name = "searchPanel";
this.searchPanel.RowCount = 1; this.searchPanel.RowCount = 1;
this.searchPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.searchPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.searchPanel.Size = new System.Drawing.Size(593, 25); this.searchPanel.Size = new System.Drawing.Size(544, 25);
this.searchPanel.TabIndex = 17; this.searchPanel.TabIndex = 17;
this.searchPanel.Visible = false; this.searchPanel.Visible = false;
// //
@ -742,7 +714,7 @@ public void InitializeComponent()
this.searchTextBox.ForeColor = System.Drawing.Color.Black; this.searchTextBox.ForeColor = System.Drawing.Color.Black;
this.searchTextBox.Location = new System.Drawing.Point(3, 5); this.searchTextBox.Location = new System.Drawing.Point(3, 5);
this.searchTextBox.Name = "searchTextBox"; this.searchTextBox.Name = "searchTextBox";
this.searchTextBox.Size = new System.Drawing.Size(289, 15); this.searchTextBox.Size = new System.Drawing.Size(240, 15);
this.searchTextBox.TabIndex = 9; this.searchTextBox.TabIndex = 9;
this.searchTextBox.TabStop = false; this.searchTextBox.TabStop = false;
this.searchTextBox.TextChanged += new System.EventHandler(this.SearchTextBox_TextChanged); this.searchTextBox.TextChanged += new System.EventHandler(this.SearchTextBox_TextChanged);
@ -755,7 +727,7 @@ public void InitializeComponent()
this.searchWholeWordCheckBox.Dock = System.Windows.Forms.DockStyle.Fill; this.searchWholeWordCheckBox.Dock = System.Windows.Forms.DockStyle.Fill;
this.searchWholeWordCheckBox.ForeColor = System.Drawing.Color.Black; this.searchWholeWordCheckBox.ForeColor = System.Drawing.Color.Black;
this.searchWholeWordCheckBox.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.searchWholeWordCheckBox.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.searchWholeWordCheckBox.Location = new System.Drawing.Point(402, 3); this.searchWholeWordCheckBox.Location = new System.Drawing.Point(353, 3);
this.searchWholeWordCheckBox.Name = "searchWholeWordCheckBox"; this.searchWholeWordCheckBox.Name = "searchWholeWordCheckBox";
this.searchWholeWordCheckBox.Size = new System.Drawing.Size(94, 19); this.searchWholeWordCheckBox.Size = new System.Drawing.Size(94, 19);
this.searchWholeWordCheckBox.TabIndex = 12; this.searchWholeWordCheckBox.TabIndex = 12;
@ -772,7 +744,7 @@ public void InitializeComponent()
this.searchCaseSensitiveCheckBox.Dock = System.Windows.Forms.DockStyle.Fill; this.searchCaseSensitiveCheckBox.Dock = System.Windows.Forms.DockStyle.Fill;
this.searchCaseSensitiveCheckBox.ForeColor = System.Drawing.Color.Black; this.searchCaseSensitiveCheckBox.ForeColor = System.Drawing.Color.Black;
this.searchCaseSensitiveCheckBox.ImeMode = System.Windows.Forms.ImeMode.NoControl; this.searchCaseSensitiveCheckBox.ImeMode = System.Windows.Forms.ImeMode.NoControl;
this.searchCaseSensitiveCheckBox.Location = new System.Drawing.Point(298, 3); this.searchCaseSensitiveCheckBox.Location = new System.Drawing.Point(249, 3);
this.searchCaseSensitiveCheckBox.Name = "searchCaseSensitiveCheckBox"; this.searchCaseSensitiveCheckBox.Name = "searchCaseSensitiveCheckBox";
this.searchCaseSensitiveCheckBox.Size = new System.Drawing.Size(98, 19); this.searchCaseSensitiveCheckBox.Size = new System.Drawing.Size(98, 19);
this.searchCaseSensitiveCheckBox.TabIndex = 11; this.searchCaseSensitiveCheckBox.TabIndex = 11;
@ -789,7 +761,7 @@ public void InitializeComponent()
this.searchCloseButton.Dock = System.Windows.Forms.DockStyle.Fill; this.searchCloseButton.Dock = System.Windows.Forms.DockStyle.Fill;
this.searchCloseButton.Font = new System.Drawing.Font("Segoe UI Black", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.searchCloseButton.Font = new System.Drawing.Font("Segoe UI Black", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.searchCloseButton.ForeColor = System.Drawing.Color.DarkGray; this.searchCloseButton.ForeColor = System.Drawing.Color.DarkGray;
this.searchCloseButton.Location = new System.Drawing.Point(574, 0); this.searchCloseButton.Location = new System.Drawing.Point(525, 0);
this.searchCloseButton.Name = "searchCloseButton"; this.searchCloseButton.Name = "searchCloseButton";
this.searchCloseButton.Size = new System.Drawing.Size(16, 25); this.searchCloseButton.Size = new System.Drawing.Size(16, 25);
this.searchCloseButton.TabIndex = 16; this.searchCloseButton.TabIndex = 16;
@ -803,7 +775,7 @@ public void InitializeComponent()
this.searchFindNextButton.Cursor = System.Windows.Forms.Cursors.Hand; this.searchFindNextButton.Cursor = System.Windows.Forms.Cursors.Hand;
this.searchFindNextButton.Dock = System.Windows.Forms.DockStyle.Fill; this.searchFindNextButton.Dock = System.Windows.Forms.DockStyle.Fill;
this.searchFindNextButton.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.searchFindNextButton.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.searchFindNextButton.Location = new System.Drawing.Point(502, 0); this.searchFindNextButton.Location = new System.Drawing.Point(453, 0);
this.searchFindNextButton.Name = "searchFindNextButton"; this.searchFindNextButton.Name = "searchFindNextButton";
this.searchFindNextButton.Size = new System.Drawing.Size(66, 25); this.searchFindNextButton.Size = new System.Drawing.Size(66, 25);
this.searchFindNextButton.TabIndex = 17; this.searchFindNextButton.TabIndex = 17;
@ -851,7 +823,7 @@ public void InitializeComponent()
this.toolbarPanel.Name = "toolbarPanel"; this.toolbarPanel.Name = "toolbarPanel";
this.toolbarPanel.RowCount = 1; this.toolbarPanel.RowCount = 1;
this.toolbarPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.toolbarPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
this.toolbarPanel.Size = new System.Drawing.Size(593, 24); this.toolbarPanel.Size = new System.Drawing.Size(544, 24);
this.toolbarPanel.TabIndex = 17; this.toolbarPanel.TabIndex = 17;
this.toolbarPanel.MouseEnter += new System.EventHandler(this.ToolbarPanel_MouseEnter); this.toolbarPanel.MouseEnter += new System.EventHandler(this.ToolbarPanel_MouseEnter);
// //
@ -862,7 +834,7 @@ public void InitializeComponent()
this.closeToolbarButton.Dock = System.Windows.Forms.DockStyle.Fill; this.closeToolbarButton.Dock = System.Windows.Forms.DockStyle.Fill;
this.closeToolbarButton.Font = new System.Drawing.Font("Segoe UI Black", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.closeToolbarButton.Font = new System.Drawing.Font("Segoe UI Black", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.closeToolbarButton.ForeColor = System.Drawing.Color.DarkGray; this.closeToolbarButton.ForeColor = System.Drawing.Color.DarkGray;
this.closeToolbarButton.Location = new System.Drawing.Point(578, 0); this.closeToolbarButton.Location = new System.Drawing.Point(529, 0);
this.closeToolbarButton.Name = "closeToolbarButton"; this.closeToolbarButton.Name = "closeToolbarButton";
this.closeToolbarButton.Size = new System.Drawing.Size(12, 24); this.closeToolbarButton.Size = new System.Drawing.Size(12, 24);
this.closeToolbarButton.TabIndex = 17; this.closeToolbarButton.TabIndex = 17;
@ -1066,13 +1038,12 @@ public void InitializeComponent()
this.statusPanelSizeLabel, this.statusPanelSizeLabel,
this.statusPanelReadonlyLabel, this.statusPanelReadonlyLabel,
this.statusPanelWordwrapLabel, this.statusPanelWordwrapLabel,
this.statusPanelPasteboardLabel,
this.statusPanelClipboardProgressBar}); this.statusPanelClipboardProgressBar});
this.statusPanel.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.Flow; this.statusPanel.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.Flow;
this.statusPanel.Location = new System.Drawing.Point(0, 343); this.statusPanel.Location = new System.Drawing.Point(0, 299);
this.statusPanel.Name = "statusPanel"; this.statusPanel.Name = "statusPanel";
this.statusPanel.ShowItemToolTips = true; this.statusPanel.ShowItemToolTips = true;
this.statusPanel.Size = new System.Drawing.Size(593, 22); this.statusPanel.Size = new System.Drawing.Size(544, 22);
this.statusPanel.SizingGrip = false; this.statusPanel.SizingGrip = false;
this.statusPanel.TabIndex = 18; this.statusPanel.TabIndex = 18;
this.statusPanel.VisibleChanged += new System.EventHandler(this.StatusPanel_VisibleChanged); this.statusPanel.VisibleChanged += new System.EventHandler(this.StatusPanel_VisibleChanged);
@ -1158,17 +1129,6 @@ public void InitializeComponent()
this.statusPanelWordwrapLabel.Size = new System.Drawing.Size(76, 17); this.statusPanelWordwrapLabel.Size = new System.Drawing.Size(76, 17);
this.statusPanelWordwrapLabel.Text = "Word Wrap"; this.statusPanelWordwrapLabel.Text = "Word Wrap";
// //
// statusPanelPasteboardLabel
//
this.statusPanelPasteboardLabel.BorderSides = System.Windows.Forms.ToolStripStatusLabelBorderSides.Right;
this.statusPanelPasteboardLabel.BorderStyle = System.Windows.Forms.Border3DStyle.Etched;
this.statusPanelPasteboardLabel.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
this.statusPanelPasteboardLabel.Name = "statusPanelPasteboardLabel";
this.statusPanelPasteboardLabel.Padding = new System.Windows.Forms.Padding(5, 0, 0, 0);
this.statusPanelPasteboardLabel.Size = new System.Drawing.Size(76, 17);
this.statusPanelPasteboardLabel.Text = "Paste Board";
this.statusPanelPasteboardLabel.Visible = false;
//
// statusPanelClipboardProgressBar // statusPanelClipboardProgressBar
// //
this.statusPanelClipboardProgressBar.Name = "statusPanelClipboardProgressBar"; this.statusPanelClipboardProgressBar.Name = "statusPanelClipboardProgressBar";
@ -1186,58 +1146,24 @@ public void InitializeComponent()
// trayMenu // trayMenu
// //
this.trayMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.trayMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.settingsToolStripMenuItem, this.showTrayMenu,
this.resetWindowLocationTrayMenu,
this.showWindowTrayMenu,
this.hideWindowTrayMenu,
this.toolStripSeparator1,
this.exitTrayMenu}); this.exitTrayMenu});
this.trayMenu.Name = "mnuTray"; this.trayMenu.Name = "mnuTray";
this.trayMenu.Size = new System.Drawing.Size(199, 120); this.trayMenu.Size = new System.Drawing.Size(104, 48);
this.trayMenu.Opening += new System.ComponentModel.CancelEventHandler(this.TrayMenu_Opening);
// //
// settingsToolStripMenuItem // showTrayMenu
// //
this.settingsToolStripMenuItem.Image = global::Crypto_Notepad.Properties.Resources.gear; this.showTrayMenu.Image = global::Crypto_Notepad.Properties.Resources.application_blue;
this.settingsToolStripMenuItem.Name = "settingsToolStripMenuItem"; this.showTrayMenu.Name = "showTrayMenu";
this.settingsToolStripMenuItem.Size = new System.Drawing.Size(198, 22); this.showTrayMenu.Size = new System.Drawing.Size(103, 22);
this.settingsToolStripMenuItem.Text = "Settings"; this.showTrayMenu.Text = "Show";
this.settingsToolStripMenuItem.Click += new System.EventHandler(this.SettingsToolStripMenuItem_Click); this.showTrayMenu.Click += new System.EventHandler(this.ShowTrayMenu_Click);
//
// resetWindowLocationTrayMenu
//
this.resetWindowLocationTrayMenu.Image = global::Crypto_Notepad.Properties.Resources.application_dock_180;
this.resetWindowLocationTrayMenu.Name = "resetWindowLocationTrayMenu";
this.resetWindowLocationTrayMenu.Size = new System.Drawing.Size(198, 22);
this.resetWindowLocationTrayMenu.Text = "Reset Window Location";
this.resetWindowLocationTrayMenu.Click += new System.EventHandler(this.ResetWindowLocationTrayMenu_Click);
//
// showWindowTrayMenu
//
this.showWindowTrayMenu.Image = global::Crypto_Notepad.Properties.Resources.application_blue;
this.showWindowTrayMenu.Name = "showWindowTrayMenu";
this.showWindowTrayMenu.Size = new System.Drawing.Size(198, 22);
this.showWindowTrayMenu.Text = "Show Window";
this.showWindowTrayMenu.Click += new System.EventHandler(this.ShowWindowTrayMenu_Click);
//
// hideWindowTrayMenu
//
this.hideWindowTrayMenu.Image = global::Crypto_Notepad.Properties.Resources.application;
this.hideWindowTrayMenu.Name = "hideWindowTrayMenu";
this.hideWindowTrayMenu.Size = new System.Drawing.Size(198, 22);
this.hideWindowTrayMenu.Text = "Hide Window";
this.hideWindowTrayMenu.Click += new System.EventHandler(this.HideWindowTrayMenu_Click);
//
// toolStripSeparator1
//
this.toolStripSeparator1.Name = "toolStripSeparator1";
this.toolStripSeparator1.Size = new System.Drawing.Size(195, 6);
// //
// exitTrayMenu // exitTrayMenu
// //
this.exitTrayMenu.Image = global::Crypto_Notepad.Properties.Resources.cross_button; this.exitTrayMenu.Image = global::Crypto_Notepad.Properties.Resources.cross_button;
this.exitTrayMenu.Name = "exitTrayMenu"; this.exitTrayMenu.Name = "exitTrayMenu";
this.exitTrayMenu.Size = new System.Drawing.Size(198, 22); this.exitTrayMenu.Size = new System.Drawing.Size(103, 22);
this.exitTrayMenu.Text = "Exit"; this.exitTrayMenu.Text = "Exit";
this.exitTrayMenu.Click += new System.EventHandler(this.ExitTrayMenu_Click); this.exitTrayMenu.Click += new System.EventHandler(this.ExitTrayMenu_Click);
// //
@ -1253,7 +1179,7 @@ public void InitializeComponent()
this.fileLockedPanel.Controls.Add(this.fileLockedLabel); this.fileLockedPanel.Controls.Add(this.fileLockedLabel);
this.fileLockedPanel.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.fileLockedPanel.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.fileLockedPanel.ForeColor = System.Drawing.Color.Azure; this.fileLockedPanel.ForeColor = System.Drawing.Color.Azure;
this.fileLockedPanel.Location = new System.Drawing.Point(160, 71); this.fileLockedPanel.Location = new System.Drawing.Point(136, 49);
this.fileLockedPanel.Name = "fileLockedPanel"; this.fileLockedPanel.Name = "fileLockedPanel";
this.fileLockedPanel.Size = new System.Drawing.Size(261, 91); this.fileLockedPanel.Size = new System.Drawing.Size(261, 91);
this.fileLockedPanel.TabIndex = 20; this.fileLockedPanel.TabIndex = 20;
@ -1346,7 +1272,7 @@ public void InitializeComponent()
this.richTextBoxPanel.Dock = System.Windows.Forms.DockStyle.Fill; this.richTextBoxPanel.Dock = System.Windows.Forms.DockStyle.Fill;
this.richTextBoxPanel.Location = new System.Drawing.Point(0, 48); this.richTextBoxPanel.Location = new System.Drawing.Point(0, 48);
this.richTextBoxPanel.Name = "richTextBoxPanel"; this.richTextBoxPanel.Name = "richTextBoxPanel";
this.richTextBoxPanel.Size = new System.Drawing.Size(593, 270); this.richTextBoxPanel.Size = new System.Drawing.Size(544, 226);
this.richTextBoxPanel.TabIndex = 21; this.richTextBoxPanel.TabIndex = 21;
// //
// richTextBox // richTextBox
@ -1360,7 +1286,7 @@ public void InitializeComponent()
this.richTextBox.ForeColor = System.Drawing.Color.Black; this.richTextBox.ForeColor = System.Drawing.Color.Black;
this.richTextBox.Location = new System.Drawing.Point(0, 0); this.richTextBox.Location = new System.Drawing.Point(0, 0);
this.richTextBox.Name = "richTextBox"; this.richTextBox.Name = "richTextBox";
this.richTextBox.Size = new System.Drawing.Size(591, 268); this.richTextBox.Size = new System.Drawing.Size(542, 224);
this.richTextBox.TabIndex = 16; this.richTextBox.TabIndex = 16;
this.richTextBox.Text = ""; this.richTextBox.Text = "";
this.richTextBox.LinkClicked += new System.Windows.Forms.LinkClickedEventHandler(this.RichTextBox_LinkClicked); this.richTextBox.LinkClicked += new System.Windows.Forms.LinkClickedEventHandler(this.RichTextBox_LinkClicked);
@ -1383,16 +1309,12 @@ public void InitializeComponent()
this.clipboardTimer.Interval = 50; this.clipboardTimer.Interval = 50;
this.clipboardTimer.Tick += new System.EventHandler(this.ClipboardTimer_Tick); this.clipboardTimer.Tick += new System.EventHandler(this.ClipboardTimer_Tick);
// //
// pasteBoardTimer
//
this.pasteBoardTimer.Tick += new System.EventHandler(this.PasteBoardTimer_Tick);
//
// MainForm // MainForm
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.White; this.BackColor = System.Drawing.Color.White;
this.ClientSize = new System.Drawing.Size(593, 365); this.ClientSize = new System.Drawing.Size(544, 321);
this.Controls.Add(this.richTextBoxPanel); this.Controls.Add(this.richTextBoxPanel);
this.Controls.Add(this.searchPanel); this.Controls.Add(this.searchPanel);
this.Controls.Add(this.toolbarPanel); this.Controls.Add(this.toolbarPanel);
@ -1525,7 +1447,7 @@ public void InitializeComponent()
protected internal System.Windows.Forms.PictureBox alwaysOnTopToolbarButton; protected internal System.Windows.Forms.PictureBox alwaysOnTopToolbarButton;
protected internal System.Windows.Forms.ToolTip toolTip; protected internal System.Windows.Forms.ToolTip toolTip;
protected internal System.Windows.Forms.ContextMenuStrip trayMenu; protected internal System.Windows.Forms.ContextMenuStrip trayMenu;
protected internal System.Windows.Forms.ToolStripMenuItem showWindowTrayMenu; protected internal System.Windows.Forms.ToolStripMenuItem showTrayMenu;
protected internal System.Windows.Forms.ToolStripMenuItem exitTrayMenu; protected internal System.Windows.Forms.ToolStripMenuItem exitTrayMenu;
protected internal System.Windows.Forms.PlaceholderTextBox fileLockedKeyTextBox; protected internal System.Windows.Forms.PlaceholderTextBox fileLockedKeyTextBox;
protected internal System.Windows.Forms.Panel richTextBoxPanel; protected internal System.Windows.Forms.Panel richTextBoxPanel;
@ -1551,13 +1473,5 @@ public void InitializeComponent()
private System.Windows.Forms.ToolStripMenuItem clearClipboardMainMenu; private System.Windows.Forms.ToolStripMenuItem clearClipboardMainMenu;
private System.Windows.Forms.ToolStripMenuItem tryToDecryptMainMenu; private System.Windows.Forms.ToolStripMenuItem tryToDecryptMainMenu;
private System.Windows.Forms.PictureBox tryToDecryptToolbarButton; private System.Windows.Forms.PictureBox tryToDecryptToolbarButton;
private System.Windows.Forms.ToolStripMenuItem settingsToolStripMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
private System.Windows.Forms.ToolStripMenuItem resetWindowLocationTrayMenu;
private System.Windows.Forms.ToolStripMenuItem hideWindowTrayMenu;
private System.Windows.Forms.ToolStripMenuItem pasteBoardMainMenu;
private System.Windows.Forms.Timer pasteBoardTimer;
protected internal System.Windows.Forms.ToolStripStatusLabel statusPanelPasteboardLabel;
private System.Windows.Forms.ToolStripMenuItem insertDateTimeMainMenu;
} }
} }

View file

@ -1,5 +1,4 @@
using Crypto_Notepad.Properties; using Crypto_Notepad.Properties;
using Microsoft.Win32;
using System; using System;
using System.ComponentModel; using System.ComponentModel;
using System.Diagnostics; using System.Diagnostics;
@ -24,7 +23,6 @@ public partial class MainForm : Form
bool cancelPressed = false; bool cancelPressed = false;
int findPos = 0; int findPos = 0;
int caretPos; int caretPos;
FormWindowState currentWindowState;
public MainForm() public MainForm()
{ {
InitializeComponent(); InitializeComponent();
@ -45,24 +43,10 @@ protected override void WndProc(ref Message m)
richTextBox.Visible = false; richTextBox.Visible = false;
} }
if (m.Msg == WM_SYSCOMMAND & m.WParam.ToInt32() == SC_RESTORE | m.WParam.ToInt32() == SC_MAXIMIZE & !fileLockedPanel.Visible) if (m.Msg == WM_SYSCOMMAND & m.WParam.ToInt32() == SC_RESTORE | m.WParam.ToInt32() == SC_MAXIMIZE & !fileLockedPanel.Visible)
{
if (!fileLockedPanel.Visible)
{ {
richTextBox.Visible = true; richTextBox.Visible = true;
} }
} }
switch (m.Msg)
{
case WM_SYSCOMMAND:
int command = m.WParam.ToInt32() & 0xfff0;
if (command == SC_MINIMIZE)
{
currentWindowState = WindowState;
}
break;
}
}
catch (OverflowException) catch (OverflowException)
{ {
@ -84,7 +68,6 @@ private async Task DecryptAES()
openFileDialog.FileName = filePath; openFileDialog.FileName = filePath;
mainMenu.Enabled = true; mainMenu.Enabled = true;
toolbarPanel.Enabled = true; toolbarPanel.Enabled = true;
settingsToolStripMenuItem.Enabled = true;
richTextBox.ReadOnly = false; richTextBox.ReadOnly = false;
UseWaitCursor = false; UseWaitCursor = false;
richTextBox.ResumeDrawing(); richTextBox.ResumeDrawing();
@ -100,7 +83,6 @@ private async Task DecryptAES()
{ {
mainMenu.Enabled = false; mainMenu.Enabled = false;
toolbarPanel.Enabled = false; toolbarPanel.Enabled = false;
settingsToolStripMenuItem.Enabled = false;
richTextBox.ReadOnly = true; richTextBox.ReadOnly = true;
string openedFileText = await reader.ReadToEndAsync(); string openedFileText = await reader.ReadToEndAsync();
if (string.IsNullOrEmpty(settings.TheSalt)) if (string.IsNullOrEmpty(settings.TheSalt))
@ -118,7 +100,6 @@ private async Task DecryptAES()
PublicVar.openFileName = Path.GetFileName(filePath); PublicVar.openFileName = Path.GetFileName(filePath);
PublicVar.metadataCorrupt = false; PublicVar.metadataCorrupt = false;
mainMenu.Enabled = true; mainMenu.Enabled = true;
settingsToolStripMenuItem.Enabled = true;
toolbarPanel.Enabled = true; toolbarPanel.Enabled = true;
richTextBox.ReadOnly = false; richTextBox.ReadOnly = false;
UseWaitCursor = false; UseWaitCursor = false;
@ -136,7 +117,6 @@ private async Task DecryptAES()
TypedPassword.Value = null; TypedPassword.Value = null;
StatusPanelFileInfo(); StatusPanelFileInfo();
mainMenu.Enabled = true; mainMenu.Enabled = true;
settingsToolStripMenuItem.Enabled = true;
toolbarPanel.Enabled = true; toolbarPanel.Enabled = true;
richTextBox.ReadOnly = false; richTextBox.ReadOnly = false;
UseWaitCursor = false; UseWaitCursor = false;
@ -163,7 +143,6 @@ private async Task DecryptAES()
{ {
PublicVar.openFileName = Path.GetFileName(filePath); PublicVar.openFileName = Path.GetFileName(filePath);
mainMenu.Enabled = true; mainMenu.Enabled = true;
settingsToolStripMenuItem.Enabled = true;
toolbarPanel.Enabled = true; toolbarPanel.Enabled = true;
richTextBox.ReadOnly = false; richTextBox.ReadOnly = false;
UseWaitCursor = false; UseWaitCursor = false;
@ -509,7 +488,6 @@ private async Task UnlockFile()
fileLockedPanel.Enabled = false; fileLockedPanel.Enabled = false;
TypedPassword.Value = fileLockedKeyTextBox.Text; TypedPassword.Value = fileLockedKeyTextBox.Text;
mainMenu.Enabled = false; mainMenu.Enabled = false;
settingsToolStripMenuItem.Enabled = false;
toolbarPanel.Enabled = false; toolbarPanel.Enabled = false;
using (StreamReader reader = File.OpenText(openFileDialog.FileName)) using (StreamReader reader = File.OpenText(openFileDialog.FileName))
{ {
@ -528,7 +506,6 @@ private async Task UnlockFile()
UseWaitCursor = false; UseWaitCursor = false;
fileLockedPanel.Enabled = true; fileLockedPanel.Enabled = true;
mainMenu.Enabled = true; mainMenu.Enabled = true;
settingsToolStripMenuItem.Enabled = true;
toolbarPanel.Enabled = true; toolbarPanel.Enabled = true;
} }
catch (Exception ex) catch (Exception ex)
@ -587,12 +564,8 @@ private void LoadSettings()
{ {
Location = settings.windowLocation; Location = settings.windowLocation;
} }
if (!Methods.IsOnScreen(this))
{
Location = new Point(1, 1);
}
Size = settings.windowSize; Size = settings.windowSize;
WindowState = settings.windowState;
if (settings.toolbarBorder) if (settings.toolbarBorder)
{ {
toolbarPanel.BorderStyle = BorderStyle.FixedSingle; toolbarPanel.BorderStyle = BorderStyle.FixedSingle;
@ -603,7 +576,7 @@ private void LoadSettings()
} }
TopMost = settings.alwaysOnTop; TopMost = settings.alwaysOnTop;
alwaysOnTopMainMenu.Checked = settings.alwaysOnTop; alwaysOnTopMainMenu.Checked = settings.alwaysOnTop;
if (settings.closeToTray | settings.minimizeToTray | settings.trayMenu) if (settings.closeToTray | settings.minimizeToTray)
{ {
trayIcon.Visible = true; trayIcon.Visible = true;
} }
@ -623,9 +596,8 @@ private void LoadSettings()
statusPanelSizeLabel.Visible = settings.statusPanelSize; statusPanelSizeLabel.Visible = settings.statusPanelSize;
statusPanelReadonlyLabel.Visible = settings.statusPanelReadonly; statusPanelReadonlyLabel.Visible = settings.statusPanelReadonly;
statusPanelWordwrapLabel.Visible = settings.statusPanelWordWrap; statusPanelWordwrapLabel.Visible = settings.statusPanelWordWrap;
statusPanelPasteboardLabel.Visible = settings.statusPanelPasteboard;
richTextBox.WordWrap = settings.editorWrap; richTextBox.WordWrap = settings.editorWrap;
richTextBox.ForeColor = settings.editorForeColor; richTextBox.ForeColor = settings.editroForeColor;
richTextBox.BackColor = settings.editorBackColor; richTextBox.BackColor = settings.editorBackColor;
richTextBox.Font = settings.editorFont; richTextBox.Font = settings.editorFont;
BackColor = settings.editorBackColor; BackColor = settings.editorBackColor;
@ -638,24 +610,6 @@ private void LoadSettings()
searchFindNextButton.ForeColor = settings.searchPanelForeColor; searchFindNextButton.ForeColor = settings.searchPanelForeColor;
searchCloseButton.ForeColor = settings.searchPanelForeColor; searchCloseButton.ForeColor = settings.searchPanelForeColor;
searchPanel.CellBorderStyle = (TableLayoutPanelCellBorderStyle)Enum.Parse(typeof(TableLayoutPanelCellBorderStyle), settings.searchPanelBorder); searchPanel.CellBorderStyle = (TableLayoutPanelCellBorderStyle)Enum.Parse(typeof(TableLayoutPanelCellBorderStyle), settings.searchPanelBorder);
RegistryKey explorerAssociate = Registry.CurrentUser.OpenSubKey(@"Software\Classes\.cnp\", true);
if (settings.explorerAssociate && explorerAssociate == null)
{
Methods.AssociateExtension(Assembly.GetEntryAssembly().Location, "cnp");
}
RegistryKey explorerIntegrate = Registry.CurrentUser.OpenSubKey(@"Software\Classes\*\shell\Crypto Notepad\", true);
if (settings.explorerIntegrate && explorerIntegrate == null)
{
Methods.MenuIntegrate("enable");
}
string shortcutPath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + @"\Microsoft\Windows\SendTo\Crypto Notepad.lnk";
if (settings.explorerSendTo && !File.Exists(shortcutPath))
{
Methods.SendToShortcut();
}
} }
public void MenuIcons(bool menuIcons) public void MenuIcons(bool menuIcons)
@ -681,12 +635,10 @@ public void MenuIcons(bool menuIcons)
clearClipboardMainMenu.Image = Resources.clipboard_minus; clearClipboardMainMenu.Image = Resources.clipboard_minus;
wordWrapMainMenu.Image = Resources.wrap_option; wordWrapMainMenu.Image = Resources.wrap_option;
readOnlyMainMenu.Image = Resources.document_pencil; readOnlyMainMenu.Image = Resources.document_pencil;
insertDateTimeMainMenu.Image = Resources.clock_plus;
clearMainMenu.Image = Resources.document; clearMainMenu.Image = Resources.document;
changePasswordMainMenu.Image = Resources.key; changePasswordMainMenu.Image = Resources.key;
lockMainMenu.Image = Resources.lock_warning; lockMainMenu.Image = Resources.lock_warning;
settingsMainMenu.Image = Resources.gear; settingsMainMenu.Image = Resources.gear;
pasteBoardMainMenu.Image = Resources.clipboard_text;
documentationMainMenu.Image = Resources.document_text; documentationMainMenu.Image = Resources.document_text;
checkForUpdatesMainMenu.Image = Resources.upload_cloud; checkForUpdatesMainMenu.Image = Resources.upload_cloud;
aboutMainMenu.Image = Resources.information; aboutMainMenu.Image = Resources.information;
@ -789,7 +741,6 @@ public void ToolbarIcons(bool oldIcons)
pasteToolbarButton.Image = Resources.old_paste_plain; pasteToolbarButton.Image = Resources.old_paste_plain;
changePasswordToolbarButton.Image = Resources.old_page_white_key; changePasswordToolbarButton.Image = Resources.old_page_white_key;
lockToolbarButton.Image = Resources.old_lock; lockToolbarButton.Image = Resources.old_lock;
insertDateTimeMainMenu.Image = Resources.old_clock_add;
tryToDecryptToolbarButton.Image = Resources.old_lock_edit; tryToDecryptToolbarButton.Image = Resources.old_lock_edit;
settingsToolbarButton.Image = Resources.old_setting_tools; settingsToolbarButton.Image = Resources.old_setting_tools;
alwaysOnTopToolbarButton.Image = Resources.old_application_double; alwaysOnTopToolbarButton.Image = Resources.old_application_double;
@ -806,7 +757,6 @@ public void ToolbarIcons(bool oldIcons)
pasteToolbarButton.Image = Resources.clipboard; pasteToolbarButton.Image = Resources.clipboard;
changePasswordToolbarButton.Image = Resources.key; changePasswordToolbarButton.Image = Resources.key;
lockToolbarButton.Image = Resources.lock_warning; lockToolbarButton.Image = Resources.lock_warning;
insertDateTimeMainMenu.Image = Resources.clock_plus;
tryToDecryptToolbarButton.Image = Resources.lock_pencil; tryToDecryptToolbarButton.Image = Resources.lock_pencil;
settingsToolbarButton.Image = Resources.gear; settingsToolbarButton.Image = Resources.gear;
alwaysOnTopToolbarButton.Image = Resources.applications_blue; alwaysOnTopToolbarButton.Image = Resources.applications_blue;
@ -839,18 +789,6 @@ private void RichTextBox_ModifiedChanged(object sender, EventArgs e)
Text = Text.Replace("*", string.Empty); Text = Text.Replace("*", string.Empty);
} }
} }
//if (richTextBox.Modified == true)
//{
// if (!Text.Contains("*"))
// {
// Text = Text.Insert(0, "*");
// if (string.IsNullOrEmpty(PublicVar.openFileName) & richTextBox.TextLength > 0)
// {
// Text = "Unnamed.cnp" + " " + PublicVar.appName;
// Text = Text.Insert(0, "*");
// }
// }
//}
} }
private void StatusPanel_VisibleChanged(object sender, EventArgs e) private void StatusPanel_VisibleChanged(object sender, EventArgs e)
{ {
@ -862,13 +800,15 @@ private void StatusPanel_VisibleChanged(object sender, EventArgs e)
private void MainForm_Resize(object sender, EventArgs e) private void MainForm_Resize(object sender, EventArgs e)
{ {
if (WindowState == FormWindowState.Minimized & settings.minimizeToTray) if (settings.minimizeToTray)
{
if (WindowState == FormWindowState.Minimized)
{ {
Hide(); Hide();
} }
}
if (WindowState == FormWindowState.Minimized & settings.autoLock & !string.IsNullOrEmpty(PublicVar.password.Get())) if (WindowState == FormWindowState.Minimized & settings.autoLock & !string.IsNullOrEmpty(PublicVar.password.Get()))
{ {
settingsToolStripMenuItem.Enabled = false;
fileLockedPanel.Visible = true; fileLockedPanel.Visible = true;
} }
if (WindowState == FormWindowState.Normal) if (WindowState == FormWindowState.Normal)
@ -918,7 +858,6 @@ private void MainWindow_FormClosing(object sender, FormClosingEventArgs e)
{ {
if (settings.autoLock & !string.IsNullOrEmpty(PublicVar.password.Get())) if (settings.autoLock & !string.IsNullOrEmpty(PublicVar.password.Get()))
{ {
settingsToolStripMenuItem.Enabled = false;
fileLockedPanel.Visible = true; fileLockedPanel.Visible = true;
} }
Hide(); Hide();
@ -983,11 +922,8 @@ private void MainWindow_FormClosing(object sender, FormClosingEventArgs e)
using (StreamWriter writer = new StreamWriter(filePath)) using (StreamWriter writer = new StreamWriter(filePath))
{ {
string encryptedText = richTextBox.Text; string encryptedText = richTextBox.Text;
Task.Run(async () => Task.Run(async () => { encryptedText = await AES.Encrypt(encryptedText, PublicVar.password.Get(), null, settings.HashAlgorithm,
{ Convert.ToInt32(settings.PasswordIterations), Convert.ToInt32(settings.KeySize)); }).Wait();
encryptedText = await AES.Encrypt(encryptedText, PublicVar.password.Get(), null, settings.HashAlgorithm,
Convert.ToInt32(settings.PasswordIterations), Convert.ToInt32(settings.KeySize));
}).Wait();
writer.Write(encryptedText); writer.Write(encryptedText);
writer.Close(); writer.Close();
} }
@ -1034,7 +970,6 @@ private void MainForm_Shown(object sender, EventArgs e)
} }
} }
} }
WindowState = settings.windowState;
} }
private async void MainWindow_Load(object sender, EventArgs e) private async void MainWindow_Load(object sender, EventArgs e)
@ -1047,7 +982,6 @@ private async void MainWindow_Load(object sender, EventArgs e)
ShortcutKeys(settings.shortcutKeys); ShortcutKeys(settings.shortcutKeys);
statusPanelReadonlyLabel.Text = "Readonly: " + readOnlyMainMenu.Checked.ToString(); statusPanelReadonlyLabel.Text = "Readonly: " + readOnlyMainMenu.Checked.ToString();
statusPanelWordwrapLabel.Text = "Word Wrap: " + wordWrapMainMenu.Checked.ToString(); statusPanelWordwrapLabel.Text = "Word Wrap: " + wordWrapMainMenu.Checked.ToString();
statusPanelPasteboardLabel.Text = "Paste Board: " + pasteBoardMainMenu.Checked.ToString();
if (args.Length == 2) /*drag & drop to executable*/ if (args.Length == 2) /*drag & drop to executable*/
{ {
OpenAsotiations(); OpenAsotiations();
@ -1299,7 +1233,6 @@ private async void SaveMainMenu_Click(object sender, EventArgs e)
return; return;
} }
mainMenu.Enabled = false; mainMenu.Enabled = false;
settingsToolStripMenuItem.Enabled = false;
toolbarPanel.Enabled = false; toolbarPanel.Enabled = false;
richTextBox.ReadOnly = true; richTextBox.ReadOnly = true;
richTextBox.SuspendDrawing(); richTextBox.SuspendDrawing();
@ -1317,7 +1250,6 @@ private async void SaveMainMenu_Click(object sender, EventArgs e)
richTextBox.ResumeDrawing(); richTextBox.ResumeDrawing();
UseWaitCursor = false; UseWaitCursor = false;
mainMenu.Enabled = true; mainMenu.Enabled = true;
settingsToolStripMenuItem.Enabled = true;
toolbarPanel.Enabled = true; toolbarPanel.Enabled = true;
richTextBox.ReadOnly = false; richTextBox.ReadOnly = false;
} }
@ -1359,7 +1291,6 @@ private async void SaveAsMainMenu_Click(object sender, EventArgs e)
PublicVar.password.Set(TypedPassword.Value); PublicVar.password.Set(TypedPassword.Value);
filePath = saveFileDialog.FileName; filePath = saveFileDialog.FileName;
mainMenu.Enabled = false; mainMenu.Enabled = false;
settingsToolStripMenuItem.Enabled = false;
toolbarPanel.Enabled = false; toolbarPanel.Enabled = false;
richTextBox.ReadOnly = true; richTextBox.ReadOnly = true;
richTextBox.SuspendDrawing(); richTextBox.SuspendDrawing();
@ -1373,7 +1304,6 @@ private async void SaveAsMainMenu_Click(object sender, EventArgs e)
richTextBox.ResumeDrawing(); richTextBox.ResumeDrawing();
UseWaitCursor = false; UseWaitCursor = false;
mainMenu.Enabled = true; mainMenu.Enabled = true;
settingsToolStripMenuItem.Enabled = true;
toolbarPanel.Enabled = true; toolbarPanel.Enabled = true;
richTextBox.ReadOnly = false; richTextBox.ReadOnly = false;
richTextBox.Modified = false; richTextBox.Modified = false;
@ -1387,7 +1317,6 @@ private async void SaveAsMainMenu_Click(object sender, EventArgs e)
private async void SaveCloseFileMainMenu_Click(object sender, EventArgs e) private async void SaveCloseFileMainMenu_Click(object sender, EventArgs e)
{ {
mainMenu.Enabled = false; mainMenu.Enabled = false;
settingsToolStripMenuItem.Enabled = false;
toolbarPanel.Enabled = false; toolbarPanel.Enabled = false;
richTextBox.SuspendDrawing(); richTextBox.SuspendDrawing();
UseWaitCursor = true; UseWaitCursor = true;
@ -1400,7 +1329,6 @@ private async void SaveCloseFileMainMenu_Click(object sender, EventArgs e)
richTextBox.ResumeDrawing(); richTextBox.ResumeDrawing();
UseWaitCursor = false; UseWaitCursor = false;
mainMenu.Enabled = true; mainMenu.Enabled = true;
settingsToolStripMenuItem.Enabled = true;
toolbarPanel.Enabled = true; toolbarPanel.Enabled = true;
richTextBox.ReadOnly = false; richTextBox.ReadOnly = false;
PublicVar.password.Set(null); PublicVar.password.Set(null);
@ -1529,7 +1457,6 @@ private void ToolsMainMenu_DropDownOpening(object sender, EventArgs e)
{ {
changePasswordMainMenu.Enabled = true; changePasswordMainMenu.Enabled = true;
lockMainMenu.Enabled = true; lockMainMenu.Enabled = true;
} }
} }
@ -1625,22 +1552,6 @@ private void ReadOnlyMainMenu_Click(object sender, EventArgs e)
statusPanelReadonlyLabel.Text = "Readonly: " + readOnlyMainMenu.Checked.ToString(); statusPanelReadonlyLabel.Text = "Readonly: " + readOnlyMainMenu.Checked.ToString();
} }
private void InsertDateTimeMainMenu_Click(object sender, EventArgs e)
{
DateTime now = DateTime.Now;
richTextBox.SelectedText = now.ToString();
richTextBox.Modified = true;
if (!Text.Contains("*"))
{
Text = Text.Insert(0, "*");
if (string.IsNullOrEmpty(PublicVar.openFileName) & richTextBox.TextLength > 0)
{
Text = "Unnamed.cnp" + " " + PublicVar.appName;
Text = Text.Insert(0, "*");
}
}
}
private void WordWrapMainMenu_Click(object sender, EventArgs e) private void WordWrapMainMenu_Click(object sender, EventArgs e)
{ {
richTextBox.WordWrap = wordWrapMainMenu.Checked; richTextBox.WordWrap = wordWrapMainMenu.Checked;
@ -1701,7 +1612,6 @@ private async void LockMainMenu_Click(object sender, EventArgs e)
} }
mainMenu.Enabled = false; mainMenu.Enabled = false;
settingsToolStripMenuItem.Enabled = false;
toolbarPanel.Enabled = false; toolbarPanel.Enabled = false;
richTextBox.SuspendDrawing(); richTextBox.SuspendDrawing();
UseWaitCursor = true; UseWaitCursor = true;
@ -1726,43 +1636,6 @@ private void SettingsMainMenu_Click(object sender, EventArgs e)
} }
/*Tools*/ /*Tools*/
/*Paste Board*/
string clipboardLastText = "";
private void PasteBoardTimer_Tick(object sender, EventArgs e)
{
string clipboardText = Clipboard.GetText();
if (!string.IsNullOrEmpty(clipboardText) && clipboardLastText != clipboardText)
{
clipboardLastText = clipboardText;
if (richTextBox.Text.Length > 0)
{
richTextBox.AppendText("\n\n" + clipboardText);
richTextBox.SelectionStart = richTextBox.Text.Length;
richTextBox.ScrollToCaret();
}
else
{
richTextBox.AppendText(clipboardText);
}
}
}
private void PasteBoardMainMenu_Click(object sender, EventArgs e)
{
if (pasteBoardMainMenu.Checked)
{
Clipboard.Clear();
pasteBoardTimer.Start();
statusPanelPasteboardLabel.Text = "Paste Board: " + pasteBoardMainMenu.Checked.ToString();
}
else
{
pasteBoardTimer.Stop();
statusPanelPasteboardLabel.Text = "Paste Board: " + pasteBoardMainMenu.Checked.ToString();
}
}
/*Paste Board*/
/*Help*/ /*Help*/
private void DocumentationMainMenu_Click(object sender, EventArgs e) private void DocumentationMainMenu_Click(object sender, EventArgs e)
{ {
@ -2146,7 +2019,6 @@ private void FileLockedPanel_VisibleChanged(object sender, EventArgs e)
PublicVar.password.Set(null); PublicVar.password.Set(null);
caretPos = richTextBox.SelectionStart; caretPos = richTextBox.SelectionStart;
richTextBox.Visible = false; richTextBox.Visible = false;
settingsToolStripMenuItem.Enabled = false;
toolbarPanel.Enabled = false; toolbarPanel.Enabled = false;
mainMenu.Enabled = false; mainMenu.Enabled = false;
richTextBox.Clear(); richTextBox.Clear();
@ -2182,7 +2054,6 @@ private async void FileLockedOkButton_Click(object sender, EventArgs e)
private void FileLockedCloseButton_MouseClick(object sender, MouseEventArgs e) private void FileLockedCloseButton_MouseClick(object sender, MouseEventArgs e)
{ {
settingsToolStripMenuItem.Enabled = true;
fileLockedPanel.Visible = false; fileLockedPanel.Visible = false;
Text = PublicVar.appName; Text = PublicVar.appName;
filePath = ""; filePath = "";
@ -2228,76 +2099,23 @@ private void FileLockedCloseButton_MouseLeave(object sender, EventArgs e)
#region Tray #region Tray
private void ResetWindowLocationTrayMenu_Click(object sender, EventArgs e)
{
Location = new Point(1, 1);
}
private void SettingsToolStripMenuItem_Click(object sender, EventArgs e)
{
SettingsForm settingsForm = new SettingsForm
{
Owner = this,
StartPosition = FormStartPosition.CenterScreen
};
settingsForm.ShowDialog();
}
private void TrayIcon_MouseDoubleClick(object sender, MouseEventArgs e) private void TrayIcon_MouseDoubleClick(object sender, MouseEventArgs e)
{ {
if (e.Button == MouseButtons.Left) if (e.Button == MouseButtons.Left)
{ {
if (!Visible) Show();
WindowState = FormWindowState.Normal;
}
}
private void ShowTrayMenu_Click(object sender, EventArgs e)
{ {
Show(); Show();
WindowState = currentWindowState; WindowState = FormWindowState.Normal;
if (!fileLockedPanel.Visible)
{
richTextBox.Visible = true;
}
}
}
}
private void HideWindowTrayMenu_Click(object sender, EventArgs e)
{
currentWindowState = WindowState;
WindowState = FormWindowState.Minimized;
Hide();
}
private void ShowWindowTrayMenu_Click(object sender, EventArgs e)
{
if (!Visible)
{
Show();
WindowState = currentWindowState;
if (!fileLockedPanel.Visible)
{
richTextBox.Visible = true;
}
}
} }
private void ExitTrayMenu_Click(object sender, EventArgs e) private void ExitTrayMenu_Click(object sender, EventArgs e)
{ {
Application.Exit(); Application.Exit();
} }
private void TrayMenu_Opening(object sender, CancelEventArgs e)
{
if (Visible)
{
showWindowTrayMenu.Enabled = false;
}
else
{
showWindowTrayMenu.Enabled = true;
}
if (!Visible)
{
hideWindowTrayMenu.Enabled = false;
}
else
{
hideWindowTrayMenu.Enabled = true;
}
}
#endregion #endregion
@ -2319,14 +2137,8 @@ private void VariablesMainMenu_Click(object sender, EventArgs e)
Debug.WriteLine("metadataCorrupt: " + PublicVar.metadataCorrupt); Debug.WriteLine("metadataCorrupt: " + PublicVar.metadataCorrupt);
#endif #endif
} }
#endregion #endregion
} }
} }

View file

@ -6477,10 +6477,7 @@
<value>1059, 17</value> <value>1059, 17</value>
</metadata> </metadata>
<metadata name="clipboardTimer.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="clipboardTimer.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 56</value> <value>1163, 17</value>
</metadata>
<metadata name="pasteBoardTimer.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>151, 56</value>
</metadata> </metadata>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>99</value> <value>99</value>

View file

@ -63,7 +63,7 @@ private void InitializeComponent()
// //
// passwordsListTextBox // passwordsListTextBox
// //
this.passwordsListTextBox.Font = new System.Drawing.Font("Consolas", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.passwordsListTextBox.Font = new System.Drawing.Font("Consolas", 8.25F);
this.passwordsListTextBox.Location = new System.Drawing.Point(9, 161); this.passwordsListTextBox.Location = new System.Drawing.Point(9, 161);
this.passwordsListTextBox.Multiline = true; this.passwordsListTextBox.Multiline = true;
this.passwordsListTextBox.Name = "passwordsListTextBox"; this.passwordsListTextBox.Name = "passwordsListTextBox";

View file

@ -34,27 +34,24 @@ private void InitializeComponent()
this.colorDialog = new System.Windows.Forms.ColorDialog(); this.colorDialog = new System.Windows.Forms.ColorDialog();
this.settingsTabControl = new System.Windows.Forms.TabControl(); this.settingsTabControl = new System.Windows.Forms.TabControl();
this.generalTabPage = new System.Windows.Forms.TabPage(); this.generalTabPage = new System.Windows.Forms.TabPage();
this.autoLockGroupBox = new System.Windows.Forms.GroupBox();
this.autoLockMinutesLabel = new System.Windows.Forms.Label();
this.autoLockOnMinimizeCheckBox = new System.Windows.Forms.CheckBox();
this.lockTimeoutTextBox = new System.Windows.Forms.PlaceholderTextBox();
this.lockTimeoutLabel = new System.Windows.Forms.Label();
this.integrationGroupBox = new System.Windows.Forms.GroupBox(); this.integrationGroupBox = new System.Windows.Forms.GroupBox();
this.integrateCheckBox = new System.Windows.Forms.CheckBox(); this.integrateCheckBox = new System.Windows.Forms.CheckBox();
this.associateCheckBox = new System.Windows.Forms.CheckBox(); this.associateCheckBox = new System.Windows.Forms.CheckBox();
this.sendToCheckBox = new System.Windows.Forms.CheckBox(); this.sendToCheckBox = new System.Windows.Forms.CheckBox();
this.applicationGroupBox = new System.Windows.Forms.GroupBox(); this.applicationGroupBox = new System.Windows.Forms.GroupBox();
this.trayMenuCheckBox = new System.Windows.Forms.CheckBox();
this.openTxtUnencryptedCheckBox = new System.Windows.Forms.CheckBox();
this.clearClipboardCheckBox = new System.Windows.Forms.CheckBox(); this.clearClipboardCheckBox = new System.Windows.Forms.CheckBox();
this.autoCheckUpdatesCheckBox = new System.Windows.Forms.CheckBox(); this.autoCheckUpdatesCheckBox = new System.Windows.Forms.CheckBox();
this.singleInstanceCheckBox = new System.Windows.Forms.CheckBox(); this.singleInstanceCheckBox = new System.Windows.Forms.CheckBox();
this.closeToTrayCheckBox = new System.Windows.Forms.CheckBox(); this.closeToTrayCheckBox = new System.Windows.Forms.CheckBox();
this.minimizeToTrayCheckBox = new System.Windows.Forms.CheckBox(); this.minimizeToTrayCheckBox = new System.Windows.Forms.CheckBox();
this.autoLockGroupBox = new System.Windows.Forms.GroupBox();
this.autoLockMinutesLabel = new System.Windows.Forms.Label();
this.autoLockOnMinimizeCheckBox = new System.Windows.Forms.CheckBox();
this.lockTimeoutTextBox = new System.Windows.Forms.PlaceholderTextBox();
this.lockTimeoutLabel = new System.Windows.Forms.Label();
this.interfaceTabPage = new System.Windows.Forms.TabPage(); this.interfaceTabPage = new System.Windows.Forms.TabPage();
this.statusPanelGroupBox = new System.Windows.Forms.GroupBox(); this.statusPanelGroupBox = new System.Windows.Forms.GroupBox();
this.statusPanelLabelsGroupBox = new System.Windows.Forms.GroupBox(); this.statusPanelLabelsGroupBox = new System.Windows.Forms.GroupBox();
this.statusPanelPasteboardCheckBox = new System.Windows.Forms.CheckBox();
this.statusPanelClipboardCheckBox = new System.Windows.Forms.CheckBox(); this.statusPanelClipboardCheckBox = new System.Windows.Forms.CheckBox();
this.statusPanelWordwrapCheckBox = new System.Windows.Forms.CheckBox(); this.statusPanelWordwrapCheckBox = new System.Windows.Forms.CheckBox();
this.statusPanelReadonlyCheckBox = new System.Windows.Forms.CheckBox(); this.statusPanelReadonlyCheckBox = new System.Windows.Forms.CheckBox();
@ -67,13 +64,10 @@ private void InitializeComponent()
this.statusPanelFontColorLabel = new System.Windows.Forms.Label(); this.statusPanelFontColorLabel = new System.Windows.Forms.Label();
this.statusPanelBackColor = new System.Windows.Forms.Panel(); this.statusPanelBackColor = new System.Windows.Forms.Panel();
this.statusPanelFontColor = new System.Windows.Forms.Panel(); this.statusPanelFontColor = new System.Windows.Forms.Panel();
this.searchPanelGroupBox = new System.Windows.Forms.GroupBox(); this.mainMenuGroupBox = new System.Windows.Forms.GroupBox();
this.searchBorderComboBox = new System.Windows.Forms.ComboBox(); this.shortcutKeysCheckBox = new System.Windows.Forms.CheckBox();
this.searchBackColorLabel = new System.Windows.Forms.Label(); this.mainMenuCheckBox = new System.Windows.Forms.CheckBox();
this.searchBorderLabel = new System.Windows.Forms.Label(); this.menuIconsCheckBox = new System.Windows.Forms.CheckBox();
this.searchFontColorLabel = new System.Windows.Forms.Label();
this.searchFontColor = new System.Windows.Forms.Panel();
this.searchBackColor = new System.Windows.Forms.Panel();
this.toolbarGroupBox = new System.Windows.Forms.GroupBox(); this.toolbarGroupBox = new System.Windows.Forms.GroupBox();
this.toolbarCloseButtonCheckBox = new System.Windows.Forms.CheckBox(); this.toolbarCloseButtonCheckBox = new System.Windows.Forms.CheckBox();
this.toolbarBorderCheckBox = new System.Windows.Forms.CheckBox(); this.toolbarBorderCheckBox = new System.Windows.Forms.CheckBox();
@ -81,10 +75,13 @@ private void InitializeComponent()
this.toolbarBackColorLabel = new System.Windows.Forms.Label(); this.toolbarBackColorLabel = new System.Windows.Forms.Label();
this.toolbarBackColor = new System.Windows.Forms.Panel(); this.toolbarBackColor = new System.Windows.Forms.Panel();
this.toolbarVisibleCheckBox = new System.Windows.Forms.CheckBox(); this.toolbarVisibleCheckBox = new System.Windows.Forms.CheckBox();
this.mainMenuGroupBox = new System.Windows.Forms.GroupBox(); this.searchPanelGroupBox = new System.Windows.Forms.GroupBox();
this.shortcutKeysCheckBox = new System.Windows.Forms.CheckBox(); this.searchBorderComboBox = new System.Windows.Forms.ComboBox();
this.mainMenuCheckBox = new System.Windows.Forms.CheckBox(); this.searchBackColorLabel = new System.Windows.Forms.Label();
this.menuIconsCheckBox = new System.Windows.Forms.CheckBox(); this.searchBorderLabel = new System.Windows.Forms.Label();
this.searchFontColorLabel = new System.Windows.Forms.Label();
this.searchFontColor = new System.Windows.Forms.Panel();
this.searchBackColor = new System.Windows.Forms.Panel();
this.editorTabPage = new System.Windows.Forms.TabPage(); this.editorTabPage = new System.Windows.Forms.TabPage();
this.clearClipboardTextBox = new System.Windows.Forms.TextBox(); this.clearClipboardTextBox = new System.Windows.Forms.TextBox();
this.clearClipboardLabel = new System.Windows.Forms.Label(); this.clearClipboardLabel = new System.Windows.Forms.Label();
@ -112,17 +109,18 @@ private void InitializeComponent()
this.settingsNavigation = new System.Windows.Forms.ListBox(); this.settingsNavigation = new System.Windows.Forms.ListBox();
this.fontDialog = new System.Windows.Forms.FontDialog(); this.fontDialog = new System.Windows.Forms.FontDialog();
this.settingsToolTip = new System.Windows.Forms.ToolTip(this.components); this.settingsToolTip = new System.Windows.Forms.ToolTip(this.components);
this.openTxtUnencryptedCheckBox = new System.Windows.Forms.CheckBox();
this.settingsTabControl.SuspendLayout(); this.settingsTabControl.SuspendLayout();
this.generalTabPage.SuspendLayout(); this.generalTabPage.SuspendLayout();
this.autoLockGroupBox.SuspendLayout();
this.integrationGroupBox.SuspendLayout(); this.integrationGroupBox.SuspendLayout();
this.applicationGroupBox.SuspendLayout(); this.applicationGroupBox.SuspendLayout();
this.autoLockGroupBox.SuspendLayout();
this.interfaceTabPage.SuspendLayout(); this.interfaceTabPage.SuspendLayout();
this.statusPanelGroupBox.SuspendLayout(); this.statusPanelGroupBox.SuspendLayout();
this.statusPanelLabelsGroupBox.SuspendLayout(); this.statusPanelLabelsGroupBox.SuspendLayout();
this.searchPanelGroupBox.SuspendLayout();
this.toolbarGroupBox.SuspendLayout();
this.mainMenuGroupBox.SuspendLayout(); this.mainMenuGroupBox.SuspendLayout();
this.toolbarGroupBox.SuspendLayout();
this.searchPanelGroupBox.SuspendLayout();
this.editorTabPage.SuspendLayout(); this.editorTabPage.SuspendLayout();
this.encryptionTabPage.SuspendLayout(); this.encryptionTabPage.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
@ -170,6 +168,123 @@ private void InitializeComponent()
this.generalTabPage.TabIndex = 2; this.generalTabPage.TabIndex = 2;
this.generalTabPage.Text = "gen"; this.generalTabPage.Text = "gen";
// //
// integrationGroupBox
//
this.integrationGroupBox.Controls.Add(this.integrateCheckBox);
this.integrationGroupBox.Controls.Add(this.associateCheckBox);
this.integrationGroupBox.Controls.Add(this.sendToCheckBox);
this.integrationGroupBox.Dock = System.Windows.Forms.DockStyle.Top;
this.integrationGroupBox.Location = new System.Drawing.Point(6, 128);
this.integrationGroupBox.Name = "integrationGroupBox";
this.integrationGroupBox.Size = new System.Drawing.Size(312, 102);
this.integrationGroupBox.TabIndex = 2;
this.integrationGroupBox.TabStop = false;
this.integrationGroupBox.Text = "Integration";
//
// integrateCheckBox
//
this.integrateCheckBox.AutoSize = true;
this.integrateCheckBox.Location = new System.Drawing.Point(6, 22);
this.integrateCheckBox.Name = "integrateCheckBox";
this.integrateCheckBox.Size = new System.Drawing.Size(226, 19);
this.integrateCheckBox.TabIndex = 4;
this.integrateCheckBox.Text = "Integrate with windows context menu";
this.integrateCheckBox.UseVisualStyleBackColor = true;
this.integrateCheckBox.Click += new System.EventHandler(this.IntegrateCheckBox_Click);
//
// associateCheckBox
//
this.associateCheckBox.AutoSize = true;
this.associateCheckBox.Location = new System.Drawing.Point(6, 47);
this.associateCheckBox.Name = "associateCheckBox";
this.associateCheckBox.Size = new System.Drawing.Size(219, 19);
this.associateCheckBox.TabIndex = 5;
this.associateCheckBox.Text = "Associate *.cnp files with application";
this.associateCheckBox.UseVisualStyleBackColor = true;
this.associateCheckBox.Click += new System.EventHandler(this.AssociateCheckBox_Click);
//
// sendToCheckBox
//
this.sendToCheckBox.AutoSize = true;
this.sendToCheckBox.Location = new System.Drawing.Point(6, 72);
this.sendToCheckBox.Name = "sendToCheckBox";
this.sendToCheckBox.Size = new System.Drawing.Size(205, 19);
this.sendToCheckBox.TabIndex = 6;
this.sendToCheckBox.Text = "Show in windows \"Send to\" menu";
this.sendToCheckBox.UseVisualStyleBackColor = true;
this.sendToCheckBox.Click += new System.EventHandler(this.SendToCheckBox_Click);
//
// applicationGroupBox
//
this.applicationGroupBox.Controls.Add(this.openTxtUnencryptedCheckBox);
this.applicationGroupBox.Controls.Add(this.clearClipboardCheckBox);
this.applicationGroupBox.Controls.Add(this.autoCheckUpdatesCheckBox);
this.applicationGroupBox.Controls.Add(this.singleInstanceCheckBox);
this.applicationGroupBox.Controls.Add(this.closeToTrayCheckBox);
this.applicationGroupBox.Controls.Add(this.minimizeToTrayCheckBox);
this.applicationGroupBox.Dock = System.Windows.Forms.DockStyle.Top;
this.applicationGroupBox.Location = new System.Drawing.Point(6, 6);
this.applicationGroupBox.Name = "applicationGroupBox";
this.applicationGroupBox.Size = new System.Drawing.Size(312, 122);
this.applicationGroupBox.TabIndex = 1;
this.applicationGroupBox.TabStop = false;
this.applicationGroupBox.Text = "Application";
//
// clearClipboardCheckBox
//
this.clearClipboardCheckBox.AutoSize = true;
this.clearClipboardCheckBox.Location = new System.Drawing.Point(6, 97);
this.clearClipboardCheckBox.Name = "clearClipboardCheckBox";
this.clearClipboardCheckBox.Size = new System.Drawing.Size(168, 19);
this.clearClipboardCheckBox.TabIndex = 4;
this.clearClipboardCheckBox.Text = "Clear clipboard on app exit";
this.clearClipboardCheckBox.UseVisualStyleBackColor = true;
this.clearClipboardCheckBox.Click += new System.EventHandler(this.ClearClipboardCheckBox_Click);
//
// autoCheckUpdatesCheckBox
//
this.autoCheckUpdatesCheckBox.AutoSize = true;
this.autoCheckUpdatesCheckBox.Location = new System.Drawing.Point(124, 22);
this.autoCheckUpdatesCheckBox.Name = "autoCheckUpdatesCheckBox";
this.autoCheckUpdatesCheckBox.Size = new System.Drawing.Size(184, 19);
this.autoCheckUpdatesCheckBox.TabIndex = 2;
this.autoCheckUpdatesCheckBox.Text = "Auto check updates at startup";
this.autoCheckUpdatesCheckBox.UseVisualStyleBackColor = true;
this.autoCheckUpdatesCheckBox.Click += new System.EventHandler(this.AutoCheckUpdatesCheckBox_Click);
//
// singleInstanceCheckBox
//
this.singleInstanceCheckBox.AutoSize = true;
this.singleInstanceCheckBox.Location = new System.Drawing.Point(124, 47);
this.singleInstanceCheckBox.Name = "singleInstanceCheckBox";
this.singleInstanceCheckBox.Size = new System.Drawing.Size(105, 19);
this.singleInstanceCheckBox.TabIndex = 3;
this.singleInstanceCheckBox.Text = "Single instance";
this.singleInstanceCheckBox.UseVisualStyleBackColor = true;
this.singleInstanceCheckBox.Click += new System.EventHandler(this.SingleInstanceCheckBox_Click);
//
// closeToTrayCheckBox
//
this.closeToTrayCheckBox.AutoSize = true;
this.closeToTrayCheckBox.Location = new System.Drawing.Point(6, 47);
this.closeToTrayCheckBox.Name = "closeToTrayCheckBox";
this.closeToTrayCheckBox.Size = new System.Drawing.Size(92, 19);
this.closeToTrayCheckBox.TabIndex = 1;
this.closeToTrayCheckBox.Text = "Close to tray";
this.closeToTrayCheckBox.UseVisualStyleBackColor = true;
this.closeToTrayCheckBox.Click += new System.EventHandler(this.CloseToTrayCheckBox_Click);
//
// minimizeToTrayCheckBox
//
this.minimizeToTrayCheckBox.AutoSize = true;
this.minimizeToTrayCheckBox.Location = new System.Drawing.Point(6, 22);
this.minimizeToTrayCheckBox.Name = "minimizeToTrayCheckBox";
this.minimizeToTrayCheckBox.Size = new System.Drawing.Size(112, 19);
this.minimizeToTrayCheckBox.TabIndex = 0;
this.minimizeToTrayCheckBox.Text = "Minimize to tray";
this.minimizeToTrayCheckBox.UseVisualStyleBackColor = true;
this.minimizeToTrayCheckBox.Click += new System.EventHandler(this.MinimizeToTrayCheckBox_Click);
//
// autoLockGroupBox // autoLockGroupBox
// //
this.autoLockGroupBox.Controls.Add(this.autoLockMinutesLabel); this.autoLockGroupBox.Controls.Add(this.autoLockMinutesLabel);
@ -226,146 +341,6 @@ private void InitializeComponent()
this.lockTimeoutLabel.TabIndex = 7; this.lockTimeoutLabel.TabIndex = 7;
this.lockTimeoutLabel.Text = "If the app is inactive in"; this.lockTimeoutLabel.Text = "If the app is inactive in";
// //
// integrationGroupBox
//
this.integrationGroupBox.Controls.Add(this.integrateCheckBox);
this.integrationGroupBox.Controls.Add(this.associateCheckBox);
this.integrationGroupBox.Controls.Add(this.sendToCheckBox);
this.integrationGroupBox.Dock = System.Windows.Forms.DockStyle.Top;
this.integrationGroupBox.Location = new System.Drawing.Point(6, 128);
this.integrationGroupBox.Name = "integrationGroupBox";
this.integrationGroupBox.Size = new System.Drawing.Size(312, 102);
this.integrationGroupBox.TabIndex = 2;
this.integrationGroupBox.TabStop = false;
this.integrationGroupBox.Text = "Integration";
//
// integrateCheckBox
//
this.integrateCheckBox.AutoSize = true;
this.integrateCheckBox.Location = new System.Drawing.Point(6, 22);
this.integrateCheckBox.Name = "integrateCheckBox";
this.integrateCheckBox.Size = new System.Drawing.Size(226, 19);
this.integrateCheckBox.TabIndex = 4;
this.integrateCheckBox.Text = "Integrate with windows context menu";
this.integrateCheckBox.UseVisualStyleBackColor = true;
this.integrateCheckBox.Click += new System.EventHandler(this.IntegrateCheckBox_Click);
//
// associateCheckBox
//
this.associateCheckBox.AutoSize = true;
this.associateCheckBox.Location = new System.Drawing.Point(6, 47);
this.associateCheckBox.Name = "associateCheckBox";
this.associateCheckBox.Size = new System.Drawing.Size(219, 19);
this.associateCheckBox.TabIndex = 5;
this.associateCheckBox.Text = "Associate *.cnp files with application";
this.associateCheckBox.UseVisualStyleBackColor = true;
this.associateCheckBox.Click += new System.EventHandler(this.AssociateCheckBox_Click);
//
// sendToCheckBox
//
this.sendToCheckBox.AutoSize = true;
this.sendToCheckBox.Location = new System.Drawing.Point(6, 72);
this.sendToCheckBox.Name = "sendToCheckBox";
this.sendToCheckBox.Size = new System.Drawing.Size(205, 19);
this.sendToCheckBox.TabIndex = 6;
this.sendToCheckBox.Text = "Show in windows \"Send to\" menu";
this.sendToCheckBox.UseVisualStyleBackColor = true;
this.sendToCheckBox.Click += new System.EventHandler(this.SendToCheckBox_Click);
//
// applicationGroupBox
//
this.applicationGroupBox.Controls.Add(this.trayMenuCheckBox);
this.applicationGroupBox.Controls.Add(this.openTxtUnencryptedCheckBox);
this.applicationGroupBox.Controls.Add(this.clearClipboardCheckBox);
this.applicationGroupBox.Controls.Add(this.autoCheckUpdatesCheckBox);
this.applicationGroupBox.Controls.Add(this.singleInstanceCheckBox);
this.applicationGroupBox.Controls.Add(this.closeToTrayCheckBox);
this.applicationGroupBox.Controls.Add(this.minimizeToTrayCheckBox);
this.applicationGroupBox.Dock = System.Windows.Forms.DockStyle.Top;
this.applicationGroupBox.Location = new System.Drawing.Point(6, 6);
this.applicationGroupBox.Name = "applicationGroupBox";
this.applicationGroupBox.Size = new System.Drawing.Size(312, 122);
this.applicationGroupBox.TabIndex = 1;
this.applicationGroupBox.TabStop = false;
this.applicationGroupBox.Text = "Application";
//
// trayMenuCheckBox
//
this.trayMenuCheckBox.AutoSize = true;
this.trayMenuCheckBox.Location = new System.Drawing.Point(6, 72);
this.trayMenuCheckBox.Name = "trayMenuCheckBox";
this.trayMenuCheckBox.Size = new System.Drawing.Size(81, 19);
this.trayMenuCheckBox.TabIndex = 10;
this.trayMenuCheckBox.Text = "Tray menu";
this.trayMenuCheckBox.UseVisualStyleBackColor = true;
this.trayMenuCheckBox.Click += new System.EventHandler(this.TrayMenuCheckBox_Click);
//
// openTxtUnencryptedCheckBox
//
this.openTxtUnencryptedCheckBox.AutoSize = true;
this.openTxtUnencryptedCheckBox.Location = new System.Drawing.Point(6, 97);
this.openTxtUnencryptedCheckBox.Name = "openTxtUnencryptedCheckBox";
this.openTxtUnencryptedCheckBox.Size = new System.Drawing.Size(254, 19);
this.openTxtUnencryptedCheckBox.TabIndex = 9;
this.openTxtUnencryptedCheckBox.Text = "Open all files except *.cnp like unencrypted";
this.openTxtUnencryptedCheckBox.UseVisualStyleBackColor = true;
this.openTxtUnencryptedCheckBox.Click += new System.EventHandler(this.OpenTxtUnencryptedCheckBox_Click);
//
// clearClipboardCheckBox
//
this.clearClipboardCheckBox.AutoSize = true;
this.clearClipboardCheckBox.Location = new System.Drawing.Point(124, 72);
this.clearClipboardCheckBox.Name = "clearClipboardCheckBox";
this.clearClipboardCheckBox.Size = new System.Drawing.Size(168, 19);
this.clearClipboardCheckBox.TabIndex = 4;
this.clearClipboardCheckBox.Text = "Clear clipboard on app exit";
this.clearClipboardCheckBox.UseVisualStyleBackColor = true;
this.clearClipboardCheckBox.Click += new System.EventHandler(this.ClearClipboardCheckBox_Click);
//
// autoCheckUpdatesCheckBox
//
this.autoCheckUpdatesCheckBox.AutoSize = true;
this.autoCheckUpdatesCheckBox.Location = new System.Drawing.Point(124, 22);
this.autoCheckUpdatesCheckBox.Name = "autoCheckUpdatesCheckBox";
this.autoCheckUpdatesCheckBox.Size = new System.Drawing.Size(184, 19);
this.autoCheckUpdatesCheckBox.TabIndex = 2;
this.autoCheckUpdatesCheckBox.Text = "Auto check updates at startup";
this.autoCheckUpdatesCheckBox.UseVisualStyleBackColor = true;
this.autoCheckUpdatesCheckBox.Click += new System.EventHandler(this.AutoCheckUpdatesCheckBox_Click);
//
// singleInstanceCheckBox
//
this.singleInstanceCheckBox.AutoSize = true;
this.singleInstanceCheckBox.Location = new System.Drawing.Point(124, 47);
this.singleInstanceCheckBox.Name = "singleInstanceCheckBox";
this.singleInstanceCheckBox.Size = new System.Drawing.Size(105, 19);
this.singleInstanceCheckBox.TabIndex = 3;
this.singleInstanceCheckBox.Text = "Single instance";
this.singleInstanceCheckBox.UseVisualStyleBackColor = true;
this.singleInstanceCheckBox.Click += new System.EventHandler(this.SingleInstanceCheckBox_Click);
//
// closeToTrayCheckBox
//
this.closeToTrayCheckBox.AutoSize = true;
this.closeToTrayCheckBox.Location = new System.Drawing.Point(6, 47);
this.closeToTrayCheckBox.Name = "closeToTrayCheckBox";
this.closeToTrayCheckBox.Size = new System.Drawing.Size(92, 19);
this.closeToTrayCheckBox.TabIndex = 1;
this.closeToTrayCheckBox.Text = "Close to tray";
this.closeToTrayCheckBox.UseVisualStyleBackColor = true;
this.closeToTrayCheckBox.Click += new System.EventHandler(this.CloseToTrayCheckBox_Click);
//
// minimizeToTrayCheckBox
//
this.minimizeToTrayCheckBox.AutoSize = true;
this.minimizeToTrayCheckBox.Location = new System.Drawing.Point(6, 22);
this.minimizeToTrayCheckBox.Name = "minimizeToTrayCheckBox";
this.minimizeToTrayCheckBox.Size = new System.Drawing.Size(112, 19);
this.minimizeToTrayCheckBox.TabIndex = 0;
this.minimizeToTrayCheckBox.Text = "Minimize to tray";
this.minimizeToTrayCheckBox.UseVisualStyleBackColor = true;
this.minimizeToTrayCheckBox.Click += new System.EventHandler(this.MinimizeToTrayCheckBox_Click);
//
// interfaceTabPage // interfaceTabPage
// //
this.interfaceTabPage.AutoScroll = true; this.interfaceTabPage.AutoScroll = true;
@ -393,14 +368,13 @@ private void InitializeComponent()
this.statusPanelGroupBox.Dock = System.Windows.Forms.DockStyle.Top; this.statusPanelGroupBox.Dock = System.Windows.Forms.DockStyle.Top;
this.statusPanelGroupBox.Location = new System.Drawing.Point(6, 263); this.statusPanelGroupBox.Location = new System.Drawing.Point(6, 263);
this.statusPanelGroupBox.Name = "statusPanelGroupBox"; this.statusPanelGroupBox.Name = "statusPanelGroupBox";
this.statusPanelGroupBox.Size = new System.Drawing.Size(295, 205); this.statusPanelGroupBox.Size = new System.Drawing.Size(298, 180);
this.statusPanelGroupBox.TabIndex = 4; this.statusPanelGroupBox.TabIndex = 4;
this.statusPanelGroupBox.TabStop = false; this.statusPanelGroupBox.TabStop = false;
this.statusPanelGroupBox.Text = "Status Panel"; this.statusPanelGroupBox.Text = "Status Panel";
// //
// statusPanelLabelsGroupBox // statusPanelLabelsGroupBox
// //
this.statusPanelLabelsGroupBox.Controls.Add(this.statusPanelPasteboardCheckBox);
this.statusPanelLabelsGroupBox.Controls.Add(this.statusPanelClipboardCheckBox); this.statusPanelLabelsGroupBox.Controls.Add(this.statusPanelClipboardCheckBox);
this.statusPanelLabelsGroupBox.Controls.Add(this.statusPanelWordwrapCheckBox); this.statusPanelLabelsGroupBox.Controls.Add(this.statusPanelWordwrapCheckBox);
this.statusPanelLabelsGroupBox.Controls.Add(this.statusPanelReadonlyCheckBox); this.statusPanelLabelsGroupBox.Controls.Add(this.statusPanelReadonlyCheckBox);
@ -410,22 +384,11 @@ private void InitializeComponent()
this.statusPanelLabelsGroupBox.Controls.Add(this.statusPanelLengthCheckBox); this.statusPanelLabelsGroupBox.Controls.Add(this.statusPanelLengthCheckBox);
this.statusPanelLabelsGroupBox.Location = new System.Drawing.Point(9, 101); this.statusPanelLabelsGroupBox.Location = new System.Drawing.Point(9, 101);
this.statusPanelLabelsGroupBox.Name = "statusPanelLabelsGroupBox"; this.statusPanelLabelsGroupBox.Name = "statusPanelLabelsGroupBox";
this.statusPanelLabelsGroupBox.Size = new System.Drawing.Size(277, 97); this.statusPanelLabelsGroupBox.Size = new System.Drawing.Size(277, 71);
this.statusPanelLabelsGroupBox.TabIndex = 9; this.statusPanelLabelsGroupBox.TabIndex = 9;
this.statusPanelLabelsGroupBox.TabStop = false; this.statusPanelLabelsGroupBox.TabStop = false;
this.statusPanelLabelsGroupBox.Text = "Labels"; this.statusPanelLabelsGroupBox.Text = "Labels";
// //
// statusPanelPasteboardCheckBox
//
this.statusPanelPasteboardCheckBox.AutoSize = true;
this.statusPanelPasteboardCheckBox.Location = new System.Drawing.Point(6, 72);
this.statusPanelPasteboardCheckBox.Name = "statusPanelPasteboardCheckBox";
this.statusPanelPasteboardCheckBox.Size = new System.Drawing.Size(88, 19);
this.statusPanelPasteboardCheckBox.TabIndex = 10;
this.statusPanelPasteboardCheckBox.Text = "Paste Board";
this.statusPanelPasteboardCheckBox.UseVisualStyleBackColor = true;
this.statusPanelPasteboardCheckBox.Click += new System.EventHandler(this.StatusPanelPasteboardCheckBox_Click);
//
// statusPanelClipboardCheckBox // statusPanelClipboardCheckBox
// //
this.statusPanelClipboardCheckBox.AutoSize = true; this.statusPanelClipboardCheckBox.AutoSize = true;
@ -554,83 +517,51 @@ private void InitializeComponent()
this.statusPanelFontColor.TabIndex = 3; this.statusPanelFontColor.TabIndex = 3;
this.statusPanelFontColor.Click += new System.EventHandler(this.StatusPanelFontColor_Click); this.statusPanelFontColor.Click += new System.EventHandler(this.StatusPanelFontColor_Click);
// //
// searchPanelGroupBox // mainMenuGroupBox
// //
this.searchPanelGroupBox.Controls.Add(this.searchBorderComboBox); this.mainMenuGroupBox.Controls.Add(this.shortcutKeysCheckBox);
this.searchPanelGroupBox.Controls.Add(this.searchBackColorLabel); this.mainMenuGroupBox.Controls.Add(this.mainMenuCheckBox);
this.searchPanelGroupBox.Controls.Add(this.searchBorderLabel); this.mainMenuGroupBox.Controls.Add(this.menuIconsCheckBox);
this.searchPanelGroupBox.Controls.Add(this.searchFontColorLabel); this.mainMenuGroupBox.Dock = System.Windows.Forms.DockStyle.Top;
this.searchPanelGroupBox.Controls.Add(this.searchFontColor); this.mainMenuGroupBox.Location = new System.Drawing.Point(6, 6);
this.searchPanelGroupBox.Controls.Add(this.searchBackColor); this.mainMenuGroupBox.Name = "mainMenuGroupBox";
this.searchPanelGroupBox.Dock = System.Windows.Forms.DockStyle.Top; this.mainMenuGroupBox.Size = new System.Drawing.Size(298, 49);
this.searchPanelGroupBox.Location = new System.Drawing.Point(6, 153); this.mainMenuGroupBox.TabIndex = 1;
this.searchPanelGroupBox.Name = "searchPanelGroupBox"; this.mainMenuGroupBox.TabStop = false;
this.searchPanelGroupBox.Size = new System.Drawing.Size(295, 110); this.mainMenuGroupBox.Text = "Main menu";
this.searchPanelGroupBox.TabIndex = 3;
this.searchPanelGroupBox.TabStop = false;
this.searchPanelGroupBox.Text = "Search Panel";
// //
// searchBorderComboBox // shortcutKeysCheckBox
// //
this.searchBorderComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.shortcutKeysCheckBox.AutoSize = true;
this.searchBorderComboBox.FormattingEnabled = true; this.shortcutKeysCheckBox.Location = new System.Drawing.Point(166, 22);
this.searchBorderComboBox.Items.AddRange(new object[] { this.shortcutKeysCheckBox.Name = "shortcutKeysCheckBox";
"None", this.shortcutKeysCheckBox.Size = new System.Drawing.Size(97, 19);
"Single"}); this.shortcutKeysCheckBox.TabIndex = 3;
this.searchBorderComboBox.Location = new System.Drawing.Point(145, 74); this.shortcutKeysCheckBox.Text = "Shortcut keys";
this.searchBorderComboBox.Name = "searchBorderComboBox"; this.shortcutKeysCheckBox.UseVisualStyleBackColor = true;
this.searchBorderComboBox.Size = new System.Drawing.Size(141, 23); this.shortcutKeysCheckBox.Click += new System.EventHandler(this.ShortcutKeysCheckBox_Click);
this.searchBorderComboBox.TabIndex = 7;
this.searchBorderComboBox.DropDownClosed += new System.EventHandler(this.SearchBorderComboBox_DropDownClosed);
// //
// searchBackColorLabel // mainMenuCheckBox
// //
this.searchBackColorLabel.Location = new System.Drawing.Point(6, 16); this.mainMenuCheckBox.AutoSize = true;
this.searchBackColorLabel.Name = "searchBackColorLabel"; this.mainMenuCheckBox.Location = new System.Drawing.Point(6, 22);
this.searchBackColorLabel.Size = new System.Drawing.Size(120, 23); this.mainMenuCheckBox.Name = "mainMenuCheckBox";
this.searchBackColorLabel.TabIndex = 0; this.mainMenuCheckBox.Size = new System.Drawing.Size(60, 19);
this.searchBackColorLabel.Text = "Background color"; this.mainMenuCheckBox.TabIndex = 1;
this.searchBackColorLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; this.mainMenuCheckBox.Text = "Visible";
this.mainMenuCheckBox.UseVisualStyleBackColor = true;
this.mainMenuCheckBox.Click += new System.EventHandler(this.MainMenuCheckBox_Click);
// //
// searchBorderLabel // menuIconsCheckBox
// //
this.searchBorderLabel.AutoSize = true; this.menuIconsCheckBox.AutoSize = true;
this.searchBorderLabel.Location = new System.Drawing.Point(6, 77); this.menuIconsCheckBox.Location = new System.Drawing.Point(72, 22);
this.searchBorderLabel.Name = "searchBorderLabel"; this.menuIconsCheckBox.Name = "menuIconsCheckBox";
this.searchBorderLabel.Size = new System.Drawing.Size(42, 15); this.menuIconsCheckBox.Size = new System.Drawing.Size(88, 19);
this.searchBorderLabel.TabIndex = 4; this.menuIconsCheckBox.TabIndex = 2;
this.searchBorderLabel.Text = "Border"; this.menuIconsCheckBox.Text = "Menu icons";
// this.menuIconsCheckBox.UseVisualStyleBackColor = true;
// searchFontColorLabel this.menuIconsCheckBox.Click += new System.EventHandler(this.MenuIconsCheckBox_Click);
//
this.searchFontColorLabel.Location = new System.Drawing.Point(6, 45);
this.searchFontColorLabel.Name = "searchFontColorLabel";
this.searchFontColorLabel.Size = new System.Drawing.Size(87, 23);
this.searchFontColorLabel.TabIndex = 1;
this.searchFontColorLabel.Text = "Font color";
this.searchFontColorLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// searchFontColor
//
this.searchFontColor.BackColor = System.Drawing.Color.Black;
this.searchFontColor.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.searchFontColor.Cursor = System.Windows.Forms.Cursors.Hand;
this.searchFontColor.Location = new System.Drawing.Point(145, 45);
this.searchFontColor.Name = "searchFontColor";
this.searchFontColor.Size = new System.Drawing.Size(141, 23);
this.searchFontColor.TabIndex = 3;
this.searchFontColor.Click += new System.EventHandler(this.SearchFontColor_Click);
//
// searchBackColor
//
this.searchBackColor.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(240)))), ((int)(((byte)(240)))));
this.searchBackColor.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.searchBackColor.Cursor = System.Windows.Forms.Cursors.Hand;
this.searchBackColor.Location = new System.Drawing.Point(145, 16);
this.searchBackColor.Name = "searchBackColor";
this.searchBackColor.Size = new System.Drawing.Size(141, 23);
this.searchBackColor.TabIndex = 2;
this.searchBackColor.Click += new System.EventHandler(this.SearchBackColor_Click);
// //
// toolbarGroupBox // toolbarGroupBox
// //
@ -643,7 +574,7 @@ private void InitializeComponent()
this.toolbarGroupBox.Dock = System.Windows.Forms.DockStyle.Top; this.toolbarGroupBox.Dock = System.Windows.Forms.DockStyle.Top;
this.toolbarGroupBox.Location = new System.Drawing.Point(6, 55); this.toolbarGroupBox.Location = new System.Drawing.Point(6, 55);
this.toolbarGroupBox.Name = "toolbarGroupBox"; this.toolbarGroupBox.Name = "toolbarGroupBox";
this.toolbarGroupBox.Size = new System.Drawing.Size(295, 98); this.toolbarGroupBox.Size = new System.Drawing.Size(298, 98);
this.toolbarGroupBox.TabIndex = 2; this.toolbarGroupBox.TabIndex = 2;
this.toolbarGroupBox.TabStop = false; this.toolbarGroupBox.TabStop = false;
this.toolbarGroupBox.Text = "Toolbar"; this.toolbarGroupBox.Text = "Toolbar";
@ -712,51 +643,83 @@ private void InitializeComponent()
this.toolbarVisibleCheckBox.UseVisualStyleBackColor = true; this.toolbarVisibleCheckBox.UseVisualStyleBackColor = true;
this.toolbarVisibleCheckBox.Click += new System.EventHandler(this.ToolbarVisibleCheckBox_Click); this.toolbarVisibleCheckBox.Click += new System.EventHandler(this.ToolbarVisibleCheckBox_Click);
// //
// mainMenuGroupBox // searchPanelGroupBox
// //
this.mainMenuGroupBox.Controls.Add(this.shortcutKeysCheckBox); this.searchPanelGroupBox.Controls.Add(this.searchBorderComboBox);
this.mainMenuGroupBox.Controls.Add(this.mainMenuCheckBox); this.searchPanelGroupBox.Controls.Add(this.searchBackColorLabel);
this.mainMenuGroupBox.Controls.Add(this.menuIconsCheckBox); this.searchPanelGroupBox.Controls.Add(this.searchBorderLabel);
this.mainMenuGroupBox.Dock = System.Windows.Forms.DockStyle.Top; this.searchPanelGroupBox.Controls.Add(this.searchFontColorLabel);
this.mainMenuGroupBox.Location = new System.Drawing.Point(6, 6); this.searchPanelGroupBox.Controls.Add(this.searchFontColor);
this.mainMenuGroupBox.Name = "mainMenuGroupBox"; this.searchPanelGroupBox.Controls.Add(this.searchBackColor);
this.mainMenuGroupBox.Size = new System.Drawing.Size(295, 49); this.searchPanelGroupBox.Dock = System.Windows.Forms.DockStyle.Top;
this.mainMenuGroupBox.TabIndex = 1; this.searchPanelGroupBox.Location = new System.Drawing.Point(6, 153);
this.mainMenuGroupBox.TabStop = false; this.searchPanelGroupBox.Name = "searchPanelGroupBox";
this.mainMenuGroupBox.Text = "Main menu"; this.searchPanelGroupBox.Size = new System.Drawing.Size(298, 110);
this.searchPanelGroupBox.TabIndex = 3;
this.searchPanelGroupBox.TabStop = false;
this.searchPanelGroupBox.Text = "Search Panel";
// //
// shortcutKeysCheckBox // searchBorderComboBox
// //
this.shortcutKeysCheckBox.AutoSize = true; this.searchBorderComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.shortcutKeysCheckBox.Location = new System.Drawing.Point(166, 22); this.searchBorderComboBox.FormattingEnabled = true;
this.shortcutKeysCheckBox.Name = "shortcutKeysCheckBox"; this.searchBorderComboBox.Items.AddRange(new object[] {
this.shortcutKeysCheckBox.Size = new System.Drawing.Size(97, 19); "None",
this.shortcutKeysCheckBox.TabIndex = 3; "Single"});
this.shortcutKeysCheckBox.Text = "Shortcut keys"; this.searchBorderComboBox.Location = new System.Drawing.Point(145, 74);
this.shortcutKeysCheckBox.UseVisualStyleBackColor = true; this.searchBorderComboBox.Name = "searchBorderComboBox";
this.shortcutKeysCheckBox.Click += new System.EventHandler(this.ShortcutKeysCheckBox_Click); this.searchBorderComboBox.Size = new System.Drawing.Size(141, 23);
this.searchBorderComboBox.TabIndex = 7;
this.searchBorderComboBox.DropDownClosed += new System.EventHandler(this.SearchBorderComboBox_DropDownClosed);
// //
// mainMenuCheckBox // searchBackColorLabel
// //
this.mainMenuCheckBox.AutoSize = true; this.searchBackColorLabel.Location = new System.Drawing.Point(6, 16);
this.mainMenuCheckBox.Location = new System.Drawing.Point(6, 22); this.searchBackColorLabel.Name = "searchBackColorLabel";
this.mainMenuCheckBox.Name = "mainMenuCheckBox"; this.searchBackColorLabel.Size = new System.Drawing.Size(120, 23);
this.mainMenuCheckBox.Size = new System.Drawing.Size(60, 19); this.searchBackColorLabel.TabIndex = 0;
this.mainMenuCheckBox.TabIndex = 1; this.searchBackColorLabel.Text = "Background color";
this.mainMenuCheckBox.Text = "Visible"; this.searchBackColorLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.mainMenuCheckBox.UseVisualStyleBackColor = true;
this.mainMenuCheckBox.Click += new System.EventHandler(this.MainMenuCheckBox_Click);
// //
// menuIconsCheckBox // searchBorderLabel
// //
this.menuIconsCheckBox.AutoSize = true; this.searchBorderLabel.AutoSize = true;
this.menuIconsCheckBox.Location = new System.Drawing.Point(72, 22); this.searchBorderLabel.Location = new System.Drawing.Point(6, 77);
this.menuIconsCheckBox.Name = "menuIconsCheckBox"; this.searchBorderLabel.Name = "searchBorderLabel";
this.menuIconsCheckBox.Size = new System.Drawing.Size(88, 19); this.searchBorderLabel.Size = new System.Drawing.Size(42, 15);
this.menuIconsCheckBox.TabIndex = 2; this.searchBorderLabel.TabIndex = 4;
this.menuIconsCheckBox.Text = "Menu icons"; this.searchBorderLabel.Text = "Border";
this.menuIconsCheckBox.UseVisualStyleBackColor = true; //
this.menuIconsCheckBox.Click += new System.EventHandler(this.MenuIconsCheckBox_Click); // searchFontColorLabel
//
this.searchFontColorLabel.Location = new System.Drawing.Point(6, 45);
this.searchFontColorLabel.Name = "searchFontColorLabel";
this.searchFontColorLabel.Size = new System.Drawing.Size(87, 23);
this.searchFontColorLabel.TabIndex = 1;
this.searchFontColorLabel.Text = "Font color";
this.searchFontColorLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// searchFontColor
//
this.searchFontColor.BackColor = System.Drawing.Color.Black;
this.searchFontColor.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.searchFontColor.Cursor = System.Windows.Forms.Cursors.Hand;
this.searchFontColor.Location = new System.Drawing.Point(145, 45);
this.searchFontColor.Name = "searchFontColor";
this.searchFontColor.Size = new System.Drawing.Size(141, 23);
this.searchFontColor.TabIndex = 3;
this.searchFontColor.Click += new System.EventHandler(this.SearchFontColor_Click);
//
// searchBackColor
//
this.searchBackColor.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(240)))), ((int)(((byte)(240)))));
this.searchBackColor.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.searchBackColor.Cursor = System.Windows.Forms.Cursors.Hand;
this.searchBackColor.Location = new System.Drawing.Point(145, 16);
this.searchBackColor.Name = "searchBackColor";
this.searchBackColor.Size = new System.Drawing.Size(141, 23);
this.searchBackColor.TabIndex = 2;
this.searchBackColor.Click += new System.EventHandler(this.SearchBackColor_Click);
// //
// editorTabPage // editorTabPage
// //
@ -1074,6 +1037,17 @@ private void InitializeComponent()
this.fontDialog.ShowEffects = false; this.fontDialog.ShowEffects = false;
this.fontDialog.Apply += new System.EventHandler(this.FontDialog_Apply); this.fontDialog.Apply += new System.EventHandler(this.FontDialog_Apply);
// //
// openTxtUnencryptedCheckBox
//
this.openTxtUnencryptedCheckBox.AutoSize = true;
this.openTxtUnencryptedCheckBox.Location = new System.Drawing.Point(6, 72);
this.openTxtUnencryptedCheckBox.Name = "openTxtUnencryptedCheckBox";
this.openTxtUnencryptedCheckBox.Size = new System.Drawing.Size(254, 19);
this.openTxtUnencryptedCheckBox.TabIndex = 9;
this.openTxtUnencryptedCheckBox.Text = "Open all files except *.cnp like unencrypted";
this.openTxtUnencryptedCheckBox.UseVisualStyleBackColor = true;
this.openTxtUnencryptedCheckBox.Click += new System.EventHandler(this.OpenTxtUnencryptedCheckBox_Click);
//
// SettingsForm // SettingsForm
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
@ -1093,23 +1067,23 @@ private void InitializeComponent()
this.Load += new System.EventHandler(this.SettingsForm_Load); this.Load += new System.EventHandler(this.SettingsForm_Load);
this.settingsTabControl.ResumeLayout(false); this.settingsTabControl.ResumeLayout(false);
this.generalTabPage.ResumeLayout(false); this.generalTabPage.ResumeLayout(false);
this.autoLockGroupBox.ResumeLayout(false);
this.autoLockGroupBox.PerformLayout();
this.integrationGroupBox.ResumeLayout(false); this.integrationGroupBox.ResumeLayout(false);
this.integrationGroupBox.PerformLayout(); this.integrationGroupBox.PerformLayout();
this.applicationGroupBox.ResumeLayout(false); this.applicationGroupBox.ResumeLayout(false);
this.applicationGroupBox.PerformLayout(); this.applicationGroupBox.PerformLayout();
this.autoLockGroupBox.ResumeLayout(false);
this.autoLockGroupBox.PerformLayout();
this.interfaceTabPage.ResumeLayout(false); this.interfaceTabPage.ResumeLayout(false);
this.statusPanelGroupBox.ResumeLayout(false); this.statusPanelGroupBox.ResumeLayout(false);
this.statusPanelGroupBox.PerformLayout(); this.statusPanelGroupBox.PerformLayout();
this.statusPanelLabelsGroupBox.ResumeLayout(false); this.statusPanelLabelsGroupBox.ResumeLayout(false);
this.statusPanelLabelsGroupBox.PerformLayout(); this.statusPanelLabelsGroupBox.PerformLayout();
this.searchPanelGroupBox.ResumeLayout(false);
this.searchPanelGroupBox.PerformLayout();
this.toolbarGroupBox.ResumeLayout(false);
this.toolbarGroupBox.PerformLayout();
this.mainMenuGroupBox.ResumeLayout(false); this.mainMenuGroupBox.ResumeLayout(false);
this.mainMenuGroupBox.PerformLayout(); this.mainMenuGroupBox.PerformLayout();
this.toolbarGroupBox.ResumeLayout(false);
this.toolbarGroupBox.PerformLayout();
this.searchPanelGroupBox.ResumeLayout(false);
this.searchPanelGroupBox.PerformLayout();
this.editorTabPage.ResumeLayout(false); this.editorTabPage.ResumeLayout(false);
this.editorTabPage.PerformLayout(); this.editorTabPage.PerformLayout();
this.encryptionTabPage.ResumeLayout(false); this.encryptionTabPage.ResumeLayout(false);
@ -1200,7 +1174,5 @@ private void InitializeComponent()
private System.Windows.Forms.CheckBox clearClipboardCheckBox; private System.Windows.Forms.CheckBox clearClipboardCheckBox;
private System.Windows.Forms.CheckBox shortcutKeysCheckBox; private System.Windows.Forms.CheckBox shortcutKeysCheckBox;
private System.Windows.Forms.CheckBox openTxtUnencryptedCheckBox; private System.Windows.Forms.CheckBox openTxtUnencryptedCheckBox;
private System.Windows.Forms.CheckBox trayMenuCheckBox;
private System.Windows.Forms.CheckBox statusPanelPasteboardCheckBox;
} }
} }

View file

@ -18,7 +18,7 @@ public SettingsForm()
#region Methods #region Methods
private void LoadSettings() private void LoadSettings()
{ {
editorFontColor.BackColor = settings.editorForeColor; editorFontColor.BackColor = settings.editroForeColor;
editorBackColor.BackColor = settings.editorBackColor; editorBackColor.BackColor = settings.editorBackColor;
editorInsertKeyComboBox.Text = settings.insertKey; editorInsertKeyComboBox.Text = settings.insertKey;
if (settings.clipboardClearTime != "") if (settings.clipboardClearTime != "")
@ -40,7 +40,6 @@ private void LoadSettings()
closeToTrayCheckBox.Checked = settings.closeToTray; closeToTrayCheckBox.Checked = settings.closeToTray;
singleInstanceCheckBox.Checked = settings.singleInstance; singleInstanceCheckBox.Checked = settings.singleInstance;
clearClipboardCheckBox.Checked = settings.clearClipboardAtClose; clearClipboardCheckBox.Checked = settings.clearClipboardAtClose;
trayMenuCheckBox.Checked = settings.trayMenu;
integrateCheckBox.Checked = settings.explorerIntegrate; integrateCheckBox.Checked = settings.explorerIntegrate;
associateCheckBox.Checked = settings.explorerAssociate; associateCheckBox.Checked = settings.explorerAssociate;
sendToCheckBox.Checked = settings.explorerSendTo; sendToCheckBox.Checked = settings.explorerSendTo;
@ -65,7 +64,6 @@ private void LoadSettings()
statusPanelSizeCheckBox.Checked = settings.statusPanelSize; statusPanelSizeCheckBox.Checked = settings.statusPanelSize;
statusPanelReadonlyCheckBox.Checked = settings.statusPanelReadonly; statusPanelReadonlyCheckBox.Checked = settings.statusPanelReadonly;
statusPanelWordwrapCheckBox.Checked = settings.statusPanelWordWrap; statusPanelWordwrapCheckBox.Checked = settings.statusPanelWordWrap;
statusPanelPasteboardCheckBox.Checked = settings.statusPanelPasteboard;
statusPanelClipboardCheckBox.Checked = settings.statusPanelClipboard; statusPanelClipboardCheckBox.Checked = settings.statusPanelClipboard;
encryptionHintLabel.Visible = settings.encryptionHint; encryptionHintLabel.Visible = settings.encryptionHint;
} }
@ -153,7 +151,7 @@ private void EditorFontColor_Click(object sender, EventArgs e)
MainForm main = Owner as MainForm; MainForm main = Owner as MainForm;
main.richTextBox.ForeColor = colorDialog.Color; main.richTextBox.ForeColor = colorDialog.Color;
main.richTextBox.SetInnerMargins(Convert.ToInt32(settings.editorPaddingLeft), 0, 0, 0); main.richTextBox.SetInnerMargins(Convert.ToInt32(settings.editorPaddingLeft), 0, 0, 0);
settings.editorForeColor = colorDialog.Color; settings.editroForeColor = colorDialog.Color;
editorFontColor.BackColor = colorDialog.Color; editorFontColor.BackColor = colorDialog.Color;
} }
} }
@ -495,7 +493,7 @@ private void PasswordIterationsTextBox_TextChanged(object sender, EventArgs e)
private void MinimizeToTrayCheckBox_Click(object sender, EventArgs e) private void MinimizeToTrayCheckBox_Click(object sender, EventArgs e)
{ {
MainForm main = Owner as MainForm; MainForm main = Owner as MainForm;
if (closeToTrayCheckBox.Checked == false & minimizeToTrayCheckBox.Checked == false & trayMenuCheckBox.Checked == false) if (closeToTrayCheckBox.Checked == false & minimizeToTrayCheckBox.Checked == false)
{ {
main.trayIcon.Visible = false; main.trayIcon.Visible = false;
} }
@ -509,7 +507,7 @@ private void MinimizeToTrayCheckBox_Click(object sender, EventArgs e)
private void CloseToTrayCheckBox_Click(object sender, EventArgs e) private void CloseToTrayCheckBox_Click(object sender, EventArgs e)
{ {
MainForm main = Owner as MainForm; MainForm main = Owner as MainForm;
if (closeToTrayCheckBox.Checked == false & minimizeToTrayCheckBox.Checked == false & trayMenuCheckBox.Checked == false) if (closeToTrayCheckBox.Checked == false & minimizeToTrayCheckBox.Checked ==false )
{ {
main.trayIcon.Visible = false; main.trayIcon.Visible = false;
} }
@ -595,15 +593,6 @@ private void StatusPanelWordwrapCheckBox_Click(object sender, EventArgs e)
settings.statusPanelWordWrap = statusPanelWordwrapCheckBox.Checked; settings.statusPanelWordWrap = statusPanelWordwrapCheckBox.Checked;
main.StatusPanelFileInfo(); main.StatusPanelFileInfo();
} }
private void StatusPanelPasteboardCheckBox_Click(object sender, EventArgs e)
{
MainForm main = Owner as MainForm;
main.statusPanelPasteboardLabel.Visible = statusPanelPasteboardCheckBox.Checked;
settings.statusPanelPasteboard = statusPanelPasteboardCheckBox.Checked;
main.StatusPanelFileInfo();
}
private void StatusPanelClipboardCheckBox_Click(object sender, EventArgs e) private void StatusPanelClipboardCheckBox_Click(object sender, EventArgs e)
{ {
settings.statusPanelClipboard = statusPanelClipboardCheckBox.Checked; settings.statusPanelClipboard = statusPanelClipboardCheckBox.Checked;
@ -626,20 +615,6 @@ private void ClearClipboardCheckBox_Click(object sender, EventArgs e)
settings.clearClipboardAtClose = clearClipboardCheckBox.Checked; settings.clearClipboardAtClose = clearClipboardCheckBox.Checked;
} }
private void TrayMenuCheckBox_Click(object sender, EventArgs e)
{
MainForm main = Owner as MainForm;
if (closeToTrayCheckBox.Checked == false & minimizeToTrayCheckBox.Checked == false & trayMenuCheckBox.Checked == false)
{
main.trayIcon.Visible = false;
}
if (trayMenuCheckBox.Checked == true)
{
main.trayIcon.Visible = true;
}
settings.trayMenu = trayMenuCheckBox.Checked;
}
private void ShortcutKeysCheckBox_Click(object sender, EventArgs e) private void ShortcutKeysCheckBox_Click(object sender, EventArgs e)
{ {
MainForm main = Owner as MainForm; MainForm main = Owner as MainForm;
@ -650,8 +625,7 @@ private void ShortcutKeysCheckBox_Click(object sender, EventArgs e)
private void OpenTxtUnencryptedCheckBox_Click(object sender, EventArgs e) private void OpenTxtUnencryptedCheckBox_Click(object sender, EventArgs e)
{ {
settings.openTxtUnencrypted = openTxtUnencryptedCheckBox.Checked; settings.openTxtUnencrypted = openTxtUnencryptedCheckBox.Checked;
}
} }
} }
}

View file

@ -126,6 +126,9 @@
<data name="encryptionHintLabel.Text" xml:space="preserve"> <data name="encryptionHintLabel.Text" xml:space="preserve">
<value>For the best balance of performance &amp;&amp; security is recommended to use SHA512 Hash / 256 Key size / above 2000000 Password iterations. But caution, if you change this parameters you will not able to decrypt previously encrypted files with old parameters.</value> <value>For the best balance of performance &amp;&amp; security is recommended to use SHA512 Hash / 256 Key size / above 2000000 Password iterations. But caution, if you change this parameters you will not able to decrypt previously encrypted files with old parameters.</value>
</data> </data>
<metadata name="settingsToolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>240, 17</value>
</metadata>
<metadata name="fontDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"> <metadata name="fontDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>131, 17</value> <value>131, 17</value>
</metadata> </metadata>

View file

@ -33,4 +33,4 @@
// используя "*", как показано ниже: // используя "*", как показано ниже:
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.7.3.0")] [assembly: AssemblyFileVersion("1.6.8.0")]

View file

@ -19,7 +19,7 @@ namespace Crypto_Notepad.Properties {
// class via a tool like ResGen or Visual Studio. // class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen // To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project. // with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources { internal class Resources {
@ -60,16 +60,6 @@ internal Resources() {
} }
} }
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap application {
get {
object obj = ResourceManager.GetObject("application", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary> /// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap. /// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary> /// </summary>
@ -80,16 +70,6 @@ internal static System.Drawing.Bitmap application_blue {
} }
} }
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap application_dock_180 {
get {
object obj = ResourceManager.GetObject("application-dock-180", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary> /// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap. /// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary> /// </summary>
@ -150,26 +130,6 @@ internal static System.Drawing.Bitmap clipboard_minus {
} }
} }
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap clipboard_text {
get {
object obj = ResourceManager.GetObject("clipboard_text", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap clock_plus {
get {
object obj = ResourceManager.GetObject("clock_plus", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary> /// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap. /// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary> /// </summary>
@ -430,16 +390,6 @@ internal static System.Drawing.Bitmap old_application_double {
} }
} }
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap old_clock_add {
get {
object obj = ResourceManager.GetObject("old_clock_add", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary> /// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap. /// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary> /// </summary>

File diff suppressed because it is too large Load diff

View file

@ -12,7 +12,7 @@ namespace Crypto_Notepad.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.8.1.0")] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.6.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
@ -27,12 +27,12 @@ public static Settings Default {
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))] [global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("Black")] [global::System.Configuration.DefaultSettingValueAttribute("Black")]
public global::System.Drawing.Color editorForeColor { public global::System.Drawing.Color editroForeColor {
get { get {
return ((global::System.Drawing.Color)(this["editorForeColor"])); return ((global::System.Drawing.Color)(this["editroForeColor"]));
} }
set { set {
this["editorForeColor"] = value; this["editroForeColor"] = value;
} }
} }
@ -816,31 +816,5 @@ public bool openTxtUnencrypted {
this["openTxtUnencrypted"] = value; this["openTxtUnencrypted"] = value;
} }
} }
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("False")]
public bool trayMenu {
get {
return ((bool)(this["trayMenu"]));
}
set {
this["trayMenu"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("False")]
public bool statusPanelPasteboard {
get {
return ((bool)(this["statusPanelPasteboard"]));
}
set {
this["statusPanelPasteboard"] = value;
}
}
} }
} }

View file

@ -2,7 +2,7 @@
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="Crypto_Notepad.Properties" GeneratedClassName="Settings"> <SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="Crypto_Notepad.Properties" GeneratedClassName="Settings">
<Profiles /> <Profiles />
<Settings> <Settings>
<Setting Name="editorForeColor" Provider="PortableSettingsProvider" Type="System.Drawing.Color" Scope="User"> <Setting Name="editroForeColor" Provider="PortableSettingsProvider" Type="System.Drawing.Color" Scope="User">
<Value Profile="(Default)">Black</Value> <Value Profile="(Default)">Black</Value>
</Setting> </Setting>
<Setting Name="editorBackColor" Provider="PortableSettingsProvider" Type="System.Drawing.Color" Scope="User"> <Setting Name="editorBackColor" Provider="PortableSettingsProvider" Type="System.Drawing.Color" Scope="User">
@ -185,11 +185,5 @@
<Setting Name="openTxtUnencrypted" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User"> <Setting Name="openTxtUnencrypted" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value> <Value Profile="(Default)">False</Value>
</Setting> </Setting>
<Setting Name="trayMenu" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="statusPanelPasteboard" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
</Settings> </Settings>
</SettingsFile> </SettingsFile>

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 626 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 341 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 591 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 754 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 960 B

Binary file not shown.

View file

@ -1,6 +1,6 @@
The MIT License (MIT) The MIT License (MIT)
Copyright (c) 2022 Sigmanor Copyright (c) 2019 Sigmanor
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal

View file

@ -1,12 +1,5 @@
[![SWUbanner](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner-direct-single.svg)](https://stand-with-ukraine.pp.ua/)
# Crypto Notepad [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=Simple%20notepad%20for%20Windows%20with%20encryption%20features.%20Download%20for%20free:%20https://crypto-notepad.github.io/&hashtags=notepad,encryption,windows,opensource,csharp) # Crypto Notepad [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=Simple%20notepad%20for%20Windows%20with%20encryption%20features.%20Download%20for%20free:%20https://crypto-notepad.github.io/&hashtags=notepad,encryption,windows,opensource,csharp)
> [!WARNING]
> - **THE PROJECT HAS VERY LIMITED SUPPORT**
> - **NO NEW FEATURES ARE PLANNED**
> - **ONLY CRITICAL BUG FIXES WILL BE ADDRESSED**
[![downloads](https://img.shields.io/github/downloads/Crypto-Notepad/Crypto-Notepad/total.svg)](https://github.com/Crypto-Notepad/Crypto-Notepad/releases/latest) [![downloads](https://img.shields.io/github/downloads/Crypto-Notepad/Crypto-Notepad/total.svg)](https://github.com/Crypto-Notepad/Crypto-Notepad/releases/latest)
[![license](https://img.shields.io/github/license/Crypto-Notepad/Crypto-Notepad.svg?color=6DAAAE)](https://github.com/Crypto-Notepad/Crypto-Notepad/blob/master/LICENSE) [![license](https://img.shields.io/github/license/Crypto-Notepad/Crypto-Notepad.svg?color=6DAAAE)](https://github.com/Crypto-Notepad/Crypto-Notepad/blob/master/LICENSE)
[![release](https://img.shields.io/github/release/Crypto-Notepad/Crypto-Notepad.svg)](https://github.com/Crypto-Notepad/Crypto-Notepad/wiki/Release-Notes) [![release](https://img.shields.io/github/release/Crypto-Notepad/Crypto-Notepad.svg)](https://github.com/Crypto-Notepad/Crypto-Notepad/wiki/Release-Notes)
@ -22,32 +15,17 @@ Notepad-like simple text editor for Windows, where files are saved and loaded en
* Associate own file type with application * Associate own file type with application
* Integrate with windows context menu * Integrate with windows context menu
* Сustomizable encryption options * Сustomizable encryption options
* Built-in password generator
* Detecting links in editor * Detecting links in editor
* Drag and Drop support
* Сustomizable interface * Сustomizable interface
* Pasteboard function * Drag and Drop support
* Autoclear clipboard
* Autolock editor
* Rich settings
* Portable * Portable
## Installation
### Via chocolatey:
```
choco install crypto-notepad
```
### Manual instalition:
- [Download](https://github.com/Crypto-Notepad/Crypto-Notepad/releases/latest) latest release.
- Unzip **Crypto.Notepad.zip** archive to any directory
- Run **Crypto Notepad.exe**
## System requirements ## System requirements
* Windows 7 SP1 and higher * Windows 7 SP1 and higher
* .NET Framework 4.6.1 and higher * .NET Framework 4.6.1 and higher
## Build
App was created in Visual Studio Community, you can run the *.sln file and simply build a project
## Contributing ## Contributing
Want to help make the project better? Check out [CONTRIBUTING.md](https://github.com/Crypto-Notepad/Crypto-Notepad/blob/master/CONTRIBUTING.md) to get involved. Welcome! :octocat: Want to help make the project better? Check out [CONTRIBUTING.md](https://github.com/Crypto-Notepad/Crypto-Notepad/blob/master/CONTRIBUTING.md) to get involved. Welcome! :octocat:
## Build
App was created in Visual Studio Community, you can run the *.sln file and simply build a project

View file

@ -1 +1 @@
1.7.3.0 1.6.7.0