Compare commits

...

35 commits

Author SHA1 Message Date
Oleksandr
2a63ee57f1
Change contact email for contributions
Updated contact information for contributions.
2025-11-15 11:21:14 +02:00
Oleksandr
776c256634
Update contact email for reporting incidents 2025-11-15 11:20:12 +02:00
Oleksandr
8af684412d
Update README.md 2025-05-02 15:04:00 +03:00
Oleksandr
977a645146
Update README.md 2024-12-21 00:51:38 +02:00
Oleksandr
6261879d48
Update README.md 2023-03-05 18:53:02 +02:00
Oleksandr
efb1f7d129
Update README.md 2023-03-05 18:52:14 +02:00
Oleksandr
2940ddad92
Merge pull request #61 from Crypto-Notepad/dev
readme update
2022-09-09 13:49:23 +03:00
Alexander
3388b68ea7
readme update 2022-09-09 13:47:48 +03:00
Oleksandr
1b80d3c21d
Merge pull request #60 from Crypto-Notepad/dev
v1.7.3
2022-09-09 13:30:33 +03:00
Alexander
cfb8f66138
Update v1.7.3 2022-09-09 13:28:40 +03:00
Alexander
3078871bd4
changed build configuration 2022-09-09 13:27:51 +03:00
Alexander
d65c0c4d26
version bump 2022-09-06 13:17:39 +03:00
Oleksandr
9580fee1aa
Update LICENSE 2022-07-21 00:21:25 +03:00
Oleksandr
24f42c99fb
Merge pull request #58 from Crypto-Notepad/dev
fixed bug with inserting date/time
2022-05-30 22:20:14 +03:00
Alexander
342bedaabc
fixed bug with inserting date/time 2022-05-30 22:19:37 +03:00
Alexander
3a5e786eea
Update v1.7.2 2022-05-30 22:18:50 +03:00
Oleksandr
7a4be053db
Merge pull request #57 from Crypto-Notepad/dev
Increased font size for some inputs / Added #56
2022-05-22 11:11:29 +03:00
Alexander
3f4efbb5e1
Update v1.7.1 2022-05-22 11:09:08 +03:00
Alexander
1b6acc4e06
Increased font size for input 2022-05-22 11:08:54 +03:00
Alexander
fd24d61401
Added #56 2022-05-22 11:07:48 +03:00
Alexander
9f1c7de776
Update README.md 2022-03-22 19:23:03 +02:00
Alexander
cfcc6f7908
Update FUNDING.yml 2022-03-19 23:12:13 +02:00
Alexander
7b548e6c6b
Update FUNDING.yml 2022-03-19 23:02:49 +02:00
Alexander
806b7e875e
Update FUNDING.yml 2021-12-04 17:35:31 +02:00
Alexander
e780323592
Update FUNDING.yml 2021-11-03 00:42:31 +02:00
Alexander
6776221477
Update v1.7.0 2021-04-11 11:50:31 +03:00
Alexander
c1c222d0bc
Update v1.7.0 2021-04-10 13:22:10 +03:00
Alexander
0db3f4847f
Fixed bug when "settings" item from tray menu was disabled after file unlock 2021-04-08 00:39:45 +03:00
Alexander
19b6f660d7
Fixed bug with visibility of editor on editor lock 2021-04-08 00:02:40 +03:00
Alexander
e8503110a4
Fixed typo 2021-04-07 14:28:22 +03:00
Alexander
f0eb38f35b
Added Paste Board function #53 2021-04-07 14:19:36 +03:00
Alexander
eced4a332b
Fixed bug when after file locking was able to open settings 2021-04-07 02:27:16 +03:00
Alexander
00d20db932
Fixed bug with disappearing text after showing app from the tray 2021-04-06 18:02:56 +03:00
Alexander
b97a5ca76f
Update v1.6.9 2021-03-28 21:14:11 +03:00
Alexander
1f3c48f2c7
Fixed connection error in updater 2021-03-28 21:10:43 +03:00
26 changed files with 405 additions and 135 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: crypto-notepad open_collective: #
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: custom: https://github.com/Crypto-Notepad/Crypto-Notepad/wiki/Support-the-project

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 sigmanor@pm.me. All reported by contacting the project team at dock-brunt-rarity@duck.com. 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: [`telegram`](https://t.me/Sigmanor) [`facebook`](https://www.fb.com/SlGMANOR) [`email`](mailto:sigmanor@pm.me) * Send me a message: [`email`](mailto:dock-brunt-rarity@duck.com)
* 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

@ -198,6 +198,9 @@
<setting name="trayMenu" serializeAs="String"> <setting name="trayMenu" serializeAs="String">
<value>False</value> <value>False</value>
</setting> </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,14 +56,15 @@
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget> <PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>PdbOnly</DebugType> <DebugType>embedded</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>
@ -81,6 +82,9 @@
<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>
@ -199,9 +203,12 @@
<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\application.png" /> <None Include="Resources\application.png" />
<None Include="Resources\application-dock-180.png" /> <None Include="Resources\application-dock-180.png" />
<None Include="Resources\Updater.exe" />
<Content Include="Notepad_Lock.ico" /> <Content Include="Notepad_Lock.ico" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>

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,6 +49,7 @@ 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);
@ -78,7 +79,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(47, 47); this.lockPictureBox.Size = new System.Drawing.Size(48, 48);
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;
@ -90,7 +91,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(18, 22); this.showNewKeyPictureBox.Size = new System.Drawing.Size(19, 23);
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;
@ -103,40 +104,12 @@ 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(18, 22); this.showOldKeyPictureBox.Size = new System.Drawing.Size(19, 23);
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;
@ -159,6 +132,36 @@ 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,6 +46,7 @@ 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);
@ -74,7 +75,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(47, 47); this.lockPictureBox.Size = new System.Drawing.Size(48, 48);
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;
@ -82,6 +83,7 @@ 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);
@ -91,13 +93,14 @@ 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", 8.25F); this.keyTextBox.PlaceholderFont = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.keyTextBox.PlaceholderForeColor = System.Drawing.Color.DarkGray; this.keyTextBox.PlaceholderForeColor = System.Drawing.Color.DarkGray;
this.keyTextBox.Size = new System.Drawing.Size(206, 22); this.keyTextBox.Size = new System.Drawing.Size(206, 23);
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);
@ -111,7 +114,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(18, 22); this.showKeyPictureBox.Size = new System.Drawing.Size(19, 23);
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,6 +59,7 @@ 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();
@ -67,6 +68,7 @@ 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();
@ -118,6 +120,7 @@ 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);
@ -139,6 +142,7 @@ 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();
@ -176,7 +180,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(544, 24); this.mainMenu.Size = new System.Drawing.Size(593, 24);
this.mainMenu.TabIndex = 0; this.mainMenu.TabIndex = 0;
this.mainMenu.Text = "menuStrip1"; this.mainMenu.Text = "menuStrip1";
// //
@ -311,6 +315,7 @@ 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;
@ -431,6 +436,14 @@ 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";
@ -451,7 +464,8 @@ 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);
@ -463,7 +477,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(241, 22); this.alwaysOnTopMainMenu.Size = new System.Drawing.Size(245, 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);
// //
@ -471,7 +485,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(241, 22); this.passwordGeneratorMainMenu.Size = new System.Drawing.Size(245, 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);
// //
@ -480,7 +494,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(241, 22); this.changePasswordMainMenu.Size = new System.Drawing.Size(245, 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);
// //
@ -488,7 +502,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(241, 22); this.lockMainMenu.Size = new System.Drawing.Size(245, 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);
// //
@ -498,10 +512,20 @@ 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(241, 22); this.settingsMainMenu.Size = new System.Drawing.Size(245, 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[] {
@ -702,11 +726,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, 274); this.searchPanel.Location = new System.Drawing.Point(0, 318);
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(544, 25); this.searchPanel.Size = new System.Drawing.Size(593, 25);
this.searchPanel.TabIndex = 17; this.searchPanel.TabIndex = 17;
this.searchPanel.Visible = false; this.searchPanel.Visible = false;
// //
@ -718,7 +742,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(240, 15); this.searchTextBox.Size = new System.Drawing.Size(289, 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);
@ -731,7 +755,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(353, 3); this.searchWholeWordCheckBox.Location = new System.Drawing.Point(402, 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;
@ -748,7 +772,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(249, 3); this.searchCaseSensitiveCheckBox.Location = new System.Drawing.Point(298, 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;
@ -765,7 +789,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(525, 0); this.searchCloseButton.Location = new System.Drawing.Point(574, 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;
@ -779,7 +803,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(453, 0); this.searchFindNextButton.Location = new System.Drawing.Point(502, 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;
@ -827,7 +851,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(544, 24); this.toolbarPanel.Size = new System.Drawing.Size(593, 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);
// //
@ -838,7 +862,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(529, 0); this.closeToolbarButton.Location = new System.Drawing.Point(578, 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;
@ -1042,12 +1066,13 @@ 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, 299); this.statusPanel.Location = new System.Drawing.Point(0, 343);
this.statusPanel.Name = "statusPanel"; this.statusPanel.Name = "statusPanel";
this.statusPanel.ShowItemToolTips = true; this.statusPanel.ShowItemToolTips = true;
this.statusPanel.Size = new System.Drawing.Size(544, 22); this.statusPanel.Size = new System.Drawing.Size(593, 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);
@ -1133,6 +1158,17 @@ 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";
@ -1217,7 +1253,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(136, 49); this.fileLockedPanel.Location = new System.Drawing.Point(160, 71);
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;
@ -1310,7 +1346,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(544, 226); this.richTextBoxPanel.Size = new System.Drawing.Size(593, 270);
this.richTextBoxPanel.TabIndex = 21; this.richTextBoxPanel.TabIndex = 21;
// //
// richTextBox // richTextBox
@ -1324,7 +1360,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(542, 224); this.richTextBox.Size = new System.Drawing.Size(591, 268);
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);
@ -1347,12 +1383,16 @@ 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(544, 321); this.ClientSize = new System.Drawing.Size(593, 365);
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);
@ -1515,5 +1555,9 @@ public void InitializeComponent()
private System.Windows.Forms.ToolStripSeparator toolStripSeparator1; private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
private System.Windows.Forms.ToolStripMenuItem resetWindowLocationTrayMenu; private System.Windows.Forms.ToolStripMenuItem resetWindowLocationTrayMenu;
private System.Windows.Forms.ToolStripMenuItem hideWindowTrayMenu; 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

@ -46,7 +46,10 @@ protected override void WndProc(ref Message m)
} }
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)
{ {
richTextBox.Visible = true; if (!fileLockedPanel.Visible)
{
richTextBox.Visible = true;
}
} }
switch (m.Msg) switch (m.Msg)
@ -81,6 +84,7 @@ 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();
@ -96,6 +100,7 @@ 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))
@ -113,6 +118,7 @@ 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;
@ -130,6 +136,7 @@ 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;
@ -156,6 +163,7 @@ 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;
@ -501,6 +509,7 @@ 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))
{ {
@ -519,6 +528,7 @@ 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)
@ -613,6 +623,7 @@ 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.editorForeColor;
richTextBox.BackColor = settings.editorBackColor; richTextBox.BackColor = settings.editorBackColor;
@ -670,10 +681,12 @@ 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;
@ -776,6 +789,7 @@ 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;
@ -792,6 +806,7 @@ 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;
@ -824,6 +839,18 @@ 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)
{ {
@ -841,6 +868,7 @@ private void MainForm_Resize(object sender, EventArgs e)
} }
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)
@ -890,6 +918,7 @@ 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();
@ -954,8 +983,11 @@ 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 () => { encryptedText = await AES.Encrypt(encryptedText, PublicVar.password.Get(), null, settings.HashAlgorithm, Task.Run(async () =>
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();
} }
@ -1015,6 +1047,7 @@ 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();
@ -1126,7 +1159,7 @@ private void RichTextBox_DragDrop(object sender, DragEventArgs e)
private void RichTextBox_TextChanged(object sender, EventArgs e) private void RichTextBox_TextChanged(object sender, EventArgs e)
{ {
statusPanelTimer.Start(); statusPanelTimer.Start();
if (richTextBox.Modified) if (richTextBox.Modified)
{ {
if (!Text.Contains("*")) if (!Text.Contains("*"))
@ -1266,6 +1299,7 @@ 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();
@ -1283,6 +1317,7 @@ 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;
} }
@ -1324,6 +1359,7 @@ 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();
@ -1337,6 +1373,7 @@ 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;
@ -1350,6 +1387,7 @@ 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;
@ -1362,6 +1400,7 @@ 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);
@ -1490,6 +1529,7 @@ private void ToolsMainMenu_DropDownOpening(object sender, EventArgs e)
{ {
changePasswordMainMenu.Enabled = true; changePasswordMainMenu.Enabled = true;
lockMainMenu.Enabled = true; lockMainMenu.Enabled = true;
} }
} }
@ -1585,6 +1625,22 @@ 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;
@ -1645,6 +1701,7 @@ 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;
@ -1669,6 +1726,43 @@ 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)
{ {
@ -2052,6 +2146,7 @@ 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();
@ -2087,6 +2182,7 @@ 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 = "";
@ -2153,6 +2249,10 @@ private void TrayIcon_MouseDoubleClick(object sender, MouseEventArgs e)
{ {
Show(); Show();
WindowState = currentWindowState; WindowState = currentWindowState;
if (!fileLockedPanel.Visible)
{
richTextBox.Visible = true;
}
} }
} }
} }
@ -2168,6 +2268,10 @@ private void ShowWindowTrayMenu_Click(object sender, EventArgs e)
{ {
Show(); Show();
WindowState = currentWindowState; WindowState = currentWindowState;
if (!fileLockedPanel.Visible)
{
richTextBox.Visible = true;
}
} }
} }
private void ExitTrayMenu_Click(object sender, EventArgs e) private void ExitTrayMenu_Click(object sender, EventArgs e)
@ -2217,9 +2321,12 @@ private void VariablesMainMenu_Click(object sender, EventArgs e)
} }
#endregion #endregion
} }
} }

View file

@ -6479,6 +6479,9 @@
<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>17, 56</value>
</metadata> </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 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>
</metadata> </metadata>

View file

@ -63,7 +63,7 @@ private void InitializeComponent()
// //
// passwordsListTextBox // passwordsListTextBox
// //
this.passwordsListTextBox.Font = new System.Drawing.Font("Consolas", 8.25F); this.passwordsListTextBox.Font = new System.Drawing.Font("Consolas", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
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

@ -37,6 +37,7 @@ private void InitializeComponent()
this.autoLockGroupBox = new System.Windows.Forms.GroupBox(); this.autoLockGroupBox = new System.Windows.Forms.GroupBox();
this.autoLockMinutesLabel = new System.Windows.Forms.Label(); this.autoLockMinutesLabel = new System.Windows.Forms.Label();
this.autoLockOnMinimizeCheckBox = new System.Windows.Forms.CheckBox(); this.autoLockOnMinimizeCheckBox = new System.Windows.Forms.CheckBox();
this.lockTimeoutTextBox = new System.Windows.Forms.PlaceholderTextBox();
this.lockTimeoutLabel = new System.Windows.Forms.Label(); 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();
@ -53,6 +54,7 @@ private void InitializeComponent()
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();
@ -110,7 +112,6 @@ 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.lockTimeoutTextBox = new System.Windows.Forms.PlaceholderTextBox();
this.settingsTabControl.SuspendLayout(); this.settingsTabControl.SuspendLayout();
this.generalTabPage.SuspendLayout(); this.generalTabPage.SuspendLayout();
this.autoLockGroupBox.SuspendLayout(); this.autoLockGroupBox.SuspendLayout();
@ -203,6 +204,19 @@ private void InitializeComponent()
this.autoLockOnMinimizeCheckBox.UseVisualStyleBackColor = true; this.autoLockOnMinimizeCheckBox.UseVisualStyleBackColor = true;
this.autoLockOnMinimizeCheckBox.Click += new System.EventHandler(this.AutoLockOnMinimizeCheckBox_Click); this.autoLockOnMinimizeCheckBox.Click += new System.EventHandler(this.AutoLockOnMinimizeCheckBox_Click);
// //
// lockTimeoutTextBox
//
this.lockTimeoutTextBox.Location = new System.Drawing.Point(134, 45);
this.lockTimeoutTextBox.Name = "lockTimeoutTextBox";
this.lockTimeoutTextBox.Placeholder = "";
this.lockTimeoutTextBox.PlaceholderActiveForeColor = System.Drawing.Color.DarkGray;
this.lockTimeoutTextBox.PlaceholderFont = new System.Drawing.Font("Segoe UI", 8.25F);
this.lockTimeoutTextBox.PlaceholderForeColor = System.Drawing.Color.DarkGray;
this.lockTimeoutTextBox.Size = new System.Drawing.Size(44, 23);
this.lockTimeoutTextBox.TabIndex = 8;
this.lockTimeoutTextBox.TextChanged += new System.EventHandler(this.LockTimeoutTextBox_TextChanged);
this.lockTimeoutTextBox.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.LockTimeoutTextBox_KeyPress);
//
// lockTimeoutLabel // lockTimeoutLabel
// //
this.lockTimeoutLabel.AutoSize = true; this.lockTimeoutLabel.AutoSize = true;
@ -379,13 +393,14 @@ 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, 180); this.statusPanelGroupBox.Size = new System.Drawing.Size(295, 205);
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);
@ -395,11 +410,22 @@ 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, 71); this.statusPanelLabelsGroupBox.Size = new System.Drawing.Size(277, 97);
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;
@ -1048,19 +1074,6 @@ 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);
// //
// lockTimeoutTextBox
//
this.lockTimeoutTextBox.Location = new System.Drawing.Point(134, 45);
this.lockTimeoutTextBox.Name = "lockTimeoutTextBox";
this.lockTimeoutTextBox.Placeholder = "";
this.lockTimeoutTextBox.PlaceholderActiveForeColor = System.Drawing.Color.DarkGray;
this.lockTimeoutTextBox.PlaceholderFont = new System.Drawing.Font("Segoe UI", 8.25F);
this.lockTimeoutTextBox.PlaceholderForeColor = System.Drawing.Color.DarkGray;
this.lockTimeoutTextBox.Size = new System.Drawing.Size(44, 23);
this.lockTimeoutTextBox.TabIndex = 8;
this.lockTimeoutTextBox.TextChanged += new System.EventHandler(this.LockTimeoutTextBox_TextChanged);
this.lockTimeoutTextBox.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.LockTimeoutTextBox_KeyPress);
//
// SettingsForm // SettingsForm
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
@ -1188,5 +1201,6 @@ private void InitializeComponent()
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 trayMenuCheckBox;
private System.Windows.Forms.CheckBox statusPanelPasteboardCheckBox;
} }
} }

View file

@ -65,6 +65,7 @@ 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;
} }
@ -202,7 +203,7 @@ private void ToolbarVisibleCheckBox_Click(object sender, EventArgs e)
MainForm main = Owner as MainForm; MainForm main = Owner as MainForm;
main.toolbarPanel.Visible = toolbarVisibleCheckBox.Checked; main.toolbarPanel.Visible = toolbarVisibleCheckBox.Checked;
main.richTextBox.SetInnerMargins(Convert.ToInt32(settings.editorPaddingLeft), 0, 0, 0); main.richTextBox.SetInnerMargins(Convert.ToInt32(settings.editorPaddingLeft), 0, 0, 0);
settings.toolbarVisible= toolbarVisibleCheckBox.Checked; settings.toolbarVisible = toolbarVisibleCheckBox.Checked;
} }
private void AssociateCheckBox_Click(object sender, EventArgs e) private void AssociateCheckBox_Click(object sender, EventArgs e)
@ -594,6 +595,15 @@ 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;

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.6.9.0")] [assembly: AssemblyFileVersion("1.7.3.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", "16.0.0.0")] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.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 {
@ -150,6 +150,26 @@ 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>
@ -410,6 +430,16 @@ 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>

View file

@ -661,19 +661,19 @@
</data> </data>
<data name="lock_pencil" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="lock_pencil" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
YQUAAAAZdEVYdFNvZnR3YXJlAEFkb2JlIEltYWdlUmVhZHlxyWU8AAACZUlEQVQ4T6WQXUiTYRTHz3lf dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAJlSURBVDhPpZBdSJNhFMfPeV8QvAoGJSwr7DrzIsKg
ELwKBiUsK+w68yLCoBuXIeiCQBA/ohWpy0l2ITQ/UlkY+ZGps4WlLsUmbLPUaQua5nSR5ijTRMUioyi1 G5ch6IJAED+iFanLSXYhND9SWRj5kamzhaUuxSZss9RpC5rmdJHmKNNExSKjKLUiL0JYlHF6zquTkhVE
Ii9CWJRxes6rk5IVRAd+PIfzP//znOcBIvovIHonQkWGBH2Fa9wrlmHQJO/zmuR8QdU6+VxjLdjHHvZu B348h/M///Oc5wEi+i8geidCRYYEfYVr3CuWYdAk7/Oa5HxB1Tr5XGMt2Mce9m4UgriL5P2+mh3Nn56W
FIK4i+T9vpodzZ+elr2ZdOd+ZDjnGmub+8GZL22mePFxyUJv9YHpymNoZjjnGmu/9vYfFAN6jPIGVoPE vZl0535kOOcaa5v7wZkvbaZ48XHJQm/1genKY2hmOOcaa7/29h8UA3qM8gZWg8Q0Loxd/GHJDrtfewKB
NC6MXfxhyQ67X3sCgeGca6xxT9c5GSYjJRhD8YShC7KCV+AqkKH+JN566TGSJQt7m3L4f8QAkb8aKCTW 4ZxrrHFP1zkZJiMlGEPxhKELsoJX4CqQof4k3nrpMZIlC3ubcvh/xACRvxooJNaUm8tkeCvMmwcYPKVy
lJvLZHgrzJsHGDylct2ldLA/cWbTdT3eaTGgozwV/Jy7zVpirccoNYsBeaEGXKYPHfTtdQutzFpoebyG 3aV0sD9xZtN1Pd5pMaCjPBX8nLvNWmKtxyg1iwF5oQZcpg8d9O11C63MWmh5vIaWRstp9q6O5j06WvLp
lkbLafaujuY9Olry6eiLX0ffZ06R73iYYx6xewQx7rcBfqeexm/n0POeMzTlOksTXbnktaaQry2F/B0p 6ItfR99nTpHveJhjHrF7BDHutwF+p57Gb+fQ854zNOU6SxNdueS1ppCvLYX8HSk01SlORzo1HI0aJZOJ
NNUpTkc6NRyNGiWTiVyIw/+0wbvhRHI1p1EgEKAEtbq2FSAB+ktlBfH+6r9t8MimIY9VTYGFIkqPjxhR XIjD/7TBu+FEcjWnUSAQoAS1urYVIAH6S2UF8f7qv23wyKYhj1VNgYUiSo+PGFGpVHtbQESrXgpS8acN
qVR7W0BEq14KUvGnDabdiTRki1TM3RY11WdJ9uTYcLgRIz4xaitCiVbhSqgNBq0acjet3WyriqAx+2E6 pt2JNGSLVMzdFjXVZ0n25NhwuBEjPjFqK0KJVuFKqA0GrRpyN63dbKuKoDH7YTqfhHUlSah4lVBvQciM
n4R1JUmoeJVQb0HIjMU2+uyg1UUbfeUtZiz0/mEBPWjfpZg7zdtpzqOl1Rd64l72BEMl2KOJgvaMGOjL xTb67KDVRRt95S1mLPT+YQE9aN+lmDvN22nOo6XVF3riXvYEQyXYo4mC9owY6MuKhZvGBLxamYrXGgw4
ioWbxgS8WpmK1xoMOEErc1SZh8un4+FZWjQMMId2QyN71r0QLtgmUIeAMrXYlxyHR0JowgPhPwGrrd1/ QStzVJmHy6fj4VlaNAwwh3ZDI3vWvRAu2CZQh4AytdiXHIdHQmjCA+E/Aaut3X+hEJXJAAAAAElFTkSu
oRCVyQAAAABJRU5ErkJggg== QmCC
</value> </value>
</data> </data>
<data name="arrow_left" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="arrow_left" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
@ -827,7 +827,7 @@
XTesb3QPLh88M+QwdP6m681Lt7xuXbu94vbgcOjwnZHokdE77DtTd1PuvriXeW/h/sYH6AdFD6UeVjxS XTesb3QPLh88M+QwdP6m681Lt7xuXbu94vbgcOjwnZHokdE77DtTd1PuvriXeW/h/sYH6AdFD6UeVjxS
fNTws+7PbaOWo6fHXMf6Hwc/vj/OGn/2S8Yv7ycKnpCfVEyqTDZPmU2dmnafvvF05dOJZ+nPFmYKf5X+ fNTws+7PbaOWo6fHXMf6Hwc/vj/OGn/2S8Yv7ycKnpCfVEyqTDZPmU2dmnafvvF05dOJZ+nPFmYKf5X+
tfa5zvMffnP8rX82YnbiBf/Fp99LXsq/PPRq2aueuYC5R69TXy/MF72Rf3P4LeNt37vwd5MLWe+x7ys/ tfa5zvMffnP8rX82YnbiBf/Fp99LXsq/PPRq2aueuYC5R69TXy/MF72Rf3P4LeNt37vwd5MLWe+x7ys/
6H7o/ujz8cGn1E+f/gUDmPP8usTo0wAAAAlwSFlzAAALEwAACxMBAJqcGAAALoFJREFUeF7t3X3o7Vd1 6H7o/ujz8cGn1E+f/gUDmPP8usTo0wAAAAlwSFlzAAALEgAACxIB0t1+/AAALoFJREFUeF7t3X3o7Vd1
53FBEAIFoSAUAoLgXwUf8nSdTOzMoNQRUiyVDmFSBgYEO/EpNU18aDSJSWgkbaY6qTJ2Ok2JWELFpo5W 53FBEAIFoSAUAoLgXwUf8nSdTOzMoNQRUiyVDmFSBgYEO/EpNU18aDSJSWgkbaY6qTJ2Ok2JWELFpo5W
+zBRR8fU0IzWmNZMklGTjq0mmsbEufGa3/l9Z6277k3vPfdz9v2e81tnf8/e3/eCF5XV3LPO75y9v9/P +zBRR8fU0IzWmNZMklGTjq0mmsbEufGa3/l9Z6277k3vPfdz9v2e81tnf8/e3/eCF5XV3LPO75y9v9/P
73E/axgGAAAwM7IJAAD6JpsAAKBvsgkAAPommwAAoG+yCQAA+iabAACgb7IJAAD6JpsAAKBvsgkAAPom 73E/axgGAAAwM7IJAAD6JpsAAKBvsgkAAPommwAAoG+yCQAA+iabAACgb7IJAAD6JpsAAKBvsgkAAPom
@ -1090,20 +1090,19 @@
</data> </data>
<data name="old_lock_edit" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="old_lock_edit" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value> <value>
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAABl0RVh0U29m
YQUAAAAZdEVYdFNvZnR3YXJlAEFkb2JlIEltYWdlUmVhZHlxyWU8AAACmUlEQVQ4T42SW0iTcRjGhwUi dHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAKZSURBVDhPjZJbSJNxGMaHBSKiNjVPQRfddFUEUtBF
ojY1T0EX3XRVBFLQRVKRFuRFXUR0V1CpJM4kNQ8rT9UOLnXO5WEuswsFS4ypDVOnoiaah2XmSrswJ5U3 UpEW5EVdRHRXUKkkziQ1DytP1Q4udc7lYS6zCwVLjKkNU6eiJpqHZeZKuzAnlTfeOIUifv2/b2MZFvTA
3jiFIn79v29jGRb0wMP38rzv+/v+30GxVRZrs9lifYLF2uSzVDebfe1tAnyVUM2j+pU+xyDLbjefl1f4 w/fyvO/7+/7fQbFVFmuz2WJ9gsXa5LNUN5t97W0CfJVQzaP6lT7HIMtuN5+XV/jy9Zu4upEyqecb+0N+
8vWbuLqRMqnnG/tDfkCl0WS223uYnHbyuOkphgqjbKmWMqknzXinf8sP0Oof0ts/QE2thYysHJOI4iVn QKXRZLbbe5icdvK46SmGCqNsqZYyqSfNeKd/yw/Q6h/S2z9ATa2FjKwck4jiJWdmZVebRdbb70BnqNxy
ZmVXm0XW2+9AZ6jccl6v/IA7pXrsvUPoK+ukJMabyopRl+hEbxBDlenfAFWBAVvfBGqddduQKr+czr5x Xq/8gDuleuy9Q+gr66QkxpvKilGX6ERvEEOV6d8AVYEBW98Eap1125Aqv5zOvnFK9V7AB90wszqHXMuA
SvVewAfdMLM6h1zLgHnD3rcuXSSuB2HMa5S800Qzq40TjmVOG41LE86CNoQlfSCF9/Us2dyMmieYUreL ecPety5dJK4HYcxrlLzTRDOrjROOZU4bjUsTzoI2hCV9IIX39SzZ3IyaJ5hSt4t9AZjS7IG1VljvEH4B
fQGY0uyBtVZY7xB+AR4bbHZ6vSHqDZFvtpFdXI17dY2Sci3d+T2Mp9V6AWMlsWwuljFjUOCs2Ml7UyBd Hhtsdnq9IeoNkW+2kV1cjXt1jZJyLd35PYyn1XoBYyWxbC6WMWNQ4KzYyXtTIF0FO+gqDMBVE8isMYDR
BTvoKgzAVRPIrDGA0dxDrC3YuKupxi4+a0ZhrvQI8TJguCgWz4yK7/0J/Bw6xWKDknOHFbI/NYYyUpgA 3EOsLdi4q6nGLj5rRmGu9AjxMmC4KBbPjIrv/Qn8HDrFYoOSc4cVsj81hjJSmABjZ6BtH/MdZdzMK5KX
Y2egbR/zHWXczCuSl/3vYEAdhWfyKjOVQcyaQsVSJGmnFaQkKnhTfBzGk+HZQWiMwXrjiH9Zkgx4lbcb /e9gQB2FZ/IqM5VBzJpCxVIkaacVpCQqeFN8HMaT4dlBaIzBeuOIf1mSDHiVtxvP64v8cJwUJ0jiY72S
z+uL/HCcFCdI4mO9krzzCqaLj4ll6c4HoCGOmtQEBtXhEsAvGdCdE4lnKBmnMVg+gas2hPWXl2C1GuZK vPMKpouPiWXpzgegIY6a1AQG1eESwC8Z0J0TiWcoGacxWD6BqzaE9ZeXYLUa5kqgLgrjNQGbv4z9dsR2
oC4K4zUBm7+M/XbEdoAtO4KNvhMwkgijSSzUB2O5l0p3a6kAVGG+flS8A9EfO4vt1l9O0JIe7mzPVPJc gC07go2+EzCSCKNJLNQHY7mXSndrqQBUYb5+VLwD0R87i+3WX07Qkh7ubM9U8lylpF21C9vNYHLTr1Ca
paRdtQvbzWBy069QmpKMq+qCyIJozwwTVtKSrnT6dmXJAKH9wvK//x+WZv0CFL8AglrvSOxt69sAAAAA koyr6oLIgmjPDBNW0pKudPp2ZckAof3C8r//H5Zm/QIUvwCCWu9I7G3r2wAAAABJRU5ErkJggg==
SUVORK5CYII=
</value> </value>
</data> </data>
<data name="gear" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <data name="gear" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
@ -1124,4 +1123,13 @@
<data name="application" type="System.Resources.ResXFileRef, System.Windows.Forms"> <data name="application" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\application.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value> <value>..\Resources\application.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data> </data>
<data name="clipboard_text" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\clipboard-text.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="clock_plus" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\clock--plus.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="old_clock_add" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\clock_add.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root> </root>

View file

@ -829,5 +829,18 @@ public bool trayMenu {
this["trayMenu"] = value; 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

@ -188,5 +188,8 @@
<Setting Name="trayMenu" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User"> <Setting Name="trayMenu" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value> <Value Profile="(Default)">False</Value>
</Setting> </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.

After

Width:  |  Height:  |  Size: 591 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 754 B

Binary file not shown.

After

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) 2019 Sigmanor Copyright (c) 2022 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,5 +1,12 @@
[![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)
@ -15,17 +22,32 @@ 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
* Сustomizable interface
* Drag and Drop support * Drag and Drop support
* Сustomizable interface
* Pasteboard function
* 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
## 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:
## Build ## Build
App was created in Visual Studio Community, you can run the *.sln file and simply build a project App was created in Visual Studio Community, you can run the *.sln file and simply build a project
## 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:

View file

@ -1 +1 @@
1.6.9.0 1.7.3.0