Compare commits

...

680 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
Alexander
279efb7d70
Update v1.6.9 2021-03-28 20:56:15 +03:00
Alexander
566c4e5a0c Update v1.6.9 2021-03-28 20:53:04 +03:00
Александр
3e1ef07105 Update v1.6.9
Added
- New items in tray menu.
- Able to reset window location (from tray menu).
- Able to enable tray menu without enabling
- Minimize to tray/Close to tray settings.

Improved
- If app is completely out off screen at the start, window location will be reset automatically.
- Now settings from the Integration section will be applied at the app start, if settings file was imported.

Fixed
- Bugs with some settings load.
2021-03-28 20:46:45 +03:00
Alexander
2635269c39
Merge branch 'master' of https://github.com/Crypto-Notepad/Crypto-Notepad 2020-09-09 12:23:53 +03:00
Alexander
9436f3c0d7
Update v1.6.8 2020-09-09 12:23:26 +03:00
Alexander
ee2aa4d8c2
Update README.md 2020-09-02 20:54:43 +03:00
Alexander
c0c4916cef
Update README.md 2020-09-01 10:09:05 +03:00
Alexander
22acc5e29d
Update README.md 2020-09-01 01:24:01 +03:00
Alexander
872ce5196a
Update README.md 2020-09-01 01:21:22 +03:00
Alexander
8400e04d52
Update README.md 2020-09-01 01:18:44 +03:00
Alexander
d4d43b31ad
Merge branch 'master' of https://github.com/Crypto-Notepad/Crypto-Notepad 2020-08-24 00:08:12 +03:00
Alexander
c1bff79c02
v1.6.8
- Added optional able to open all files except *.cnp without message "Try to decrypt file?" #52
- Added menu item and toolbar icon "Try to decrypt".
- Fixed minor bugs while file open.
- Now some items of the main menu become inactive when it's not necessary to use.
2020-08-24 00:07:27 +03:00
Alexander
282096fb83
Update FUNDING.yml 2020-08-22 03:37:47 +03:00
Alexander
ea60c0ffb6
Update FUNDING.yml 2020-08-21 04:43:58 +03:00
Alexander
d79f5b59da
Merge branch 'master' of https://github.com/Crypto-Notepad/Crypto-Notepad 2020-08-08 12:28:37 +03:00
Alexander
6a30579d57
Update v1.6.7 2020-08-08 12:28:32 +03:00
Alexander
ffb2016e48
Fixed bug when editor was invisible after window maximized 2020-08-08 12:28:09 +03:00
Alexander
1cc8332458
Buttons in the "Password generator" window was swapped 2020-08-08 12:23:00 +03:00
Alexander
6d08b85c45
Updated url to app website
Now website stored at https://crypto-notepad.github.io/
2020-08-08 12:17:26 +03:00
Alexander
80b5321170
Update README.md 2020-06-18 15:53:08 +03:00
Alexander
1de5e93273
Update v1.6.6 2020-01-20 11:51:51 +02:00
Alexander
6fdb986ba9
Fixed bug when shortcut keys doesn't work or worked when it's not necessary. 2020-01-19 16:38:08 +02:00
Alexander
3f2997afa6
Clipboard auto-clear progress bar is enabled by default 2020-01-19 15:07:43 +02:00
Alexander
ba10e5a2a7
Minor design changes 2020-01-19 14:56:26 +02:00
Alexander
656a2c9e92
Remapped some shortcut keys #49 2020-01-19 14:54:49 +02:00
Alexander
b6736fb518
Clear Clipboard menu item disabled when clipboard is empty 2020-01-19 14:54:00 +02:00
Alexander
d15194f789
Code formatting 2020-01-19 14:53:08 +02:00
Alexander
9e18e19eec
Added able to auto-clear clipboard on app close 2020-01-19 14:52:38 +02:00
Alexander
6a2adbbf65
Added able to disable all shortcut keys 2020-01-19 14:50:46 +02:00
Alexander
05cf0f19ff
Auto-clear clipboard after copy text from the editor 2020-01-17 23:43:15 +02:00
Alexander
4903a4f91d
Added able to clear clipboard 2020-01-17 22:23:02 +02:00
Alexander
151887a8c1
Fody version update 2020-01-17 16:17:56 +02:00
Alexander
07d39c221e
PasswordGenerator version update 2020-01-17 16:17:17 +02:00
Alexander
46b65d1972
Removed unused code 2020-01-13 13:00:22 +02:00
Alexander
9a73b34433
App version bump 2020-01-13 12:46:53 +02:00
Alexander
ea2fdb730d
Added word wrap indicator to the status panel 2020-01-13 12:46:31 +02:00
Alexander
664ab8cfd2
Categories in Settings window was reorganized. 2020-01-13 12:45:20 +02:00
Alexander
ea61a872c0
Auto lock if the app is inactive #48 2020-01-13 12:44:46 +02:00
Alexander
e7583a09a5
Added able to make editor readonly 2020-01-13 12:40:14 +02:00
Alexander
392f5d8a3b
Editor text now is hidden in windows thumbnail previews 2019-12-29 00:26:58 +02:00
Alexander
a021398788
Update v1.6.5 2019-12-12 18:08:25 +02:00
Alexander
bcba67909a
Сhanged minimum and maximum password length to 4 and 256 2019-12-11 16:21:41 +02:00
Alexander
0b04274ad0
Extended types of special characters #47 2019-12-11 16:21:26 +02:00
Alexander
be8dfa895c
Bump PasswordGenerator from 2.0.1 to 2.0.3 2019-12-11 16:16:07 +02:00
Alexander
8c7770c9dc
App version updated 2019-12-11 16:13:41 +02:00
Alexander
3a82131251
Update CONTRIBUTING.md 2019-12-02 19:47:01 +02:00
Alexander
7f23e1d026
Code formatting 2019-12-02 19:38:46 +02:00
Alexander
230e199212
Update CONTRIBUTING.md 2019-12-02 19:37:59 +02:00
Alexander
c7c1d39b2d
Update v1.6.4 2019-12-01 09:14:10 +02:00
Alexander
d321380f34
Update v1.6.4 2019-11-30 20:01:24 +02:00
Alexander
1dc168fa11
Update README.md 2019-11-30 20:00:11 +02:00
Alexander
092a02cc73
Update README.md 2019-11-30 19:54:50 +02:00
Alexander
c739b82665
Merge remote-tracking branch 'origin/master' 2019-11-28 22:37:04 +02:00
Alexander
e921869371
Renamed ChangeKeyForm to ChangePasswordForm 2019-11-28 22:36:49 +02:00
Alexander
5534ebc507
Renamed ChangeKeyForm to ChangePasswordForm 2019-11-28 22:36:43 +02:00
Alexander
674b9746b1
Renamed ChangeKeyForm to ChangePasswordForm 2019-11-28 22:34:30 +02:00
Alexander
69f93b57a5
Renamed EnterKeyForm to EnterPasswordForm 2019-11-28 22:28:23 +02:00
Alexander
7d0133ee9f
Removed unused code 2019-11-28 22:25:58 +02:00
Alexander
9a443a4c45
Removed empty new line 2019-11-27 20:16:23 +02:00
Alexander
bd8c01a967 Saving setting when window was deactivated
For situations when form closed not by [X] clicking
2019-11-27 19:22:48 +02:00
Alexander
da954934f9 Repeatable code was moved to a separate method 2019-11-27 16:31:23 +02:00
Alexander
9435d311c2 Changed tooltip delay 2019-11-27 15:53:45 +02:00
Alexander
1f589473f7 Update CONTRIBUTING.md 2019-11-27 15:46:01 +02:00
Alexander
a682b24164 Added warning that text file must be in UTF-8 Encoding 2019-11-27 15:27:34 +02:00
Alexander
7996c273b4 Removed unused code 2019-11-27 15:02:27 +02:00
Alexander
78f5ce692c Fixed bug when integrate with explorer context menu doesn't work on new systems 2019-11-27 15:02:05 +02:00
Alexander
674920964c Changed text from uppercase to lowercase 2019-11-27 14:20:35 +02:00
Alexander
b7e0158cd5 Update README.md 2019-11-27 12:08:17 +02:00
Alexander
45eba62f5d Password generator window now showing in taskbar 2019-11-27 12:02:36 +02:00
Alexander
bef0cc4cf7 Removed unused code 2019-11-27 12:00:49 +02:00
Alexander
8730e1a05a Enabled AutoGenerateBindingRedirects 2019-11-27 12:00:13 +02:00
Alexander
db405c1e92 Encryption key renamed to password 2019-11-27 11:59:42 +02:00
Alexander
e500c95f5d Returned missing backward compatibility for decryption with custom salt. 2019-11-27 11:56:53 +02:00
Alexander
31a8838919 Fixed typos 2019-11-26 16:20:05 +02:00
Alexander
08b53d1919 Changed tooltip initial delay from 500 to 1 2019-11-24 22:36:50 +02:00
Alexander
b6bdfae6e3 Removed "Service Pack" from copied debug info 2019-11-24 22:36:03 +02:00
Alexander
163d23565e Code formatting 2019-11-24 22:06:42 +02:00
Alexander
ff2201d06b Popup notification timeout increased 2019-11-24 22:06:24 +02:00
Alexander
dc5a2a8394 Files sorted by folders 2019-11-24 22:03:20 +02:00
Alexander
7e346eae89 Improved password generator
- Minor design changes;
- Added able to copy all list of generated passwords;
- Added able to copy last password in list;
- Added ability to specify the number of generated passwords [1-1000];
2019-11-24 09:39:14 +02:00
Alexander
ee36ea1ae6 Fixed bug with wrong update messages 2019-11-24 09:34:52 +02:00
Alexander
4b87b4cfe6 dev 2019-11-24 09:34:04 +02:00
Alexander
d9fb8d28d7 Notifications replaced with tooltip 2019-11-24 09:33:10 +02:00
Alexander
1508d5d4b3 Debug information was simplified 2019-11-24 09:33:02 +02:00
Alexander
e0b5d616f4 Some methods was moved to a separate file 2019-11-24 09:30:31 +02:00
Alexander
e671088df7 External libraries moved to own folder 2019-11-23 22:22:53 +02:00
Alexander
e3e5449bb9 Update checking now async 2019-11-22 17:39:10 +02:00
Alexander
1f3a6ba959 Fixed missing icon 2019-11-22 17:38:41 +02:00
Alexander
81eaf98047 Improved app updater 2019-11-22 17:37:58 +02:00
Alexander
349570e97d Debug info now can display info about latest .Net Framework Information (4.8) 2019-11-21 19:56:14 +02:00
Alexander
e547eab329 Debug info was edited, now contains only app version/OS Information/.Net Framework version 2019-11-21 19:54:48 +02:00
Alexander
2947d2b4a4 "copied to clipboard" changed to "copied" 2019-11-20 20:18:06 +02:00
Alexander
6c5cdbe6b0 Update AboutFrom.Designer.cs 2019-11-20 19:53:54 +02:00
Alexander
e31188da69 Changed "copied to clipboard" fore color 2019-11-20 19:50:27 +02:00
Alexander
b7b6328c54 "debug info was copied to clipboard" changed to "copied to clipboard" 2019-11-20 19:50:03 +02:00
Alexander
420697662e Debug info now copied even by double click 2019-11-20 19:47:06 +02:00
Alexander
60352d5e4c Update README.md 2019-11-20 15:52:12 +02:00
Alexander
56f6cd8e90 Merge branch 'master' of https://github.com/Crypto-Notepad/Crypto-Notepad 2019-11-20 15:51:39 +02:00
Alexander
a56e93ae3f Update README.md 2019-11-20 15:49:51 +02:00
Alexander
d3c57215e2 Changed text of "Auto check updates" in "Settings" window 2019-11-20 15:49:32 +02:00
Alexander
c0fc18601c Changed message to enable automatic updates at program startup 2019-11-20 15:48:49 +02:00
Alexander
0acea85613 Code formatting 2019-11-20 13:59:38 +02:00
Alexander
cf376d223a Added tooltip while hovering app version text 2019-11-20 13:59:13 +02:00
Alexander
1c1c072a0f Minor design/functionality changes in "About" window
- Removed app logo;
-  Able to get (copied to clipboard) debug info by clicking to app version text;
- Left only the main information about the app;
2019-11-20 13:49:47 +02:00
Alexander
52c9adc044 Fixed bug with file name when creating the new file 2019-11-19 16:08:12 +02:00
Alexander
0582e34e1b Dialog window "Delete file" now placed in the center of the parent window 2019-11-19 16:05:29 +02:00
Alexander
b20d2c71d9 Code formatting 2019-11-19 15:57:30 +02:00
Alexander
0a50567b05 dev 2019-11-19 15:57:15 +02:00
Alexander
7111741633 Minor functionality improvements in "Password generator" window
- Added icon to the title bar;
- Saving password parameters after window closing;
- Button "Generate" disabling when the password length is less than 8 or more than 128 or when all checkboxes are unchecked;
2019-11-19 15:55:05 +02:00
Alexander
9776aaf3e9 RichTextBox updated to RICHEDIT50W 2019-11-19 15:44:18 +02:00
Alexander
e14f35b51e Added title icon to the "Change key" window 2019-11-19 15:42:49 +02:00
Alexander
e27e453ecd Fody updated to v6.0.5 2019-11-19 15:41:28 +02:00
Alexander
c29a623926 Downgrade to .NET Framework v4.6.1 2019-11-19 15:38:18 +02:00
Alexander
31971a3fd6
Update README.md 2019-11-13 15:20:48 +02:00
Alexander
04eadc4537 Update v1.6.3 2019-11-11 21:23:19 +02:00
Alexander
852fbcb5cf Updated credentials in "About" window 2019-11-11 21:13:02 +02:00
Alexander
8742f7fcad Fixed bug when file doesn't save when clicking "Save As" 2019-11-11 21:01:07 +02:00
Alexander
336c6c1a25 Added "Unnamed.cnp - Crypto Notepad" to title bar, when typing text in editor with no opened file 2019-11-11 21:00:29 +02:00
Alexander
d11d04db1f Removed unused code 2019-11-11 20:55:52 +02:00
Alexander
2e867ce35d Removed unused code 2019-11-11 20:54:35 +02:00
Alexander
84cebf9a1b Fixed "Enter Key" window blinking in upper left corner of the screen 2019-11-11 20:54:17 +02:00
Alexander
5b0bd204df Fixed "Password Generator" window blinking in upper left corner of the screen 2019-11-11 20:54:03 +02:00
Alexander
9316ab343a Removed unused code 2019-11-11 19:42:36 +02:00
Alexander
0a52852435 Fixed bug when did not appear save dialog on app close #46 2019-11-11 19:42:18 +02:00
Alexander
1ad5ddbb4e Removed unused code 2019-11-11 19:25:59 +02:00
Alexander
3d012ea475 Fixed #46 2019-11-11 19:25:39 +02:00
Alexander
9fde277705 Fixed #45 2019-11-11 19:24:19 +02:00
Alexander
598006d735 Added helper class 2019-11-11 19:21:58 +02:00
Alexander
7c367028ff Added Costura.Fody for embedding references as resources 2019-11-11 19:21:34 +02:00
Alexander
53b1df8113 Resolved #42 2019-11-11 19:19:29 +02:00
Alexander
9644a52007 Update v1.6.2 2019-11-10 10:44:34 +02:00
Alexander
3a8ef2a511 Update 1.6.2 2019-11-10 10:40:08 +02:00
Alexander
1917d137e5 Update 1.6.2 2019-11-10 10:39:03 +02:00
Alexander
31fd912910 Added hint to "Encryption" settings tab 2019-11-10 10:38:30 +02:00
Alexander
16a07484b9 Source code was simplified 2019-11-09 21:36:51 +02:00
Alexander
659f2c4184 Fixed bug with wrong text position in title bar while "Save As" file 2019-11-09 21:36:11 +02:00
Alexander
5030aa9274 Added message with recommendations to "Encryption" settings tab. 2019-11-09 21:33:35 +02:00
Alexander
182a247aa3 Fixed bug with wrong message in status panel when new version is available 2019-11-09 20:20:59 +02:00
Alexander
b0d3dd8ec0 Update dialog window now is centered parent 2019-11-09 20:19:19 +02:00
Alexander
4fc4f4247d Update 1.6.1 2019-11-09 20:09:43 +02:00
Alexander
f5b02da294 Update 1.6.1 2019-11-09 20:09:12 +02:00
Alexander
d4438625dd Update 1.6.1 2019-11-09 20:07:41 +02:00
Alexander
b808026465 Fixed performance issues on large values of Password iterations when "Save As" #43 2019-11-09 19:55:53 +02:00
Alexander
dfe7e152f6 Merge remote-tracking branch 'origin/master' 2019-11-08 07:53:27 +02:00
Alexander
202486eedf Fixed bug when file size and modified date does not calculated 2019-11-08 07:52:21 +02:00
Alexander
5bd9597eec Fixed bub when file size and modified date does not calculated 2019-11-07 21:13:04 +02:00
Alexander
a88da63bdf Merge branch 'master' of https://github.com/Crypto-Notepad/Crypto-Notepad 2019-11-07 20:23:12 +02:00
Alexander
8708bf007f Able to change visibility of all labels in status panel (except Ready label) 2019-11-07 20:23:05 +02:00
Alexander
fe26894aff Update MainForm.Designer.cs 2019-11-07 20:15:53 +02:00
Alexander
9c2b77755e Formatting code 2019-11-07 20:15:41 +02:00
Alexander
8b8cb8789d Fixed typo 2019-11-07 20:14:24 +02:00
Alexander
90dbc12f3d Swapped the app name and the file name in the window title 2019-11-07 20:13:57 +02:00
Alexander
b8b3cccc13 Fixed bug with file saving on app closing 2019-11-07 20:11:25 +02:00
Alexander
349dfbb853 Fixed bug with invisible "Save file?" dialog window 2019-11-07 20:10:55 +02:00
Alexander
efefad0c02 Added check for empty file path 2019-11-07 20:08:39 +02:00
Alexander
a208e5202c Added line breaks for better readability 2019-11-07 20:07:52 +02:00
Alexander
feb0dcb16a Swapped the app name and the file name in the window title 2019-11-07 20:05:30 +02:00
Alexander
a99140412a
Update README.md 2019-11-07 09:05:24 +02:00
Alexander
a96284a0ab
Update README.md 2019-11-06 13:55:40 +02:00
Alexander
8db3dbd89d Update 1.6.0 2019-11-06 12:35:47 +02:00
Alexander
702fa3aee6 Merge remote-tracking branch 'origin/master' 2019-11-06 12:09:14 +02:00
Alexander
2483270acd Disabled "modified" tooltip when file is locked 2019-11-06 12:08:40 +02:00
Alexander
5412d089cd Disabled "modified" tooltip when file is locked 2019-11-06 11:05:18 +02:00
Alexander
fa5fefbd3f Fixed performance issue on large values of "Password iterations"
When user try to open files with large values of "Password iterations", the interface does not freeze, but it becomes unclickable. When saving files, there will be the same effect.
2019-11-06 11:04:35 +02:00
Alexander
db1334d437 Fixed bug with incorrect settings file path 2019-11-06 00:51:18 +02:00
Alexander
dea6afad84 Added indicator (*) in main window title while text is modified 2019-11-05 22:54:16 +02:00
Alexander
b5b49ec535 Removed unused code 2019-11-05 22:41:57 +02:00
Alexander
04117e65c7 Resolved #40
Encrypt/decrypt all file formats
2019-11-05 22:30:49 +02:00
Alexander
a6d1e8caf2 Changed default "Enter Key" window postion 2019-11-05 22:12:55 +02:00
Alexander
30a4c3f9b5 Resolved #41
Save file and close it, without closing the app
2019-11-05 22:00:38 +02:00
Alexander
cf9953e9f5 Center additional windows depending on the visibility of the main window 2019-11-05 21:23:13 +02:00
Alexander
d4c8a01f71 Fixed bug with incorrect text in "modified" label 2019-11-03 20:31:06 +02:00
Alexander
d20b72f1eb Merge branch 'master' of https://github.com/Sigmanor/Crypto-Notepad 2019-10-31 21:51:03 +02:00
Alexander
9d9fb45b33 Resolved #39 2019-10-31 21:50:51 +02:00
Alexander
274a1df261
Update README.md 2019-10-29 21:29:28 +02:00
Alexander
f582da98c7 SizeSuffix method was moved to own section 2019-10-29 20:41:13 +02:00
Alexander
382164d73f Variable was simplified 2019-10-29 20:37:52 +02:00
Alexander
0fb911be5e Changed control names 2019-10-29 20:28:15 +02:00
Alexander
f04560890a Merge branch 'master' of https://github.com/Sigmanor/Crypto-Notepad 2019-10-28 20:33:32 +02:00
Alexander
6c4a4ed11b Fixed app crashes when PC is locked 2019-10-28 20:33:14 +02:00
Alexander
f98b4bb732 Added new TextBox control with placeholder, instead of realization via labels 2019-10-28 20:32:13 +02:00
Alexander
41bc4a75cd Code review
- Events was moved to own sections
- Removed line breaks
- Added #region instead of comments
2019-10-28 20:29:17 +02:00
Alexander
5a710116db Fixed bug when font settings not saved 2019-10-28 20:25:22 +02:00
Alexander
722e8872b3 Removed line numbers settings 2019-10-28 20:19:43 +02:00
Alexander
cb1fa516c4 Third-party developments list edited 2019-10-28 20:18:42 +02:00
Alexander
ca1db5a7a3 Removed line numbers 2019-10-26 00:23:36 +03:00
Alexander
b4c169db79 Aded statusPanelTimer 2019-10-26 00:12:58 +03:00
Alexander
e130e5d90f Fixed bug with password corrupt while creating new file 2019-10-26 00:12:19 +03:00
Alexander
a2a7d0db68 Improved status panel
- Removed Col and Ln.
- Added file size and modified date.
- Improved status panel performance.
2019-10-26 00:11:24 +03:00
Alexander
4f70033b41 Renamed LockFile method 2019-10-26 00:04:05 +03:00
Alexander
055dc97c26 Removed unused code 2019-10-26 00:03:05 +03:00
Alexander
cc7a7ac915
Update FUNDING.yml 2019-10-24 12:51:54 +03:00
Alexander
9de470dfa7 Fixed bug when the status panel did not work 2019-10-21 15:20:40 +03:00
Alexander
2af83d4b1d Changed show tray icon 2019-10-21 14:32:55 +03:00
Alexander
4a3fecdc1a Minor design changes 2019-10-21 14:27:02 +03:00
Alexander
305410e5f8 StatusPanel now does not work when disabled in settings 2019-10-21 14:26:40 +03:00
Alexander
6d0518dc0c LineNumbers now does not work when disabled in settings 2019-10-21 14:26:22 +03:00
Alexander
569e05dbf2 Single instance warning message now always on top of the main app window when "always on top" is enabled 2019-10-20 23:21:07 +03:00
Alexander
b475ba9931 Re-arrangement of the Settings navigation 2019-10-20 23:05:43 +03:00
Alexander
7907f3bd9c Resolved #37 2019-10-20 22:59:52 +03:00
Alexander
83e63fa8d4 Update MainForm.Designer.cs 2019-10-20 22:53:31 +03:00
Alexander
78158921c3 Fixed wrong size of line numbers on startup 2019-10-20 22:53:19 +03:00
Alexander
8153899427 Resolved #38 2019-10-20 21:29:53 +03:00
Alexander
0a903a0589 Returned wrongly disabled line numbers 2019-10-20 21:29:34 +03:00
Alexander
57a4535316 Minor design changes 2019-10-20 21:08:27 +03:00
Alexander
3de595c5e5 Update MainForm.cs 2019-10-20 21:08:08 +03:00
Alexander
d3429e6843 Disabled ability to copy text when double clicking on some labels 2019-10-18 17:30:36 +03:00
Alexander
7d724959af Was removed illogical code from the search function 2019-10-18 13:40:01 +03:00
Alexander
2f28645c46 Changed event type for "Find Next" button 2019-10-18 13:37:33 +03:00
Alexander
5b51fd26c8 Changed location of "File locked" label 2019-10-18 13:36:25 +03:00
Alexander
14a1cf0715 Changed toolbar close button size and location 2019-10-18 13:35:42 +03:00
Alexander
06cec353de Renamed ToolbarIcons method 2019-10-18 13:34:14 +03:00
Alexander
7904800f60 Changed default values for editorBorder and searchPanelBorder parameters 2019-10-18 13:33:30 +03:00
Alexander
9715c5a12f Added ability to hide toolbar close button 2019-10-18 00:37:08 +03:00
Alexander
cf2de9bc0e Added search panel border setting 2019-10-18 00:27:17 +03:00
Alexander
89e1e69f1a The close button on the search panel now has the same color as other elements on the panel 2019-10-18 00:11:47 +03:00
Alexander
5ed5f9cae0 Changed buttons style in search panel 2019-10-18 00:00:03 +03:00
Alexander
69c08e7c42 Removed X icons 2019-10-17 23:59:23 +03:00
Alexander
c6d71572dc Closing search panel when file locked 2019-10-17 23:57:57 +03:00
Alexander
551c554731 The Find Next button from search panel was returned to its standard view 2019-10-16 22:26:22 +03:00
Alexander
03cf2d0f13 Sorted TabIndex values of controls 2019-10-16 22:25:04 +03:00
Alexander
0852c57619 Added setting to display border around the editor 2019-10-15 21:00:19 +03:00
Alexander
c7240f5849 Fixed bug when the file save window did not close 2019-10-15 20:22:53 +03:00
Alexander
a7bda6495c Changed the name of the variable. 2019-10-15 20:21:28 +03:00
Alexander
ef7cb366ce Removed "Debug" from the main menu (Available on Ctrl+Space shortcut) 2019-10-15 20:20:36 +03:00
Alexander
2548674b26 The position of some variables has been changed to avoid some bugs 2019-10-15 20:19:06 +03:00
Alexander
c14f525569 Now when click "Cancel" in the "Enter Key" window, app will close. 2019-10-15 20:18:04 +03:00
Alexander
6606caf589 When auto lock on minimize, editor text was visible in windows taskbar 2019-10-15 20:13:07 +03:00
Alexander
bea1925438 Removed unused code 2019-10-15 20:06:37 +03:00
Alexander
5ac59a1b35 Removed unused code 2019-10-15 20:06:25 +03:00
Alexander
e43afdb85c Status message now empty, not invisible 2019-10-15 20:05:38 +03:00
Alexander
620aae8459 Changed error sounds while changing the encryption key 2019-10-15 20:02:10 +03:00
Alexander
71dad53ea5 Changed timeout for "Key was successfully changed" message 2019-10-15 19:54:55 +03:00
Alexander
9c44976c44 Changed check for empty variables 2019-10-15 19:48:17 +03:00
Alexander
adaf4b7f3b Disabled system sounds in text fields 2019-10-15 19:13:08 +03:00
Alexander
c280500615 Code formatting 2019-10-15 19:09:51 +03:00
Alexander
35949efb8c Renamed some controls 2019-10-13 15:55:13 +03:00
Alexander
bb8a62c06d Disabling shortcut keys while file locked 2019-10-13 15:25:32 +03:00
Alexander
62d4f3d54a Renamed FileMainMenu_DropDownOpened 2019-10-13 15:24:47 +03:00
Alexander
b1cc915d83 Added placeholder for file locked enter key textbox 2019-10-13 15:08:51 +03:00
Alexander
f7ec7824d8 Changed file locked button size 2019-10-13 15:08:11 +03:00
Alexander
4cdb97be4c Reworked close/auto save functions 2019-10-13 14:59:01 +03:00
Alexander
c0c806560d Added owner to all message boxes 2019-10-13 14:57:47 +03:00
Alexander
c2b722cd30 Added placeholders for textboxes 2019-10-13 14:55:20 +03:00
Alexander
9386f6844a Changed some names 2019-10-13 14:54:45 +03:00
Alexander
f089a07a28 Added new icons 2019-10-13 14:49:43 +03:00
Alexander
d08552c7cc Added testers info 2019-10-13 14:48:56 +03:00
Alexander
483c08440e Moving to "Hungarian Notation Naming" 2019-10-11 13:39:15 +03:00
Alexander
0f28dde953 Reworked "Auto lock on minimize" function 2019-10-11 13:38:15 +03:00
Alexander
e8e2167c3d Resolved #35 2019-10-11 13:37:05 +03:00
Alexander
5ffbe004bf Resolved #36 2019-10-11 13:31:24 +03:00
Alexander
773943f826 Auto generated code 2019-10-04 23:03:50 +03:00
Alexander
d5499ae724 Removed unused code 2019-10-04 23:02:12 +03:00
Alexander
e37bdf9d13 Auto generated code 2019-10-04 22:00:37 +03:00
Alexander
718968fdf5 Сode simplification 2019-10-04 21:48:55 +03:00
Alexander
cdd4b05590 Changed statusPanel.TrayLocation 2019-10-04 21:47:57 +03:00
Alexander
8593e6252d More style settings for line numbers 2019-10-04 21:46:10 +03:00
Alexander
64fb168672 Added icons copyright 2019-10-04 21:44:59 +03:00
Alexander
2c629b44a2 Moved properties from designer 2019-10-04 21:44:30 +03:00
Alexander
4df471f076 Renamed some properties 2019-10-04 21:41:34 +03:00
Alexander
7281d0bae4 Update method improved 2019-10-02 19:35:34 +03:00
Alexander
acaab489a2 Search panel design changes 2019-10-02 19:34:44 +03:00
Alexander
01a82963bd Resolved #34 2019-10-02 19:33:26 +03:00
Alexander
0af9db20f3 Resolved #34 2019-10-02 19:24:52 +03:00
Alexander
0102a3efb9 Resolving class naming inconsistencies 2019-09-28 22:57:03 +03:00
Alexander
d7279c111b Renamed settings 2019-09-28 22:56:25 +03:00
Alexander
157b148e85 Autosave on lock 2019-09-28 22:55:21 +03:00
Alexander
3b9b930667 Improved text search 2019-09-28 22:54:34 +03:00
Alexander
353951cad7 Renamed linenum_rtf.cs 2019-09-28 22:47:52 +03:00
Alexander
7c33fb4372 Debug variables update 2019-09-28 22:45:20 +03:00
Alexander
505a7caff4 Removed unused variables 2019-09-28 22:44:14 +03:00
Alexander
e0d55d657e .net framework update 2019-09-28 22:43:17 +03:00
Alexander
4845d52a35 Visual Studio update 2019-09-28 22:40:25 +03:00
Alexander
301348cce3 Merge remote-tracking branch 'origin/master' 2019-09-28 22:38:13 +03:00
Alexander
3b713780dd Added #31 2019-09-28 22:37:04 +03:00
Alexander
c064e95c39 Added #30 2019-09-28 22:29:24 +03:00
Alexander
e43b503b69 Added #33 2019-09-28 22:27:05 +03:00
Alexander
5f433088ff Added #29 2019-09-28 22:25:03 +03:00
Alexander
c7992b0410 Added #32 2019-09-28 22:23:52 +03:00
Alexander
86656d85ca Fixed #28 2019-09-28 22:14:24 +03:00
Alexander
7f71249c4e Update 1.6.0 2019-09-28 22:05:10 +03:00
Alexander
962300e62a
Update README.md 2019-09-08 01:14:24 +03:00
Alexander
028758b3cf
Update README.md 2019-09-08 01:13:10 +03:00
Alexander
c345c33714
Update README.md 2019-08-31 15:45:54 +03:00
Alexander
0284dff95a Update 1.5.1 2019-08-30 13:15:09 +03:00
Alexander
7d32a2f1ef Minor design changes 2019-08-30 13:12:17 +03:00
Alexander
c9d5297658 Update 1.5.1 2019-08-30 13:11:52 +03:00
Alexander
0df8dba2cb Added notification in window title bar when file saved 2019-08-30 13:07:26 +03:00
Alexander
300fadf616 Fixed #27 2019-08-30 13:05:29 +03:00
Alexander
1a7eeb1bc7 Fixed #26 2019-08-30 12:21:55 +03:00
Alexander
682e1d5fa7 Minor design changes 2019-08-30 12:20:43 +03:00
Alexander
9007910739 Update 1.5.0 2019-08-28 13:16:10 +03:00
Alexander
69854dc467 Revert "Update 1.5.0"
This reverts commit 9014059f3e.
2019-08-28 13:14:05 +03:00
Alexander
3cfd869db6 Update 1.5.0 2019-08-28 13:09:18 +03:00
Alexander
3002536f37 Merge remote-tracking branch 'origin/master' 2019-08-28 13:08:56 +03:00
Alexander
9014059f3e Update 1.5.0 2019-08-28 13:07:39 +03:00
Alexander
64f44049fc
Update README.md 2019-08-28 13:03:24 +03:00
Alexander
9d557d51f7 Fixed glitch with line numbers after save setting 2019-08-28 12:17:48 +03:00
Alexander
00a07da934 Minor design changes 2019-08-28 12:04:05 +03:00
Alexander
5d69c697e2 Removed unused code 2019-08-28 12:03:37 +03:00
Alexander
9dd75fa5c2 Minor design changes 2019-08-28 12:03:26 +03:00
Alexander
16b43e5d87 Fixed numbers position 2019-08-28 12:03:13 +03:00
Alexander
e66b4bc2c3 Fixed glitch with line numbers width 2019-08-27 11:35:02 +03:00
Alexander
f48eb3c7cf Removed debug strings 2019-08-27 10:07:32 +03:00
Alexander
c397b4fd02 Disabled zooming in the editor 2019-08-27 10:04:44 +03:00
Alexander
a3f4d4b06d Fixed glitch with "line numbers" panel 2019-08-23 23:46:11 +03:00
Alexander
7ffdf8a0a6 Minor design changes in search panel 2019-08-23 21:41:21 +03:00
Alexander
8d9c275eb7 Removed unused code 2019-08-23 21:40:31 +03:00
Alexander
12101a382c Fixed bug with incorrect file name 2019-08-22 22:31:10 +03:00
Alexander
8fb1438b36 Custom "RichTextBox" replaced to common "RichTextBox" 2019-08-22 22:30:34 +03:00
Alexander
d9271d947b Custom "RichTextBox" replaced to common "RichTextBox" 2019-08-22 20:55:56 +03:00
Alexander
739c3e049e Enabled "AutoCompleteMode" for "Font name" and "Font size" combobox 2019-08-22 20:51:14 +03:00
Alexander
8fa907b23f Version increase 2019-08-22 20:06:28 +03:00
Alexander
96be69dd77 Improved search text functionality 2019-08-22 20:05:18 +03:00
Alexander
54334b53f8 Removed search highlight color settings 2019-08-22 20:02:43 +03:00
Alexander
e095e9acd8 Minor design changes 2019-08-21 23:45:15 +03:00
Alexander
1fe20ae7d2 Fixed glitch with line numbers 2019-08-21 16:21:00 +03:00
Alexander
439e8c166f Fixed bug when some icons on toolbar was inactive 2019-08-21 16:19:55 +03:00
Alexander
905dc5ba0b Fixed bug when the password entry window was opened twice 2019-08-21 16:19:10 +03:00
Alexander
372d614f7a Fixed glitch with line numbers 2019-08-21 16:18:14 +03:00
Alexander
9a14601f66 Fixed glitch with line numbers 2019-08-21 15:33:42 +03:00
Alexander
57b244ae95 Removed unused control 2019-08-21 15:17:48 +03:00
Alexander
1b37bd790b Renamed colorDialog 2019-08-21 15:17:18 +03:00
Alexander
d956c3dd3b Resolved #24 2019-08-21 14:15:16 +03:00
Alexander
562387d148 Enabled TAB indent 2019-08-21 12:33:38 +03:00
Alexander
bbd488875f Resolved #23 2019-08-21 12:23:51 +03:00
Alexander
bb6b681ecb Migrating to "Visual Studio Community 2019" 2019-08-21 12:20:13 +03:00
Alexander
e0184d76db Resolved #25 2019-08-21 12:09:05 +03:00
Alexander
9bdec6b7ca Minor design changes 2019-08-20 11:17:02 +03:00
Alexander
5e68ef592f Fixed #22 2019-08-20 00:09:52 +03:00
Alexander
7268898afb Removed unused code 2019-08-20 00:07:28 +03:00
Alexander
609d8107a7 Renamed "SelectionChanged" event // added new string to "Debug" 2019-08-19 22:46:14 +03:00
Alexander
1e9f292f05 Merge remote-tracking branch 'origin/master' 2019-08-19 22:35:35 +03:00
Alexander
bedb8aa611 Added #19 2019-08-19 22:35:20 +03:00
Alexander
1b17abf1d3
Update README.md 2019-08-03 11:42:24 +03:00
Alexander
49f8ed2f36
Update README.md 2019-06-29 12:39:08 +03:00
Alexander
2fbde8e70e
Update FUNDING.yml 2019-06-23 14:34:25 +03:00
Alexander
04bcad5d57
Update FUNDING.yml 2019-06-23 14:22:58 +03:00
Alexander
f60ba579c4
Create FUNDING.yml 2019-06-23 13:43:03 +03:00
Alexander
8754c1397c
Update README.md 2019-01-09 01:28:19 +02:00
Alexander
4186cfd11f
Update README.md 2019-01-09 01:27:32 +02:00
Alexander
1ead8352ec
Update README.md 2019-01-08 13:49:42 +02:00
Alexander
bba3a44d68 Update 1.4.0 2019-01-08 11:35:58 +02:00
Alexander
0b36ff8fab Update 1.4.0 2019-01-08 11:32:47 +02:00
Alexander
163879e051 Update SettingsForm.cs 2019-01-08 11:32:29 +02:00
Alexander
2db0ecf2c7 On "Save As" file name was incorrect or empty. 2019-01-07 12:32:23 +02:00
Alexander
b4a1c75ddf Merge branch 'master' of https://github.com/Sigmanor/Crypto-Notepad 2019-01-07 12:09:55 +02:00
Alexander
a71d7d20e4 Simplified variables that stored the name of an open file 2019-01-07 12:09:52 +02:00
Alexander
e59ca61c59 Update debug menu 2019-01-07 12:09:14 +02:00
Alexander
05e7a8e01e App name now stored in variable 2019-01-07 12:08:47 +02:00
Alexander
a091168c41 Added the ability to close the "About" window by the "esc" button 2019-01-07 12:04:49 +02:00
Alexander
c51960a488 simplified this 2019-01-07 12:03:58 +02:00
Alexander
cacd39e930 Settings button on toolbar was moved 2019-01-07 12:03:30 +02:00
Alexander
1a5e81a778
Update README.md 2019-01-06 01:41:53 +02:00
Alexander
a50ed38a5b
Update README.md 2019-01-06 01:40:40 +02:00
Alexander
1d22e34794
Update README.md 2019-01-06 01:27:33 +02:00
Alexander
bb1051a776
Update README.md 2019-01-06 01:05:15 +02:00
Alexander
abad9fc422 Fixed not working "auto save on lock" when you click on the "Lock" toolbar button 2019-01-04 14:17:03 +02:00
Alexander
c5c914e849 Changed name of "Lock" tollbar button 2019-01-04 14:14:12 +02:00
Alexander
f3ee1151b6 Minor design changes 2019-01-04 13:48:39 +02:00
Alexander
0277d2b9d9 Update SettingsForm.cs 2019-01-04 13:48:24 +02:00
Alexander
30aec3fa0f Added DotNetZip library credentials 2019-01-04 13:48:15 +02:00
Alexander
f82a58207a Update Crypto Notepad.csproj 2019-01-04 13:16:51 +02:00
Alexander
a6216e00ad Update Updater.exe 2019-01-04 13:16:46 +02:00
Alexander
c0e3f7ecf4 Update MainForm.cs 2019-01-04 13:16:40 +02:00
Alexander
0fbd631836 Merge branch 'master' of https://github.com/Sigmanor/Crypto-Notepad 2019-01-04 13:15:12 +02:00
Alexander
23811c481a Returned missing backward compatibility for decryption 2019-01-04 13:15:06 +02:00
Alexander
34223992a7
Update README.md 2019-01-03 10:32:49 +02:00
Alexander
e52acce5de
Update README.md 2019-01-02 21:37:28 +02:00
Alexander
d3a0bc848a
Update README.md 2019-01-02 21:36:32 +02:00
Alexander
07b2c7701d
Update README.md 2019-01-02 21:21:29 +02:00
Alexander
485d5512c5 Edited github links 2019-01-02 21:10:41 +02:00
Alexander
c990fc2da7 Merge branch 'master' of https://github.com/Sigmanor/Crypto-Notepad 2019-01-02 21:08:50 +02:00
Alexander
0a37093957 Updater was moved to own repo 2019-01-02 21:08:44 +02:00
Alexander
af12620b05
Update README.md 2019-01-02 14:53:32 +02:00
Alexander
21dd573413
Update LICENSE 2019-01-02 14:25:39 +02:00
Alexander
28273f9987 Minor design changes 2018-12-30 12:57:16 +02:00
Alexander
e20f19539b Merge branch 'master' of https://github.com/Sigmanor/Crypto-Notepad 2018-12-29 18:26:56 +02:00
Alexander
0320a7c9fd Added new settings 2018-12-29 18:26:51 +02:00
Alexander
5f6cb9552c Added new settings
Added icons to the main menu
Able to make toolbar color like editor background color
2018-12-29 18:25:52 +02:00
Alexander
a6a24f8e0f Added new settings 2018-12-29 18:24:45 +02:00
Alexander
bcac10f4dd Minor design changes 2018-12-29 18:24:17 +02:00
Alexander
ffc5927d60 Minor design changes 2018-12-29 18:23:49 +02:00
Alexander
fd8476b8bf Changed all icons 2018-12-29 18:23:10 +02:00
Alexander
290d35b0d4
Update README.md 2018-12-29 17:03:27 +02:00
Alexander
da17796db5
Update README.md 2018-12-29 00:49:12 +02:00
Alexander
755cc48242 Added if DEBUG directive for MainVariablesToolStripMenuItem 2018-12-28 13:11:02 +02:00
Alexander
e2ffd39c3f Merge branch 'master' of https://github.com/Sigmanor/Crypto-Notepad 2018-12-28 12:58:30 +02:00
Alexander
82f6514d4b Removed unused code 2018-12-28 12:58:22 +02:00
Alexander
3a72117202 Added Dispose method 2018-12-28 12:58:07 +02:00
Alexander
c257ef5a6e Simplified some names 2018-12-28 12:57:35 +02:00
Alexander
37d53a8288
Update README.md 2018-12-27 11:50:02 +02:00
Alexander
947aba84ee Merge branch 'master' of https://github.com/Sigmanor/Crypto-Notepad 2018-12-27 00:31:07 +02:00
Alexander
1eac6001ab Added check for null when removing registry keys 2018-12-27 00:31:01 +02:00
Alexander
898427b26a Update MainForm.resx 2018-12-27 00:30:07 +02:00
Alexander
9eeb49b1c6 Renamed debug menu item 2018-12-27 00:29:37 +02:00
Alexander
3941333f9f Debug info now writing to the output in Visual Studio 2018-12-27 00:29:00 +02:00
Alexander
8a8a3fbf96 Removed unused code 2018-12-27 00:28:00 +02:00
Alexander
9df3b259c0 Removed unused code 2018-12-27 00:27:30 +02:00
Alexander
c0eda70085 Version update 2018-12-27 00:26:50 +02:00
Alexander
f0c230ad4f Readme update 2018-12-26 15:06:16 +02:00
Alexander
2141e29593 EnterKeyForm code now is more readable
1) Сode has been divided into blocks and commented.
2) Almost all names now starts from an uppercase.
2018-12-25 17:55:56 +02:00
Alexander
1febb7e3fa ChangeKeyForm code now is more readable
1) Сode has been divided into blocks and commented.
2) Almost all names now starts from an uppercase.
2018-12-25 17:55:15 +02:00
Alexander
5220065ff0 AboutFrom code now is more readable
1) Сode has been divided into blocks and commented.
2) Almost all names now starts from an uppercase.
2018-12-25 17:49:29 +02:00
Alexander
5443de5378 SettingsForm code now is more readable
1) Сode has been divided into blocks and commented.
2) Almost all names now starts from an uppercase.
2018-12-25 17:36:17 +02:00
Alexander
f63b3c1e05 MainForm code now is more readable
1) Сode has been divided into blocks and commented.
2) Almost all names now starts from an uppercase.
3) Added debug menu.
2018-12-25 17:29:29 +02:00
Alexander
005a3bf1fc Fixed #18 2018-12-25 17:22:59 +02:00
Alexander
62492e1ec8 Fixed #17 2018-12-25 17:15:29 +02:00
Alexander
62f60f1149 Update 1.3.0 2018-12-20 01:25:21 +02:00
Alexander
256f158ce9 Removed testing code 2018-12-20 01:16:32 +02:00
Alexander
e5d40cbd19 Added shortcuts 2018-12-20 01:10:40 +02:00
Alexander
ac322b1e47 Minor button location changes 2018-12-20 01:07:35 +02:00
Alexander
a909f6925a Removed unused code 2018-12-20 01:06:35 +02:00
Alexander
f3ddd249b4 testing 2018-12-20 00:59:21 +02:00
Alexander
92f4fec08e Merge branch 'dev' of https://github.com/Sigmanor/Crypto-Notepad into dev 2018-12-20 00:57:07 +02:00
Alexander
f9237684f9 testing 2018-12-20 00:56:59 +02:00
Alexander
268499286e
Merge pull request #15 from h5p9sl/master
Fixed RNG generating null-bytes in metadata; causing read errors.
2018-12-20 00:53:59 +02:00
h5p9sl
ca4ac3e5ce Fixed RNG generating null-bytes in metadata; causing read errors. 2018-12-19 02:33:31 -07:00
Alexander
92b7d5fede Checking if "shell" section is missing 2018-12-17 16:42:08 +02:00
Alexander
e27c9e0d99 Left only 2 items in context menu 2018-12-17 15:58:37 +02:00
Alexander
6fb1bf3813 Removed debug code 2018-12-17 15:57:22 +02:00
Alexander
1732efbc06 Fixed bug when the app did not close 2018-12-17 15:03:08 +02:00
Alexander
ad6b903caa Registry entry for new function 2018-12-17 14:58:07 +02:00
Alexander
92933ebc34 Version update 2018-12-17 13:20:55 +02:00
Alexander
789642ff83 Renamed source files 2018-12-17 13:20:40 +02:00
Alexander
82e3623799 Added integrate with windows context menu settings 2018-12-17 13:20:23 +02:00
Alexander
cb46285315 Added integrate with windows context menu settings 2018-12-17 13:16:48 +02:00
Alexander
137203b6ff Renamed source files 2018-12-17 13:16:17 +02:00
Alexander
523254a9c3 Renamed source files 2018-12-17 13:14:38 +02:00
Alexander
582a5dcba0 Renamed source files 2018-12-17 13:13:42 +02:00
Alexander
27a40f08fa Code review 2018-12-17 13:04:26 +02:00
Alexander
5fab54873a Added integrate with windows context menu settings 2018-12-17 13:03:05 +02:00
Alexander
fffae6b37f Added integrate with windows context menu settings 2018-12-17 13:02:24 +02:00
Alexander
b545efaed4 Extended hash algorithm menu 2018-12-17 13:01:47 +02:00
Alexander
144d62784f Minor design changes 2018-12-17 13:00:31 +02:00
Alexander
eefc16d0f5 changed the logic of the "Associate with *.cnp files" function 2018-12-17 12:59:31 +02:00
Alexander
72dac3cfa3 Send To fixes 2018-12-17 12:55:00 +02:00
Alexander
251a1298bf Merge branch 'master' of https://github.com/Sigmanor/Crypto-Notepad 2018-12-17 12:52:44 +02:00
Alexander
c5b09db7a8 Fixed #13 2018-12-17 12:52:40 +02:00
Alexander
9cf232e8ec Readme update 2018-12-15 03:35:13 +02:00
Alexander
df53a93ad4 Encryption key now can't be empty 2018-12-13 13:31:05 +02:00
Alexander
6bba0f92e5 Update CONTRIBUTING.md 2018-12-13 01:04:02 +02:00
Alexander
5fd3694865 Update CONTRIBUTING.md 2018-12-13 00:54:06 +02:00
Alexander
b1788dd350 Merge branch 'master' of https://github.com/Sigmanor/Crypto-Notepad 2018-12-12 16:42:46 +02:00
Alexander
45e237f797 Minor design changes in "Change Key" window 2018-12-12 16:42:41 +02:00
Alexander
e7cc49b6f6
Update README.md 2018-12-12 01:20:13 +02:00
Alexander
bf3fd963ac
Update README.md 2018-12-12 01:05:50 +02:00
Alexander
d6b0de3b4d
Create CONTRIBUTING.md 2018-12-12 01:01:05 +02:00
Alexander
956e02c9b5
Create PULL_REQUEST_TEMPLATE.md 2018-12-11 23:24:05 +02:00
Alexander
3b41ce26cf
Create CODE_OF_CONDUCT.md 2018-12-11 15:17:01 +02:00
Alexander
7b5562c757 Fixed bug with empty filename field while saving/creating a file 2018-12-10 14:47:36 +02:00
Alexander
510547fd76 Changed logic of checking updates 2018-12-09 23:27:18 +02:00
Alexander
7483b6c7b2 Fixed empty file name 2018-12-09 22:47:56 +02:00
Alexander
839d4d9298 Added feature #11 2018-12-09 16:23:37 +02:00
Alexander
e442c1888c Added create shortcut function 2018-12-09 16:10:44 +02:00
Alexander
c45c52cca2 Cleanup code 2018-12-09 16:09:42 +02:00
Alexander
569ae5cbe1 Changed eye icon behavior 2018-12-09 16:08:07 +02:00
Alexander
685f915767 Added IWshRuntimeLibrary 2018-12-09 15:37:57 +02:00
Alexander
429ad8adbb
Update README.md 2018-12-09 00:39:31 +02:00
Alexander
ffb80576cc Updated documentation link 2018-12-08 16:58:46 +02:00
Alexander
80fb2b5f88 Updated documentation link 2018-12-08 16:57:55 +02:00
Alexander
02eb1a3199 Merge branch 'master' of https://github.com/Sigmanor/Crypto-Notepad 2018-12-08 12:54:16 +02:00
Alexander
273a62480a Update 1.2.0 2018-12-08 12:54:08 +02:00
Alexander
1717f4657e Year update 2018-12-08 04:10:46 +02:00
Alexander
d347ab5adf
Update README.md 2018-12-08 03:59:10 +02:00
Alexander
3168a9b3a9 Update README.md 2018-12-07 14:37:30 +02:00
Alexander
8e2a9db3a2 Edited documentation link 2018-12-07 14:21:56 +02:00
Alexander
db1114d3a7 Merge branch 'master' of https://github.com/Sigmanor/Crypto-Notepad 2018-12-07 14:03:27 +02:00
Alexander
1e56050a8d Fixed bug with editor background color 2018-12-07 14:03:22 +02:00
Alexander
8a5a7d4dae Update issue templates 2018-12-07 13:25:40 +02:00
Alexander
46d07e4b1b Update issue templates 2018-12-07 12:07:40 +02:00
Alexander
b2ef1aa6cc Update issue templates 2018-12-07 12:06:57 +02:00
Alexander
271a38f87c Readme update 2018-12-06 15:34:09 +02:00
Alexander
740cdcf385 Code cleaned up 2018-12-06 15:24:12 +02:00
Alexander
f878110bd6 "Auto-save on lock" now have default value 2018-12-06 15:17:03 +02:00
Alexander
5971cad074 Minor design changes 2018-12-06 15:16:01 +02:00
Alexander
0d0b0288ce Removed unused code 2018-12-06 15:15:33 +02:00
Alexander
0f0e17e670 "The Salt" is hidden now for new users
The salt now is randomized by default, no sense to show this option to new users.
2018-12-06 15:14:47 +02:00
Alexander
5f1aba25a2 Removed able to getting salt from mac 2018-12-06 15:07:51 +02:00
Alexander
8abeff4f2b Changed some default values 2018-12-06 15:02:12 +02:00
Alexander
88eaeff0f1 Revert "Changed some default values"
This reverts commit d2729f8276.
2018-12-06 15:01:36 +02:00
Alexander
d2729f8276 Changed some default values 2018-12-06 15:01:13 +02:00
Alexander
90bfeea503 Revert "Changed some default values"
This reverts commit c75b63dc7b.
2018-12-06 15:00:24 +02:00
Alexander
c75b63dc7b Changed some default values 2018-12-06 14:54:49 +02:00
Alexander
d988b1fc36 Fixed bug with auto-save on lock 2018-12-06 14:53:01 +02:00
Alexander
186410820e Update 1.2.0 2018-12-06 13:18:24 +02:00
Alexander
5f39342f0e Added information about contributors 2018-12-06 13:17:07 +02:00
Alexander
6fc9c125a8 Edited personal website link 2018-12-06 13:15:33 +02:00
Alexander
a3ba2a221d Removed unused code 2018-12-06 13:14:03 +02:00
Alexander
7ba9b6aca0
Merge pull request #10 from h5p9sl/master
Backwards compatibility & More security
2018-12-06 12:30:26 +02:00
h5p9sl
9841a0f16e Added AESMetadata.WriteMetadata() 2018-12-05 18:30:35 -07:00
h5p9sl
c155dc6d9c Cleaned up AESMetadata class code 2018-12-03 01:12:19 -07:00
h5p9sl
31b7313322 Fixed EncryptedString.Set( NULL ) error. 2018-11-30 20:11:41 -07:00
h5p9sl
7ddf8f812c Added option to randomize salts (by default). 2018-11-30 20:03:03 -07:00
h5p9sl
c9bd9f436d Added EncryptedString class to encrypt key in memory. 2018-11-30 19:29:19 -07:00
h5p9sl
834c91d5af Added backwards compatibility for file loading 2018-11-30 04:03:21 -07:00
h5p9sl
ee87e94da0 Use RijindaelManaged.GenerateIV method instead of manually generating random IV 2018-11-29 16:21:45 -07:00
Alexander
c471a19ba0 Update 1.1.3 2018-11-24 18:47:24 +02:00
Alexander
6f21bb09b3
Merge pull request #9 from h5p9sl/master
Added file metadata, and randomized initialization vectors.
2018-11-24 18:23:11 +02:00
h5p9sl
5de4fb5563 Added file metadata, and randomized initialization vectors. 2018-11-21 23:19:39 -07:00
Alexander
47d8d3bd7d Update 1.1.2 2018-02-17 14:52:14 +02:00
Alexander
ca13760d47 Version update 2018-02-17 14:51:36 +02:00
Alexander
e8db6fc29c Fixed #8 2018-02-17 14:48:03 +02:00
Alexander
fb660011aa Version update 2018-02-17 14:47:39 +02:00
Alexander
af65cc936a Minor fixes in AboutForm 2018-02-17 14:47:21 +02:00
Sigmanor
12b717ffa3 Edited link 2017-06-20 18:30:47 +03:00
Sigmanor
e898cf968d Added new site 2017-06-17 21:40:01 +03:00
Sigmanor
8abb97a48c Added partners section 2017-06-17 21:26:47 +03:00
Sigmanor
637e0d97b7 Added partners section 2017-06-17 21:25:04 +03:00
Sigmanor
4cce6cd230 Version update 2017-05-31 22:18:54 +03:00
Sigmanor
4432a5d3fd Update 1.1.1 2017-05-31 22:18:32 +03:00
Sigmanor
0ff70fe612 Fixed #6 2017-05-31 22:10:09 +03:00
Sigmanor
269afc798f Readme update 2017-05-25 20:11:44 +03:00
Sigmanor
f3183ccf56 Readme update 2017-05-25 19:49:34 +03:00
Sigmanor
276831d7b9 Added correct indentations in customRTB 2017-05-13 20:52:02 +03:00
Sigmanor
5bcaefc02b Fixed strange behavior with the cursor in customRTB after opening files 2017-05-13 20:46:48 +03:00
Sigmanor
3be815d60f Version update 2017-05-13 20:01:43 +03:00
Sigmanor
926864b03e Fixed bug with scrolling mouse wheel 2017-05-13 20:01:28 +03:00
Sigmanor
e3d1301414 fixed a typo 2017-02-26 12:25:12 +02:00
Sigmanor
ea72d986fa Year updated 2017-02-11 00:15:11 +02:00
Sigmanor
4e6b6c5e30 Version update 2017-02-10 23:30:42 +02:00
Sigmanor
4138dda88b Features update 2017-02-10 23:27:26 +02:00
Sigmanor
76474be973 Update 1.1.0 2017-02-10 23:27:12 +02:00
Sigmanor
d03522cc5c Fixed bug with file saving 2017-02-10 23:22:50 +02:00
Sigmanor
709ebd4ca9 Minor version update 2017-02-10 23:01:23 +02:00
Sigmanor
66af626e5e Rewritten save confirmation function 2017-02-09 23:42:08 +02:00
Sigmanor
14bdd8aab6 Added system requirements 2017-02-08 07:57:42 +02:00
Sigmanor
eaf50f7efd Some dirty hack 😳 2017-02-05 22:48:16 +02:00
Sigmanor
ac7706da33 Confirm save file when drag and drop 2017-02-05 22:47:31 +02:00
Sigmanor
302636701d Opening links by holding the shift key 2017-02-05 22:38:26 +02:00
Sigmanor
25545a8de7 Changed text selection behavior 2017-02-05 22:30:06 +02:00
Sigmanor
29a1767a41 Removed unused link 2017-02-05 22:29:40 +02:00
Sigmanor
d13214a563 Able auto save when locked 2017-02-05 22:25:58 +02:00
Sigmanor
f3ecd89f4c Added drag and drop support for txt and cnp files #2 2017-02-03 23:38:15 +02:00
Sigmanor
673b171646 Added detection of url and mailto links #3 2017-02-03 23:35:56 +02:00
Sigmanor
13cef469ac Version update 2017-02-03 23:32:50 +02:00
Sigmanor
afae9baf6d Readme update 2016-01-31 18:23:34 +02:00
Sigmanor
95a62faeea Updated update files 2016-01-28 18:36:58 +02:00
Sigmanor
8e2f4a96ae Version update 2016-01-28 18:36:45 +02:00
Sigmanor
21a0714f6a Screenshot was updated 2016-01-28 18:33:44 +02:00
Sigmanor
f29a55514d Resources update 2016-01-28 18:29:56 +02:00
Sigmanor
99a70d451e Overriding variables 2016-01-27 19:19:25 +02:00
Sigmanor
141da9b4ee Exception handling when checking for updates 2016-01-27 19:18:55 +02:00
Sigmanor
3d69fc3d4c Deleted unused code 2016-01-27 19:16:08 +02:00
Sigmanor
74a35540c3 Fixed bug with the search panel
Fixed bug: when you open a new file with the opened search panel, all
the text becomes highlighted.
2016-01-27 18:41:38 +02:00
Sigmanor
b77fe02a0f Value of the variable was changed 2016-01-27 18:26:19 +02:00
Sigmanor
6681cda2c9 Changed warning notification text align 2016-01-27 18:21:17 +02:00
Sigmanor
c7907aeba9 Enabling MinimizeBox only on lock 2016-01-26 19:08:17 +02:00
Sigmanor
71b13ca6fb Public variables now stored in program.cs 2016-01-26 19:07:17 +02:00
Sigmanor
57326babd9 Disabling icons in toolbar. 2016-01-26 18:40:18 +02:00
Sigmanor
54bc5c6571 Notification when open "Encrypt/Decrypt" tab 2016-01-25 20:29:36 +02:00
Sigmanor
bf4a61b967 key var renamed to encryptionKey 2016-01-25 20:27:32 +02:00
Sigmanor
c503decb08 filename var 2016-01-25 20:26:55 +02:00
Sigmanor
154a8bf24e Added quotes 2016-01-25 20:26:39 +02:00
Sigmanor
0d32079219 key var renamed to encryptionKey 2016-01-25 20:24:31 +02:00
Sigmanor
cfbff03e47 Deleted unused using 2016-01-25 20:24:01 +02:00
Sigmanor
806e8b6ea2 Deleted unused var's 2016-01-25 20:23:42 +02:00
Sigmanor
66aa4a1606 Added beep on some notifications 2016-01-25 20:22:58 +02:00
Sigmanor
126fcf5aec key var renamed to encryptionKey 2016-01-25 20:22:01 +02:00
Sigmanor
c08462ab91 Changed default value 2016-01-25 20:17:48 +02:00
Sigmanor
5385319538 Deleted warning message box 2016-01-25 20:15:14 +02:00
Sigmanor
f809796645 Changing key notifications were changed 2016-01-25 14:49:40 +02:00
Sigmanor
7efb253534 Added a message when key was changed 2016-01-25 14:45:31 +02:00
Sigmanor
a44fb626d7 Fixed bug when closing window and saving file 2016-01-25 13:43:56 +02:00
Sigmanor
88863ac8a9 Displaying filename in title bar 2016-01-25 12:41:38 +02:00
Sigmanor
3739f5f1f1 Empty file name bug was fixed 2016-01-25 12:40:31 +02:00
Sigmanor
5cecf51ee4 Save on closing bugs fixed 2016-01-25 12:39:30 +02:00
Sigmanor
5ce38ccfb5 Renamed variable 2016-01-25 12:38:07 +02:00
Sigmanor
5675643bfd Changed window size in designer 2016-01-25 12:36:06 +02:00
Sigmanor
3818e34c05 Search panel was redesigned 2016-01-25 12:35:45 +02:00
Sigmanor
a087694d0d Removed status panel 2016-01-25 12:34:53 +02:00
Sigmanor
a0e784dbba Changed statusStrip labels position 2016-01-25 00:19:49 +02:00
Sigmanor
3a9ec3e6e0 Renamed menu items 2016-01-24 23:33:58 +02:00
Sigmanor
30608a0ecd Save window pos/size/state 2016-01-24 23:11:23 +02:00
Sigmanor
e1cea72396 Load window pos/size/state 2016-01-24 23:11:12 +02:00
Sigmanor
94dcf8c0e0 Saving wrap settings on menu item clicking 2016-01-24 23:09:42 +02:00
Sigmanor
3b71b5d323 Display settings window 2016-01-24 23:07:44 +02:00
Sigmanor
040a70d181 Improved text change detection 2016-01-24 23:06:50 +02:00
Sigmanor
d289e2300e Changed var publicity 2016-01-24 23:05:35 +02:00
Sigmanor
d1edff1bbd Deleted try-catch 2016-01-24 23:04:24 +02:00
Sigmanor
4381714966 Changed message text on windows closing 2016-01-24 23:00:03 +02:00
Sigmanor
045778aa4d Remove unnecessary code 2016-01-24 22:58:27 +02:00
Sigmanor
b25dee9fba Changed const 2016-01-24 22:56:49 +02:00
Sigmanor
f01a7abda1 Renamed menu item 2016-01-24 22:54:45 +02:00
Sigmanor
3c09622150 Able to open files of all formats 2016-01-24 22:48:34 +02:00
Sigmanor
fa7fbc2a2b Deleted unnecessary var 2016-01-24 22:42:40 +02:00
Sigmanor
580fc43234 Added WindowState parameter 2016-01-24 22:40:23 +02:00
Sigmanor
3600d9d8a4 Added .gitattributes 2016-01-24 22:30:21 +02:00
Sigmanor
2eb99e3508 Renamed menu item 2016-01-24 21:55:22 +02:00
Sigmanor
f19a6abe0d Version update to 1.0.0 2016-01-24 21:54:49 +02:00
Sigmanor
2f7b0d9c19 Changed default highlights color 2016-01-24 21:50:11 +02:00
Sigmanor
ab1f73f55a Features edit 2016-01-24 21:22:29 +02:00
Sigmanor
bcbf4195a6 Updated update files 2016-01-23 21:35:45 +02:00
Sigmanor
c1920c9d02 Version update 2016-01-23 21:35:31 +02:00
Sigmanor
d6433fd7b2 Changed the messages priority 2016-01-23 21:27:25 +02:00
Sigmanor
c22e575db0 Auto generated code 2016-01-23 21:25:24 +02:00
Sigmanor
f4bc5b860b Saving the caret position in editor 2016-01-23 21:24:56 +02:00
Sigmanor
f619cc6777 Version update 2016-01-23 21:20:23 +02:00
Sigmanor
9e784928b4 Changed link to valid 2016-01-23 21:20:11 +02:00
Sigmanor
fb794b0c9f added contribution section 2016-01-23 20:07:56 +02:00
Sigmanor
ea8a0a3023 deleted warning message 2016-01-23 20:07:32 +02:00
Sigmanor
1e7a3b3ee7 Version update 2016-01-22 21:48:22 +02:00
Sigmanor
51508f4399 Design improvements 2016-01-22 21:48:12 +02:00
Sigmanor
366b07344c Updated update files 2016-01-22 21:47:11 +02:00
Sigmanor
b2897618a5 Delete/Open menu item now disabled when no files are opened 2016-01-22 21:46:42 +02:00
Sigmanor
e90a2df878 Deleted MessageBoxes 2016-01-22 21:43:53 +02:00
Sigmanor
9db8581411 Fixed typos 2016-01-22 21:41:31 +02:00
Sigmanor
b6facd17a7 Version update 2016-01-22 20:00:07 +02:00
Sigmanor
90c7f8b047 Screenshot update 2016-01-22 19:48:07 +02:00
Sigmanor
8e2d5a11b8 Updated update files 2016-01-22 19:44:50 +02:00
Sigmanor
a868229079 Changed some strings 2016-01-22 19:42:13 +02:00
Sigmanor
e96ea97599 Resources update 2016-01-22 19:41:20 +02:00
Sigmanor
32b510b1af Auto generated code 2016-01-20 21:29:03 +02:00
Sigmanor
c79d0f64fb Changing the settings of windows size and position 2016-01-20 21:27:18 +02:00
Sigmanor
1087bb85f8 Added new icon 2016-01-20 21:25:53 +02:00
Sigmanor
6f4324cc78 Disabling Accept button when the textboxes are empty 2016-01-20 21:24:04 +02:00
Sigmanor
8f84930b80 Deleted unused code 2016-01-20 21:22:06 +02:00
Sigmanor
9214b6f7c6 Added auto-lock settings 2016-01-20 21:21:40 +02:00
Sigmanor
bccf840007 Added auto-lock on minimize
Added link to documentation;
Renamed some classes;
Added lock icon in toolbar;
Fixed bug with getting the salt from mac address;
2016-01-20 21:21:12 +02:00
Sigmanor
b0287da632 Rewritten "open file" function 2016-01-18 20:39:35 +02:00
Sigmanor
fb03afd9e9 Changed app file extension to *.cnp 2016-01-18 20:38:06 +02:00
Sigmanor
9c72aaebf3 Auto generated code 2016-01-18 20:35:34 +02:00
Sigmanor
ef082f0c80 Changed provider of AutoCheckUpdate value 2016-01-18 20:34:49 +02:00
Sigmanor
852af9bdff Added release notes link 2016-01-18 20:33:21 +02:00
Sigmanor
9b014fb973 Version update 2016-01-18 20:33:07 +02:00
Sigmanor
0defb02f4d Readme update 2016-01-17 22:26:15 +02:00
Sigmanor
961c069c0e Update license year to 2016 2016-01-17 22:26:04 +02:00
Sigmanor
869bec5b71 Readme update 2016-01-17 21:02:07 +02:00
Sigmanor
c8f9115210 Added build section 2016-01-17 14:01:48 +02:00
Sigmanor
b4262fbf12 Readme update 2016-01-17 13:51:26 +02:00
Sigmanor
7bfece31cc Small improvements in design 2016-01-15 19:48:48 +02:00
Sigmanor
8786f2887a Fixed some typos 2016-01-15 19:48:23 +02:00
Sigmanor
a43deb8e50 Reset to defaults does not reset the encryption settings 2016-01-15 19:48:09 +02:00
Sigmanor
1e8d7ae162 Auto generated code 2016-01-15 18:19:12 +02:00
Sigmanor
4d3f757a99 Added automatic check and install updates 2016-01-15 18:18:47 +02:00
Sigmanor
ea5cd631a7 Deleted unused args 2016-01-15 18:17:44 +02:00
Sigmanor
c045a74b1b Enter key and Change key windows redesign 2016-01-15 18:17:12 +02:00
Sigmanor
1ec046cc73 Version update 2016-01-15 18:15:00 +02:00
Sigmanor
3ababbbe89 Added auto check update settings 2016-01-15 18:14:42 +02:00
Sigmanor
913e34df0d Added new icon for app 2016-01-15 18:13:53 +02:00
Sigmanor
4a42e7cea4 Improved about window 2016-01-15 18:13:33 +02:00
Sigmanor
aaeaf6032f Added embedded resources 2016-01-15 18:12:40 +02:00
Sigmanor
33a933d014 Added updater 2016-01-14 22:32:57 +02:00
Sigmanor
ff9dd28ee9 Added update files 2016-01-14 22:12:04 +02:00
Sigmanor
76cbf7cb91 Added file for update app. 2016-01-14 22:05:00 +02:00
77 changed files with 34394 additions and 6906 deletions

17
.gitattributes vendored Normal file
View file

@ -0,0 +1,17 @@
# Auto detect text files and perform LF normalization
* text=auto
# Custom for Visual Studio
*.cs diff=csharp
# Standard to msysgit
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain

12
.github/FUNDING.yml vendored Normal file
View file

@ -0,0 +1,12 @@
# These are supported funding model platforms
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username
open_collective: #
ko_fi:
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
liberapay:
issuehunt: #
otechie: # Replace with a single Otechie username
custom: https://github.com/Crypto-Notepad/Crypto-Notepad/wiki/Support-the-project

31
.github/ISSUE_TEMPLATE/bug_report.md vendored Normal file
View file

@ -0,0 +1,31 @@
---
name: Bug report
about: Create a report to help us improve
title: "[BUG]"
labels: bug
assignees: Sigmanor
---
**Describe the bug**
A clear and concise description of what the bug is.
**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
**Expected behavior**
A clear and concise description of what you expected to happen.
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Software version (please complete the following information):**
- OS version [e.g. Windows 10]
- App version [e.g. v1.2.0]
**Additional context**
Add any other context about the problem here.

View file

@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: "[Feature request]"
labels: enhancement
assignees: ''
---
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
**Additional context**
Add any other context or screenshots about the feature request here.

76
CODE_OF_CONDUCT.md Normal file
View file

@ -0,0 +1,76 @@
# Contributor Covenant Code of Conduct
## Our Pledge
In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, sex characteristics, gender identity and expression,
level of experience, education, socio-economic status, nationality, personal
appearance, race, religion, or sexual identity and orientation.
## Our Standards
Examples of behavior that contributes to creating a positive environment
include:
* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members
Examples of unacceptable behavior by participants include:
* The use of sexualized language or imagery and unwelcome sexual attention or
advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic
address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting
## Our Responsibilities
Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.
Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.
## Scope
This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community. Examples of
representing a project or community include using an official project e-mail
address, posting via an official social media account, or acting as an appointed
representative at an online or offline event. Representation of a project may be
further defined and clarified by project maintainers.
## Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior may be
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
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Further details of specific enforcement policies may be posted separately.
Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.
## Attribution
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
[homepage]: https://www.contributor-covenant.org
For answers to common questions about this code of conduct, see
https://www.contributor-covenant.org/faq

33
CONTRIBUTING.md Normal file
View file

@ -0,0 +1,33 @@
> First off, thanks for taking the time to contribute :relaxed:
Before starting, make sure that you visited the [projects](https://github.com/Crypto-Notepad/Crypto-Notepad/projects) and the opened/closed [issues](https://github.com/Sigmanor/Crypto-Notepad/issues) to be sure that your idea is not already planned or canceled. Checked out? Well then, let's start!
## How to contribute to Crypto Notepad
### Did you find any bug/have an idea how to improve the project?
* Send me a message: [`email`](mailto:dock-brunt-rarity@duck.com)
* Create an [issue](https://github.com/Sigmanor/Crypto-Notepad/issues/new/choose).
### You can help me fix some bug/implement a new feature?
* Create a pull request, using [this](https://github.com/Sigmanor/Crypto-Notepad/blob/master/PULL_REQUEST_TEMPLATE.md) template.
### Issue labels explanation
* You can find the full list in [here](https://github.com/Sigmanor/Crypto-Notepad/issues/labels).
### Naming conventions
The only rule: Do not use Hungarian notation or any other type identification in identifiers.
### Things that will never be in this project
* Installer. Crypto Notepad will be always portable.
* Significant design changes. Crypto Notepad looks exactly as I want to see it.
* Multiplatform. Crypto Notepad will be only for windows. Maybe sometime, but it will be as a completely new project.
* Making from a simple notepad - a big combine to encrypt anything with different encryption algorithms. Crypto Notepad will be a simple app to encrypt/decrypt text files with AES algorithms.
### Things you need to know about the source code (take courage)
* Sometimes code is very bad.
* Sometimes code is illogical.
* Mostly code is have no comments.
* That's why you are very brave, if you decide to learn source code. :flushed:
> If you can make the source code better. Your welcome!
## Anything else?
Any help will be useful. I'll be happy to any of your feedback or suggestions. Use your best judgment, and feel free to propose changes to Crypto Notepad. Thanks for attention. May the Force be with you young Contributor. :wink:

View file

@ -1,7 +1,7 @@
 
Microsoft Visual Studio Solution File, Format Version 12.00 Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14 # Visual Studio 15
VisualStudioVersion = 14.0.24720.0 VisualStudioVersion = 15.0.28307.168
MinimumVisualStudioVersion = 10.0.40219.1 MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Crypto Notepad", "Crypto Notepad\Crypto Notepad.csproj", "{06D6F36C-FAFA-4B88-BE04-3F73EB28C21E}" Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Crypto Notepad", "Crypto Notepad\Crypto Notepad.csproj", "{06D6F36C-FAFA-4B88-BE04-3F73EB28C21E}"
EndProject EndProject
@ -19,4 +19,7 @@ Global
GlobalSection(SolutionProperties) = preSolution GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE HideSolutionNode = FALSE
EndGlobalSection EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {91E42AC9-FA32-4204-98F0-0C3A73C6436A}
EndGlobalSection
EndGlobal EndGlobal

View file

@ -1,93 +0,0 @@
using System;
using System.IO;
using System.Security.Cryptography;
using System.Text;
namespace Crypto_Notepad
{
class AES
{
public static string Encrypt(string plainText, string password,
string salt = "Kosher", string hashAlgorithm = "SHA1",
int passwordIterations = 2, string initialVector = "OFRna73m*aze01xY",
int keySize = 256)
{
if (string.IsNullOrEmpty(plainText))
return "";
byte[] initialVectorBytes = Encoding.ASCII.GetBytes(initialVector);
byte[] saltValueBytes = Encoding.ASCII.GetBytes(salt);
byte[] plainTextBytes = Encoding.UTF8.GetBytes(plainText);
PasswordDeriveBytes derivedPassword = new PasswordDeriveBytes
(password, saltValueBytes, hashAlgorithm, passwordIterations);
byte[] keyBytes = derivedPassword.GetBytes(keySize / 8);
RijndaelManaged symmetricKey = new RijndaelManaged();
symmetricKey.Mode = CipherMode.CBC;
byte[] cipherTextBytes = null;
using (ICryptoTransform encryptor = symmetricKey.CreateEncryptor
(keyBytes, initialVectorBytes))
{
using (MemoryStream memStream = new MemoryStream())
{
using (CryptoStream cryptoStream = new CryptoStream
(memStream, encryptor, CryptoStreamMode.Write))
{
cryptoStream.Write(plainTextBytes, 0, plainTextBytes.Length);
cryptoStream.FlushFinalBlock();
cipherTextBytes = memStream.ToArray();
memStream.Close();
cryptoStream.Close();
}
}
}
symmetricKey.Clear();
return Convert.ToBase64String(cipherTextBytes);
}
public static string Decrypt(string cipherText, string password,
string salt = "Kosher", string hashAlgorithm = "SHA1",
int passwordIterations = 2, string initialVector = "OFRna73m*aze01xY",
int keySize = 256)
{
if (string.IsNullOrEmpty(cipherText))
return "";
byte[] initialVectorBytes = Encoding.ASCII.GetBytes(initialVector);
byte[] saltValueBytes = Encoding.ASCII.GetBytes(salt);
byte[] cipherTextBytes = Convert.FromBase64String(cipherText);
PasswordDeriveBytes derivedPassword = new PasswordDeriveBytes
(password, saltValueBytes, hashAlgorithm, passwordIterations);
byte[] keyBytes = derivedPassword.GetBytes(keySize / 8);
RijndaelManaged symmetricKey = new RijndaelManaged();
symmetricKey.Mode = CipherMode.CBC;
byte[] plainTextBytes = new byte[cipherTextBytes.Length];
int byteCount = 0;
using (ICryptoTransform decryptor = symmetricKey.CreateDecryptor
(keyBytes, initialVectorBytes))
{
using (MemoryStream memStream = new MemoryStream(cipherTextBytes))
{
using (CryptoStream cryptoStream
= new CryptoStream(memStream, decryptor, CryptoStreamMode.Read))
{
byteCount = cryptoStream.Read(plainTextBytes, 0, plainTextBytes.Length);
memStream.Close();
cryptoStream.Close();
}
}
}
symmetricKey.Clear();
return Encoding.UTF8.GetString(plainTextBytes, 0, byteCount);
}
}
}

View file

@ -1,328 +0,0 @@
namespace Crypto_Notepad
{
partial class AboutFrom
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AboutFrom));
this.label1 = new System.Windows.Forms.Label();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.label2 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.label6 = new System.Windows.Forms.Label();
this.label8 = new System.Windows.Forms.Label();
this.label9 = new System.Windows.Forms.Label();
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
this.label11 = new System.Windows.Forms.Label();
this.label13 = new System.Windows.Forms.Label();
this.label10 = new System.Windows.Forms.Label();
this.label12 = new System.Windows.Forms.Label();
this.panel1 = new System.Windows.Forms.Panel();
this.label15 = new System.Windows.Forms.Label();
this.label14 = new System.Windows.Forms.Label();
this.customRichTextBox1 = new Crypto_Notepad.CustomRichTextBox();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.panel1.SuspendLayout();
this.SuspendLayout();
//
// label1
//
this.label1.AutoSize = true;
this.label1.Font = new System.Drawing.Font("Consolas", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.label1.ForeColor = System.Drawing.Color.White;
this.label1.Location = new System.Drawing.Point(5, 6);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(220, 22);
this.label1.TabIndex = 0;
this.label1.Text = "Crypto Notepad v1.0.0";
//
// pictureBox1
//
this.pictureBox1.Cursor = System.Windows.Forms.Cursors.Hand;
this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
this.pictureBox1.Location = new System.Drawing.Point(220, 9);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(77, 68);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pictureBox1.TabIndex = 1;
this.pictureBox1.TabStop = false;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.label2.ForeColor = System.Drawing.Color.White;
this.label2.Location = new System.Drawing.Point(6, 28);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(133, 13);
this.label2.TabIndex = 2;
this.label2.Text = "developed by Sigmanor";
//
// label3
//
this.label3.AutoSize = true;
this.label3.Cursor = System.Windows.Forms.Cursors.Hand;
this.label3.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.label3.ForeColor = System.Drawing.Color.White;
this.label3.Location = new System.Drawing.Point(6, 67);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(109, 13);
this.label3.TabIndex = 3;
this.label3.Text = "Licence Agreement";
this.toolTip1.SetToolTip(this.label3, "https://github.com/Sigmanor/Crypto-Notepad/blob/master/LICENSE");
this.label3.Click += new System.EventHandler(this.label3_Click);
//
// label4
//
this.label4.AutoSize = true;
this.label4.Cursor = System.Windows.Forms.Cursors.Hand;
this.label4.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.label4.ForeColor = System.Drawing.Color.White;
this.label4.Location = new System.Drawing.Point(6, 85);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(85, 13);
this.label4.TabIndex = 3;
this.label4.Text = "Release Notes";
this.toolTip1.SetToolTip(this.label4, "https://github.com/Sigmanor/Crypto-Notepad/wiki/Release-Notes");
this.label4.Click += new System.EventHandler(this.label4_Click);
//
// label5
//
this.label5.AutoSize = true;
this.label5.Font = new System.Drawing.Font("Consolas", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.label5.ForeColor = System.Drawing.Color.White;
this.label5.Location = new System.Drawing.Point(6, 109);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(182, 15);
this.label5.TabIndex = 4;
this.label5.Text = "Third-party developments:";
//
// label6
//
this.label6.AutoSize = true;
this.label6.Cursor = System.Windows.Forms.Cursors.Hand;
this.label6.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.label6.ForeColor = System.Drawing.Color.White;
this.label6.Location = new System.Drawing.Point(6, 50);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(49, 13);
this.label6.TabIndex = 5;
this.label6.Text = "WebSite";
this.toolTip1.SetToolTip(this.label6, "https://github.com/Sigmanor/Crypto-Notepad");
this.label6.Click += new System.EventHandler(this.label6_Click);
//
// label8
//
this.label8.AutoSize = true;
this.label8.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.label8.ForeColor = System.Drawing.Color.White;
this.label8.Location = new System.Drawing.Point(6, 35);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(145, 13);
this.label8.TabIndex = 5;
this.label8.Text = "CustomSettingsProvider:";
//
// label9
//
this.label9.AutoEllipsis = true;
this.label9.AutoSize = true;
this.label9.Cursor = System.Windows.Forms.Cursors.Hand;
this.label9.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.label9.ForeColor = System.Drawing.Color.CornflowerBlue;
this.label9.Location = new System.Drawing.Point(148, 35);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(469, 13);
this.label9.TabIndex = 3;
this.label9.Text = "http://www.codeproject.com/Articles/20917/Creating-a-Custom-Settings-Provider";
this.label9.Click += new System.EventHandler(this.label9_Click);
//
// label11
//
this.label11.AutoEllipsis = true;
this.label11.AutoSize = true;
this.label11.Cursor = System.Windows.Forms.Cursors.Hand;
this.label11.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.label11.ForeColor = System.Drawing.Color.CornflowerBlue;
this.label11.Location = new System.Drawing.Point(35, 57);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(421, 13);
this.label11.TabIndex = 3;
this.label11.Text = "http://easylab.net.ua/net-c-windows-forms/c-algoritm-shifrovaniya-aes";
this.label11.Click += new System.EventHandler(this.label11_Click);
//
// label13
//
this.label13.AutoEllipsis = true;
this.label13.AutoSize = true;
this.label13.Cursor = System.Windows.Forms.Cursors.Hand;
this.label13.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.label13.ForeColor = System.Drawing.Color.CornflowerBlue;
this.label13.Location = new System.Drawing.Point(117, 81);
this.label13.Name = "label13";
this.label13.Size = new System.Drawing.Size(487, 13);
this.label13.TabIndex = 3;
this.label13.Text = "https://code.msdn.microsoft.com/windowsdesktop/How-to-find-the-text-and-e92b8d78";
this.label13.Click += new System.EventHandler(this.label13_Click);
//
// label10
//
this.label10.AutoSize = true;
this.label10.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.label10.ForeColor = System.Drawing.Color.White;
this.label10.Location = new System.Drawing.Point(6, 57);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(31, 13);
this.label10.TabIndex = 5;
this.label10.Text = "AES:";
//
// label12
//
this.label12.AutoSize = true;
this.label12.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.label12.ForeColor = System.Drawing.Color.White;
this.label12.Location = new System.Drawing.Point(6, 81);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(115, 13);
this.label12.TabIndex = 5;
this.label12.Text = "CustomRichTextBox:";
//
// panel1
//
this.panel1.AutoScroll = true;
this.panel1.Controls.Add(this.label15);
this.panel1.Controls.Add(this.label12);
this.panel1.Controls.Add(this.label14);
this.panel1.Controls.Add(this.label10);
this.panel1.Controls.Add(this.label9);
this.panel1.Controls.Add(this.label8);
this.panel1.Controls.Add(this.label11);
this.panel1.Controls.Add(this.label13);
this.panel1.Location = new System.Drawing.Point(622, 9);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(138, 97);
this.panel1.TabIndex = 6;
//
// label15
//
this.label15.AutoSize = true;
this.label15.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.label15.ForeColor = System.Drawing.Color.White;
this.label15.Location = new System.Drawing.Point(6, 106);
this.label15.Name = "label15";
this.label15.Size = new System.Drawing.Size(121, 13);
this.label15.TabIndex = 5;
this.label15.Text = "MsgBoxCenterParent:";
//
// label14
//
this.label14.AutoEllipsis = true;
this.label14.AutoSize = true;
this.label14.Cursor = System.Windows.Forms.Cursors.Hand;
this.label14.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.label14.ForeColor = System.Drawing.Color.CornflowerBlue;
this.label14.Location = new System.Drawing.Point(125, 106);
this.label14.Name = "label14";
this.label14.Size = new System.Drawing.Size(259, 13);
this.label14.TabIndex = 3;
this.label14.Text = "http://stackoverflow.com/a/2576220/4430027";
this.label14.Click += new System.EventHandler(this.label14_Click);
//
// customRichTextBox1
//
this.customRichTextBox1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(45)))), ((int)(((byte)(50)))));
this.customRichTextBox1.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.customRichTextBox1.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.customRichTextBox1.ForeColor = System.Drawing.Color.White;
this.customRichTextBox1.Location = new System.Drawing.Point(0, 130);
this.customRichTextBox1.Name = "customRichTextBox1";
this.customRichTextBox1.ReadOnly = true;
this.customRichTextBox1.RightMargin = 600;
this.customRichTextBox1.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.Horizontal;
this.customRichTextBox1.ShowSelectionMargin = true;
this.customRichTextBox1.Size = new System.Drawing.Size(298, 88);
this.customRichTextBox1.TabIndex = 8;
this.customRichTextBox1.TabStop = false;
this.customRichTextBox1.Text = resources.GetString("customRichTextBox1.Text");
this.customRichTextBox1.WordWrap = false;
this.customRichTextBox1.LinkClicked += new System.Windows.Forms.LinkClickedEventHandler(this.customRichTextBox1_LinkClicked);
//
// AboutFrom
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(45)))), ((int)(((byte)(50)))));
this.ClientSize = new System.Drawing.Size(298, 218);
this.Controls.Add(this.customRichTextBox1);
this.Controls.Add(this.label6);
this.Controls.Add(this.panel1);
this.Controls.Add(this.label4);
this.Controls.Add(this.label3);
this.Controls.Add(this.label2);
this.Controls.Add(this.pictureBox1);
this.Controls.Add(this.label1);
this.Controls.Add(this.label5);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "AboutFrom";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "About";
this.Load += new System.EventHandler(this.AboutWindow_Load);
this.Click += new System.EventHandler(this.AboutFrom_Click);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label label1;
private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.ToolTip toolTip1;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.Label label11;
private System.Windows.Forms.Label label12;
private System.Windows.Forms.Label label13;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Label label15;
private System.Windows.Forms.Label label14;
private CustomRichTextBox customRichTextBox1;
}
}

View file

@ -1,72 +0,0 @@
using System;
using System.Diagnostics;
using System.Drawing;
using System.Windows.Forms;
namespace Crypto_Notepad
{
public partial class AboutFrom : Form
{
public AboutFrom()
{
InitializeComponent();
}
private void label3_Click(object sender, EventArgs e)
{
Process.Start("https://github.com/Sigmanor/Crypto-Notepad/blob/master/LICENSE");
}
private void label7_Click(object sender, EventArgs e)
{
Process.Start("https://github.com/Sigmanor/Crypto-Notepad");
}
private void label9_Click(object sender, EventArgs e)
{
Process.Start("http://www.codeproject.com/Articles/20917/Creating-a-Custom-Settings-Provider");
}
private void label11_Click(object sender, EventArgs e)
{
Process.Start("http://easylab.net.ua/net-c-windows-forms/c-algoritm-shifrovaniya-aes");
}
private void label13_Click(object sender, EventArgs e)
{
Process.Start("https://code.msdn.microsoft.com/windowsdesktop/How-to-find-the-text-and-e92b8d78");
}
private void AboutWindow_Load(object sender, EventArgs e)
{
Version vrs = new Version(Application.ProductVersion);
label1.Text = string.Format("Crypto Notepad " + "{0}.{1}.{2}", vrs.Major, vrs.Minor, vrs.Build);
}
private void label4_Click(object sender, EventArgs e)
{
Process.Start("https://github.com/Sigmanor/Crypto-Notepad/wiki/Release-Notes");
}
private void label14_Click(object sender, EventArgs e)
{
Process.Start("http://stackoverflow.com/a/2576220/4430027");
}
private void label6_Click(object sender, EventArgs e)
{
Process.Start("https://github.com/Sigmanor/Crypto-Notepad");
}
private void customRichTextBox1_LinkClicked(object sender, LinkClickedEventArgs e)
{
Process.Start(e.LinkText);
}
private void AboutFrom_Click(object sender, EventArgs e)
{
pictureBox1.Focus();
}
}
}

View file

@ -2,155 +2,205 @@
<configuration> <configuration>
<configSections> <configSections>
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"> <sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<section name="Crypto_Notepad.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" /> <section name="Crypto_Notepad.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false"/>
<section name="EncryptPad.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false"/> <section name="EncryptPad.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false"/>
<section name="Encryption_Tool.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false"/> <section name="Encryption_Tool.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false"/>
</sectionGroup> </sectionGroup>
</configSections> </configSections>
<startup> <startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/></startup> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/></startup>
<userSettings> <userSettings>
<Crypto_Notepad.Properties.Settings> <Crypto_Notepad.Properties.Settings>
<setting name="TopPosition" serializeAs="String"> <setting name="editorForeColor" serializeAs="String">
<value>0</value> <value>Black</value>
</setting> </setting>
<setting name="LeftPosition" serializeAs="String"> <setting name="editorBackColor" serializeAs="String">
<value>0</value>
</setting>
<setting name="RichTextFont" serializeAs="String">
<value>Consolas</value>
</setting>
<setting name="RichForeColor" serializeAs="String">
<value>228, 228, 228</value>
</setting>
<setting name="FormWidth" serializeAs="String">
<value>690</value>
</setting>
<setting name="FormHeight" serializeAs="String">
<value>430</value>
</setting>
<setting name="RichBackColor" serializeAs="String">
<value>56, 56, 56</value>
</setting>
<setting name="MenuWrap" serializeAs="String">
<value>True</value>
</setting>
<setting name="RichWrap" serializeAs="String">
<value>True</value>
</setting>
<setting name="RichTextSize" serializeAs="String">
<value>11</value>
</setting>
<setting name="HighlightsColor" serializeAs="String">
<value>101, 51, 6</value>
</setting>
<setting name="AssociateCheck" serializeAs="String">
<value>False</value>
</setting>
<setting name="HashAlgorithm" serializeAs="String">
<value>SHA1</value>
</setting>
<setting name="KeySize" serializeAs="String">
<value>192</value>
</setting>
<setting name="TheSalt" serializeAs="String">
<value />
</setting>
<setting name="PasswordIterations" serializeAs="String">
<value>2</value>
</setting>
<setting name="FirstLaunch" serializeAs="String">
<value>False</value>
</setting>
<setting name="WarningMsg" serializeAs="String">
<value>False</value>
</setting>
<setting name="ShowToolbar" serializeAs="String">
<value>True</value>
</setting>
</Crypto_Notepad.Properties.Settings>
<EncryptPad.Properties.Settings>
<setting name="TopPosition" serializeAs="String">
<value>0</value>
</setting>
<setting name="LeftPosition" serializeAs="String">
<value>0</value>
</setting>
<setting name="RichTextFont" serializeAs="String">
<value>Consolas</value>
</setting>
<setting name="RichForeColor" serializeAs="String">
<value>228, 228, 228</value>
</setting>
<setting name="FormWidth" serializeAs="String">
<value>687</value>
</setting>
<setting name="FormHeight" serializeAs="String">
<value>428</value>
</setting>
<setting name="RichBackColor" serializeAs="String">
<value>56, 56, 56</value>
</setting>
<setting name="MenuWrap" serializeAs="String">
<value>True</value>
</setting>
<setting name="RichWrap" serializeAs="String">
<value>True</value>
</setting>
<setting name="RichTextSize" serializeAs="String">
<value>11</value>
</setting>
<setting name="HighlightsColor" serializeAs="String">
<value>101, 51, 6</value>
</setting>
<setting name="AssociateCheck" serializeAs="String">
<value>False</value>
</setting>
<setting name="HashAlgorithm" serializeAs="String">
<value>SHA1</value>
</setting>
<setting name="KeySize" serializeAs="String">
<value>192</value>
</setting>
<setting name="TheSalt" serializeAs="String">
<value />
</setting>
<setting name="PasswordIterations" serializeAs="String">
<value>2</value>
</setting>
<setting name="FirstLaunch" serializeAs="String">
<value>False</value>
</setting>
</EncryptPad.Properties.Settings>
<Encryption_Tool.Properties.Settings>
<setting name="TopPosition" serializeAs="String">
<value>0</value>
</setting>
<setting name="LeftPosition" serializeAs="String">
<value>0</value>
</setting>
<setting name="RichTextFont" serializeAs="String">
<value>Consolas, 9.75pt</value>
</setting>
<setting name="RichTextColor" serializeAs="String">
<value>66, 66, 74</value>
</setting>
<setting name="FormWidth" serializeAs="String">
<value>687</value>
</setting>
<setting name="FormHeight" serializeAs="String">
<value>428</value>
</setting>
<setting name="RichForeColor" serializeAs="String">
<value>White</value> <value>White</value>
</setting> </setting>
<setting name="MenuWrap" serializeAs="String"> <setting name="menuWrap" serializeAs="String">
<value>True</value> <value>True</value>
</setting> </setting>
<setting name="RichWrap" serializeAs="String"> <setting name="editorWrap" serializeAs="String">
<value>True</value> <value>True</value>
</setting> </setting>
</Encryption_Tool.Properties.Settings> <setting name="explorerAssociate" serializeAs="String">
<value>False</value>
</setting>
<setting name="HashAlgorithm" serializeAs="String">
<value>SHA1</value>
</setting>
<setting name="KeySize" serializeAs="String">
<value>256</value>
</setting>
<setting name="PasswordIterations" serializeAs="String">
<value>1000</value>
</setting>
<setting name="toolbarVisible" serializeAs="String">
<value>True</value>
</setting>
<setting name="autoCheckUpdate" serializeAs="String">
<value>False</value>
</setting>
<setting name="autoLock" serializeAs="String">
<value>False</value>
</setting>
<setting name="windowLocation" serializeAs="String">
<value>0, 0</value>
</setting>
<setting name="windowSize" serializeAs="String">
<value>645, 460</value>
</setting>
<setting name="windowState" serializeAs="String">
<value>Normal</value>
</setting>
<setting name="explorerSendTo" serializeAs="String">
<value>False</value>
</setting>
<setting name="explorerIntegrate" serializeAs="String">
<value>False</value>
</setting>
<setting name="menuIcons" serializeAs="String">
<value>False</value>
</setting>
<setting name="insertKey" serializeAs="String">
<value>Enable</value>
</setting>
<setting name="customColor" serializeAs="String">
<value>16777215;16777215;16777215;16777215;16777215;16777215;16777215;16777215;16777215;16777215;16777215;16777215;16777215;16777215;16777215;16777215</value>
</setting>
<setting name="editorPaddingLeft" serializeAs="String">
<value>5</value>
</setting>
<setting name="editorRightToLeft" serializeAs="String">
<value>False</value>
</setting>
<setting name="editorFont" serializeAs="String">
<value>Microsoft Sans Serif, 10pt</value>
</setting>
<setting name="statusPanelVisible" serializeAs="String">
<value>True</value>
</setting>
<setting name="statusPanelBackColor" serializeAs="String">
<value>240, 240, 240</value>
</setting>
<setting name="statusPanelFontColor" serializeAs="String">
<value>Black</value>
</setting>
<setting name="toolbarBackColor" serializeAs="String">
<value>240, 240, 240</value>
</setting>
<setting name="toolbarBorder" serializeAs="String">
<value>False</value>
</setting>
<setting name="searchPanelForeColor" serializeAs="String">
<value>Black</value>
</setting>
<setting name="searchPanelBackColor" serializeAs="String">
<value>240, 240, 240</value>
</setting>
<setting name="openLinks" serializeAs="String">
<value>LMB Click</value>
</setting>
<setting name="mainMenuVisible" serializeAs="String">
<value>True</value>
</setting>
<setting name="oldToolbarIcons" serializeAs="String">
<value>False</value>
</setting>
<setting name="minimizeToTray" serializeAs="String">
<value>False</value>
</setting>
<setting name="closeToTray" serializeAs="String">
<value>False</value>
</setting>
<setting name="alwaysOnTop" serializeAs="String">
<value>False</value>
</setting>
<setting name="editorBorder" serializeAs="String">
<value>FixedSingle</value>
</setting>
<setting name="searchPanelBorder" serializeAs="String">
<value>None</value>
</setting>
<setting name="toolbarCloseButton" serializeAs="String">
<value>True</value>
</setting>
<setting name="singleInstance" serializeAs="String">
<value>False</value>
</setting>
<setting name="statusPanelLength" serializeAs="String">
<value>True</value>
</setting>
<setting name="statusPanelLines" serializeAs="String">
<value>True</value>
</setting>
<setting name="statusPanelModified" serializeAs="String">
<value>True</value>
</setting>
<setting name="statusPanelSize" serializeAs="String">
<value>True</value>
</setting>
<setting name="encryptionHint" serializeAs="String">
<value>True</value>
</setting>
<setting name="passwordGeneratorLowercase" serializeAs="String">
<value>True</value>
</setting>
<setting name="passwordGeneratorUppercase" serializeAs="String">
<value>True</value>
</setting>
<setting name="passwordGeneratorNumeric" serializeAs="String">
<value>True</value>
</setting>
<setting name="passwordGeneratorSpecial" serializeAs="String">
<value>True</value>
</setting>
<setting name="passwordGeneratorLength" serializeAs="String">
<value>40</value>
</setting>
<setting name="passwordGeneratorNumberOfStrings" serializeAs="String">
<value>10</value>
</setting>
<setting name="TheSalt" serializeAs="String">
<value />
</setting>
<setting name="passwordGeneratorBrackets" serializeAs="String">
<value>False</value>
</setting>
<setting name="passwordGeneratorAdditional" serializeAs="String">
<value>False</value>
</setting>
<setting name="lockTimeout" serializeAs="String">
<value />
</setting>
<setting name="statusPanelReadonly" serializeAs="String">
<value>True</value>
</setting>
<setting name="statusPanelWordWrap" serializeAs="String">
<value>True</value>
</setting>
<setting name="clipboardClearTime" serializeAs="String">
<value />
</setting>
<setting name="statusPanelClipboard" serializeAs="String">
<value>True</value>
</setting>
<setting name="clearClipboardAtClose" serializeAs="String">
<value>False</value>
</setting>
<setting name="shortcutKeys" serializeAs="String">
<value>True</value>
</setting>
<setting name="openTxtUnencrypted" serializeAs="String">
<value>False</value>
</setting>
<setting name="trayMenu" serializeAs="String">
<value>False</value>
</setting>
<setting name="statusPanelPasteboard" serializeAs="String">
<value>False</value>
</setting>
</Crypto_Notepad.Properties.Settings>
</userSettings> </userSettings>
</configuration> </configuration>

View file

@ -1,148 +0,0 @@
namespace Crypto_Notepad
{
partial class ChangeKeyForm
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.textBox1 = new System.Windows.Forms.TextBox();
this.textBox2 = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.button1 = new System.Windows.Forms.Button();
this.pictureBox2 = new System.Windows.Forms.PictureBox();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.SuspendLayout();
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(70, 12);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(116, 20);
this.textBox1.TabIndex = 0;
this.textBox1.UseSystemPasswordChar = true;
//
// textBox2
//
this.textBox2.Location = new System.Drawing.Point(70, 50);
this.textBox2.Name = "textBox2";
this.textBox2.Size = new System.Drawing.Size(116, 20);
this.textBox2.TabIndex = 1;
this.textBox2.UseSystemPasswordChar = true;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(12, 15);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(47, 13);
this.label1.TabIndex = 2;
this.label1.Text = "Old Key:";
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(12, 53);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(53, 13);
this.label2.TabIndex = 3;
this.label2.Text = "New Key:";
//
// button1
//
this.button1.Location = new System.Drawing.Point(142, 79);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(75, 23);
this.button1.TabIndex = 4;
this.button1.Text = "Accept";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// pictureBox2
//
this.pictureBox2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.pictureBox2.Cursor = System.Windows.Forms.Cursors.Hand;
this.pictureBox2.Image = global::Crypto_Notepad.Properties.Resources.eye;
this.pictureBox2.Location = new System.Drawing.Point(185, 50);
this.pictureBox2.Name = "pictureBox2";
this.pictureBox2.Size = new System.Drawing.Size(32, 20);
this.pictureBox2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
this.pictureBox2.TabIndex = 5;
this.pictureBox2.TabStop = false;
this.pictureBox2.Click += new System.EventHandler(this.pictureBox2_Click);
//
// pictureBox1
//
this.pictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.pictureBox1.Cursor = System.Windows.Forms.Cursors.Hand;
this.pictureBox1.Image = global::Crypto_Notepad.Properties.Resources.eye;
this.pictureBox1.Location = new System.Drawing.Point(185, 12);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(32, 20);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
this.pictureBox1.TabIndex = 5;
this.pictureBox1.TabStop = false;
this.pictureBox1.Click += new System.EventHandler(this.pictureBox1_Click);
//
// ChangeKeyForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(232, 110);
this.Controls.Add(this.pictureBox2);
this.Controls.Add(this.pictureBox1);
this.Controls.Add(this.button1);
this.Controls.Add(this.label2);
this.Controls.Add(this.label1);
this.Controls.Add(this.textBox2);
this.Controls.Add(this.textBox1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "ChangeKeyForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Change Key";
this.Load += new System.EventHandler(this.ChangeKeyForm_Load);
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.PictureBox pictureBox2;
}
}

View file

@ -1,70 +0,0 @@
using System;
using System.Windows.Forms;
namespace Crypto_Notepad
{
public partial class ChangeKeyForm : Form
{
public ChangeKeyForm()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
if (textBox1.Text == MainWindow.key)
{
MainWindow.key = textBox2.Text;
MainWindow.keyChanged = true;
this.Close();
}
else if (textBox1.Text != MainWindow.key)
{
using (new CenterWinDialog(this))
{
MessageBox.Show("Wrong old key!");
}
}
}
private void pictureBox1_Click(object sender, EventArgs e)
{
if (textBox1.UseSystemPasswordChar == true)
{
textBox1.UseSystemPasswordChar = false;
pictureBox1.Image = Properties.Resources.eye_half;
return;
}
if (textBox1.UseSystemPasswordChar == false)
{
textBox1.UseSystemPasswordChar = true;
pictureBox1.Image = Properties.Resources.eye;
return;
}
}
private void pictureBox2_Click(object sender, EventArgs e)
{
if (textBox2.UseSystemPasswordChar == true)
{
textBox2.UseSystemPasswordChar = false;
pictureBox2.Image = Properties.Resources.eye_half;
return;
}
if (textBox2.UseSystemPasswordChar == false)
{
textBox2.UseSystemPasswordChar = true;
pictureBox2.Image = Properties.Resources.eye;
return;
}
}
private void ChangeKeyForm_Load(object sender, EventArgs e)
{
}
}
}

View file

@ -1,120 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View file

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="..\packages\Costura.Fody.4.1.0\build\Costura.Fody.props" Condition="Exists('..\packages\Costura.Fody.4.1.0\build\Costura.Fody.props')" />
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup> <PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
@ -9,12 +10,12 @@
<AppDesignerFolder>Properties</AppDesignerFolder> <AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Crypto_Notepad</RootNamespace> <RootNamespace>Crypto_Notepad</RootNamespace>
<AssemblyName>Crypto Notepad</AssemblyName> <AssemblyName>Crypto Notepad</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion> <TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment> <FileAlignment>512</FileAlignment>
<TargetFrameworkProfile> <TargetFrameworkProfile>
</TargetFrameworkProfile> </TargetFrameworkProfile>
<IsWebBootstrapper>false</IsWebBootstrapper> <IsWebBootstrapper>false</IsWebBootstrapper>
<ApplicationIcon>locked.ico</ApplicationIcon> <ApplicationIcon>Notepad_Lock.ico</ApplicationIcon>
<SignAssembly>False</SignAssembly> <SignAssembly>False</SignAssembly>
<DelaySign>False</DelaySign> <DelaySign>False</DelaySign>
<RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent> <RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
@ -24,6 +25,8 @@
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath> <IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
<RunCodeAnalysis>False</RunCodeAnalysis> <RunCodeAnalysis>False</RunCodeAnalysis>
<SourceAnalysisOverrideSettingsFile>C:\Users\Alex\AppData\Roaming\ICSharpCode/SharpDevelop4\Settings.SourceAnalysis</SourceAnalysisOverrideSettingsFile> <SourceAnalysisOverrideSettingsFile>C:\Users\Alex\AppData\Roaming\ICSharpCode/SharpDevelop4\Settings.SourceAnalysis</SourceAnalysisOverrideSettingsFile>
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
<PublishUrl>publish\</PublishUrl> <PublishUrl>publish\</PublishUrl>
<Install>true</Install> <Install>true</Install>
<InstallFrom>Disk</InstallFrom> <InstallFrom>Disk</InstallFrom>
@ -53,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>
@ -72,10 +76,27 @@
<RegisterForComInterop>False</RegisterForComInterop> <RegisterForComInterop>False</RegisterForComInterop>
<GenerateSerializationAssemblies>Auto</GenerateSerializationAssemblies> <GenerateSerializationAssemblies>Auto</GenerateSerializationAssemblies>
</PropertyGroup> </PropertyGroup>
<PropertyGroup>
<SignManifests>false</SignManifests>
</PropertyGroup>
<PropertyGroup>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
</PropertyGroup>
<PropertyGroup>
<NoWin32Manifest>true</NoWin32Manifest>
</PropertyGroup>
<ItemGroup> <ItemGroup>
<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>
</Reference>
<Reference Include="Microsoft.VisualBasic" />
<Reference Include="PasswordGenerator, Version=2.0.5.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\PasswordGenerator.2.0.5\lib\netstandard2.0\PasswordGenerator.dll</HintPath>
</Reference>
<Reference Include="System" /> <Reference Include="System" />
<Reference Include="System.configuration" /> <Reference Include="System.configuration" />
<Reference Include="System.Core" /> <Reference Include="System.Core" />
<Reference Include="System.Diagnostics.Contracts" />
<Reference Include="System.Xml.Linq" /> <Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" /> <Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" /> <Reference Include="Microsoft.CSharp" />
@ -86,39 +107,47 @@
<Reference Include="System.Xml" /> <Reference Include="System.Xml" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Include="AboutFrom.cs"> <Compile Include="Forms\AboutFrom.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
<Compile Include="AboutFrom.Designer.cs"> <Compile Include="Forms\AboutFrom.Designer.cs">
<DependentUpon>AboutFrom.cs</DependentUpon> <DependentUpon>AboutFrom.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="AES.cs" /> <Compile Include="External Libraries\AES.cs" />
<Compile Include="ChangeKeyForm.cs"> <Compile Include="Forms\ChangePasswordForm.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
<Compile Include="ChangeKeyForm.Designer.cs"> <Compile Include="Forms\ChangePasswordForm.Designer.cs">
<DependentUpon>ChangeKeyForm.cs</DependentUpon> <DependentUpon>ChangePasswordForm.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="CustomRichTextBox.cs"> <Compile Include="External Libraries\EncryptedString.cs" />
<Compile Include="External Libraries\HideCaretRichTextBox.cs">
<SubType>Component</SubType> <SubType>Component</SubType>
</Compile> </Compile>
<Compile Include="CustomRichTextBox.Designer.cs"> <Compile Include="Forms\MainForm.cs">
<DependentUpon>CustomRichTextBox.cs</DependentUpon>
</Compile>
<Compile Include="Form1.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
<Compile Include="Form1.Designer.cs"> <Compile Include="Forms\MainForm.Designer.cs">
<DependentUpon>Form1.cs</DependentUpon> <DependentUpon>MainForm.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="Form2.cs"> <Compile Include="Forms\EnterPasswordForm.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
<Compile Include="Form2.Designer.cs"> <Compile Include="Forms\EnterPasswordForm.Designer.cs">
<DependentUpon>Form2.cs</DependentUpon> <DependentUpon>EnterPasswordForm.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="MsgBoxCenterParent.cs" /> <Compile Include="External Libraries\MsgBoxCenterParent.cs" />
<Compile Include="PortableSettingsProvider.cs" /> <Compile Include="External Libraries\ExRichTextBox.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="External Libraries\OSVersionInfoClass.cs" />
<Compile Include="Forms\PasswordGeneratorFrom.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Forms\PasswordGeneratorFrom.Designer.cs">
<DependentUpon>PasswordGeneratorFrom.cs</DependentUpon>
</Compile>
<Compile Include="External Libraries\PortableSettingsProvider.cs" />
<Compile Include="Program.cs" /> <Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" /> <Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Properties\Resources.Designer.cs"> <Compile Include="Properties\Resources.Designer.cs">
@ -126,41 +155,40 @@
<DesignTime>True</DesignTime> <DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon> <DependentUpon>Resources.resx</DependentUpon>
</Compile> </Compile>
<Compile Include="SettingsForm.cs"> <Compile Include="Forms\SettingsForm.cs">
<SubType>Form</SubType> <SubType>Form</SubType>
</Compile> </Compile>
<Compile Include="SettingsForm.Designer.cs"> <Compile Include="Forms\SettingsForm.Designer.cs">
<DependentUpon>SettingsForm.cs</DependentUpon> <DependentUpon>SettingsForm.cs</DependentUpon>
</Compile> </Compile>
<Compile Include="WarningMsgBox.cs"> <Compile Include="External Libraries\PlaceholderTextBox.cs">
<SubType>Form</SubType> <SubType>Component</SubType>
</Compile> </Compile>
<Compile Include="WarningMsgBox.Designer.cs"> <Compile Include="External Libraries\Methods.cs" />
<DependentUpon>WarningMsgBox.cs</DependentUpon> <EmbeddedResource Include="Forms\AboutFrom.resx">
</Compile>
<EmbeddedResource Include="AboutFrom.resx">
<DependentUpon>AboutFrom.cs</DependentUpon> <DependentUpon>AboutFrom.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="ChangeKeyForm.resx"> <EmbeddedResource Include="Forms\ChangePasswordForm.resx">
<DependentUpon>ChangeKeyForm.cs</DependentUpon> <DependentUpon>ChangePasswordForm.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="Form1.resx"> <EmbeddedResource Include="Forms\MainForm.resx">
<DependentUpon>Form1.cs</DependentUpon> <DependentUpon>MainForm.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="Form2.resx"> <EmbeddedResource Include="Forms\EnterPasswordForm.resx">
<DependentUpon>Form2.cs</DependentUpon> <DependentUpon>EnterPasswordForm.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Forms\PasswordGeneratorFrom.resx">
<DependentUpon>PasswordGeneratorFrom.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx"> <EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator> <Generator>ResXFileCodeGenerator</Generator>
<SubType>Designer</SubType> <SubType>Designer</SubType>
<LastGenOutput>Resources.Designer.cs</LastGenOutput> <LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="SettingsForm.resx"> <EmbeddedResource Include="Forms\SettingsForm.resx">
<DependentUpon>SettingsForm.cs</DependentUpon> <DependentUpon>SettingsForm.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>
<EmbeddedResource Include="WarningMsgBox.resx"> <None Include="packages.config" />
<DependentUpon>WarningMsgBox.cs</DependentUpon>
</EmbeddedResource>
<None Include="Properties\Settings.settings"> <None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator> <Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput> <LastGenOutput>Settings.Designer.cs</LastGenOutput>
@ -175,23 +203,13 @@
<None Include="App.config" /> <None Include="App.config" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Content Include="locked.ico" /> <None Include="Resources\clock--plus.png" />
<None Include="Resources\close_b.png" /> <None Include="Resources\clock_add.png" />
<None Include="Resources\close_g.png" /> <None Include="Resources\clipboard-text.png" />
<None Include="Resources\eye_half.png" /> <None Include="Resources\Updater.exe" />
<None Include="Resources\eye.png" /> <None Include="Resources\application.png" />
<None Include="Resources\setting_tools.png" /> <None Include="Resources\application-dock-180.png" />
<None Include="Resources\page_white_key.png" /> <Content Include="Notepad_Lock.ico" />
<None Include="Resources\diskette.png" />
<None Include="Resources\paste_plain.png" />
<None Include="Resources\page_white_copy.png" />
<None Include="Resources\cut_red.png" />
<None Include="Resources\page_white_delete.png" />
<None Include="Resources\folder_stand.png" />
<None Include="Resources\disk_multiple.png" />
<None Include="Resources\folder_vertical_document.png" />
<None Include="Resources\page_white_add.png" />
<None Include="Resources\Warning-icon-hi.png" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<BootstrapperPackage Include=".NETFramework,Version=v4.0"> <BootstrapperPackage Include=".NETFramework,Version=v4.0">
@ -216,9 +234,26 @@
</BootstrapperPackage> </BootstrapperPackage>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Folder Include="bin\Debug\" /> <COMReference Include="IWshRuntimeLibrary">
<Guid>{F935DC20-1CF0-11D0-ADB9-00C04FD58A0B}</Guid>
<VersionMajor>1</VersionMajor>
<VersionMinor>0</VersionMinor>
<Lcid>0</Lcid>
<WrapperTool>tlbimp</WrapperTool>
<Isolated>False</Isolated>
<EmbedInteropTypes>True</EmbedInteropTypes>
</COMReference>
</ItemGroup> </ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>Данный проект ссылается на пакеты NuGet, отсутствующие на этом компьютере. Используйте восстановление пакетов NuGet, чтобы скачать их. Дополнительную информацию см. по адресу: http://go.microsoft.com/fwlink/?LinkID=322105. Отсутствует следующий файл: {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('..\packages\Costura.Fody.4.1.0\build\Costura.Fody.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Costura.Fody.4.1.0\build\Costura.Fody.props'))" />
<Error Condition="!Exists('..\packages\Fody.6.0.6\build\Fody.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Fody.6.0.6\build\Fody.targets'))" />
</Target>
<Import Project="..\packages\Fody.6.0.6\build\Fody.targets" Condition="Exists('..\packages\Fody.6.0.6\build\Fody.targets')" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets. Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild"> <Target Name="BeforeBuild">

View file

@ -1,36 +0,0 @@
namespace Crypto_Notepad
{
partial class CustomRichTextBox
{
/// <summary>
/// Требуется переменная конструктора.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Освободить все используемые ресурсы.
/// </summary>
/// <param name="disposing">истинно, если управляемый ресурс должен быть удален; иначе ложно.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Код, автоматически созданный конструктором компонентов
/// <summary>
/// Обязательный метод для поддержки конструктора - не изменяйте
/// содержимое данного метода при помощи редактора кода.
/// </summary>
private void InitializeComponent()
{
components = new System.ComponentModel.Container();
}
#endregion
}
}

View file

@ -1,129 +0,0 @@
/****************************** Module Header ******************************\
* Module Name: CustomRichTextBox.cs
* Project: CSWinFormSearchAndHighlightText
* Copyright(c) Microsoft Corporation.
*
* Theclass is used to create custom RichTextBox
* The custom RichTextBox add custom Highlight and ClearHighlight method
*
* This source is subject to the Microsoft Public License.
* See http://www.microsoft.com/en-us/openness/licenses.aspx.
* All other rights reserved.
*
* THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
* EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
\***************************************************************************/
using System.Drawing;
using System.Windows.Forms;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using System;
namespace Crypto_Notepad
{
/// <summary>
/// Custom RichTextBox control
/// </summary>
public partial class CustomRichTextBox : RichTextBox
{
public CustomRichTextBox()
: base()
{
InitializeComponent();
}
[DllImport("user32.dll", CharSet = CharSet.Auto)]
private static extern int SendMessage(IntPtr hWnd, int wMsg, IntPtr wParam, IntPtr lParam);
//this message is sent to the control when we scroll using the mouse
private const int WM_MOUSEWHEEL = 0x20A;
//and this one issues the control to perform scrolling
private const int WM_VSCROLL = 0x115;
protected override void WndProc(ref Message m)
{
if (m.Msg == WM_MOUSEWHEEL)
{
int scrollLines = SystemInformation.MouseWheelScrollLines;
for (int i = 0; i < scrollLines; i++)
{
if ((int)m.WParam > 0) // when wParam is greater than 0
SendMessage(this.Handle, WM_VSCROLL, (IntPtr)0, IntPtr.Zero); // scroll up
else
SendMessage(this.Handle, WM_VSCROLL, (IntPtr)1, IntPtr.Zero); // else scroll down
}
return;
}
base.WndProc(ref m);
}
/// <summary>
/// Search and Highlight all text in RichTextBox Control
/// </summary>
/// <param name="findWhat">Find What</param>
/// <param name="highlightColor">Highlight Color</param>
/// <param name="ismatchCase">Is Match Case</param>
/// <param name="ismatchWholeWord">Is Match Whole Word</param>
/// <returns></returns>
public bool Highlight(string findWhat, Color highlightColor, bool ismatchCase, bool ismatchWholeWord)
{
// Clear all highlights before searching text again
ClearHighlight();
int startSearch = 0;
//int searchLength = findWhat.Length;
RichTextBoxFinds findoptions = default(RichTextBoxFinds);
// Setup the search options.
if (ismatchCase && ismatchWholeWord)
{
findoptions = RichTextBoxFinds.MatchCase | RichTextBoxFinds.WholeWord;
}
else if (ismatchCase)
{
findoptions = RichTextBoxFinds.MatchCase;
}
else if (ismatchWholeWord)
{
findoptions = RichTextBoxFinds.WholeWord;
}
else
{
findoptions = RichTextBoxFinds.None;
}
// detect whether search text exists in richtextbox
bool isfind = false;
int index = -1;
// Search text in RichTextBox and highlight them with color.
int max = this.TextLength;
while (startSearch < max && (index = this.Find(findWhat, startSearch, findoptions)) > -1)
{
isfind = true;
this.SelectionBackColor = highlightColor;
// Continue after the one we searched
startSearch = index + 1;
}
// If the text exist in RichTextBox control, then return true, otherwise, return false
return isfind;
}
/// <summary>
/// Clear all Highlights
/// </summary>
private void ClearHighlight()
{
Properties.Settings ps = Properties.Settings.Default;
this.SelectAll();
this.SelectionBackColor = ps.RichBackColor;
}
}
}

View file

@ -0,0 +1,261 @@
using System;
using System.IO;
using System.Security.Cryptography;
using System.Text;
using System.Windows.Forms;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace Crypto_Notepad
{
/// <summary>
/// This class extracts information needed for decryption from a .cnp file
/// </summary>
class AESMetadata
{
/// <summary>
/// Offset to actual AES data; size of metadata
/// </summary>
public int OffsetToData { get; private set; }
public byte[] InitialVector { get; private set; }
public byte[] Salt { get; private set; }
public AESMetadata()
{
InitialVector = new byte[16];
Salt = null;
}
public void DeleteMetadataFromBuffer(ref byte[] rawData)
{
byte[] buffer = new byte[rawData.Length - OffsetToData];
Buffer.BlockCopy(rawData, OffsetToData, buffer, 0, rawData.Length - OffsetToData);
rawData = buffer;
}
private bool ReadData(byte[] rawData, int offset, ref byte[] dataOut)
{
// Buffer to store bytes
List<byte> buffer = new List<byte>();
const byte nullTerminator = 0;
bool foundData = false;
// Push data to buffer
for (int i = offset; i < rawData.Length; i++)
{
if (rawData[i] == nullTerminator) { foundData = true; break; }
else { buffer.Add(rawData[i]); }
}
if (foundData == true)
{
dataOut = buffer.ToArray();
return true;
}
return false;
}
public static void WriteMetadata(MemoryStream stream, byte[] IV, byte[] salt)
{
byte[] nullByte = { 0 };
stream.Write(IV, 0, IV.Length);
stream.Write(nullByte, 0, 1);
stream.Write(salt, 0, salt.Length);
stream.Write(nullByte, 0, 1);
}
public bool GetMetadata(byte[] rawData)
{
int offset = 0;
byte[] buffer = null;
if (!ReadData(rawData, 0, ref buffer)) { return false; }
InitialVector = buffer;
offset += buffer.Length + 1;
if (!ReadData(rawData, offset, ref buffer)) { return false; }
Salt = buffer;
offset += buffer.Length + 1;
OffsetToData = offset;
return true;
}
}
class AES
{
private static bool ByteArrayIsNonZero(byte[] byte_array)
{
foreach (byte i in byte_array)
{
if (i == 0)
{
return false;
}
}
return true;
}
// The purpose of this function is to ensure that the bytes generated by it are nonzero 100% of the time
// as there was a strange bug in which RNGCryptoServiceProvider.GetNonZeroBytes() would return a null byte sometimes
private static byte[] GenerateSecureNonZeroByteArray(int length)
{
byte[] result = new byte[length];
using (RNGCryptoServiceProvider rng = new RNGCryptoServiceProvider())
{
do
{
rng.GetNonZeroBytes(result);
} while (!ByteArrayIsNonZero(result));
}
return result;
}
public static async Task<string> Encrypt(string plainText, string password,
string salt = null, string hashAlgorithm = "SHA1",
int passwordIterations = 2, int keySize = 256)
{
return await Task.Run(() =>
{
if (string.IsNullOrEmpty(plainText))
return null;
if (string.IsNullOrEmpty(password))
return null;
byte[] plainTextBytes;
byte[] saltValueBytes;
// In case user wants a random salt or salt is null/empty for some other reason
if (string.IsNullOrEmpty(salt))
{
saltValueBytes = new byte[64]; // Nice and long
saltValueBytes = GenerateSecureNonZeroByteArray(saltValueBytes.Length);
}
else
{
saltValueBytes = Encoding.ASCII.GetBytes(salt);
}
plainTextBytes = Encoding.UTF8.GetBytes(plainText);
PasswordDeriveBytes derivedPassword = new PasswordDeriveBytes
(password, saltValueBytes, hashAlgorithm, passwordIterations);
// Null password; adds *some* memory dump protection
password = null;
byte[] keyBytes = derivedPassword.GetBytes(keySize / 8);
RijndaelManaged symmetricKey = new RijndaelManaged();
symmetricKey.Mode = CipherMode.CBC;
// Generate IV
symmetricKey.IV = GenerateSecureNonZeroByteArray(symmetricKey.IV.Length);
byte[] cipherTextBytes = null;
using (MemoryStream memStream = new MemoryStream())
{
AESMetadata.WriteMetadata(memStream, symmetricKey.IV, saltValueBytes);
using (ICryptoTransform encryptor = symmetricKey.CreateEncryptor
(keyBytes, symmetricKey.IV))
{
using (CryptoStream cryptoStream = new CryptoStream
(memStream, encryptor, CryptoStreamMode.Write))
{
cryptoStream.Write(plainTextBytes, 0, plainTextBytes.Length);
cryptoStream.FlushFinalBlock();
cipherTextBytes = memStream.ToArray();
memStream.Close();
cryptoStream.Close();
}
}
}
symmetricKey.Dispose();
derivedPassword.Dispose();
return Convert.ToBase64String(cipherTextBytes);
});
}
public static async Task<string> Decrypt(string cipherText, string password, string salt = "Kosher",
string hashAlgorithm = "SHA1",
int passwordIterations = 2,
int keySize = 256)
{
return await Task.Run(() =>
{
if (string.IsNullOrEmpty(cipherText))
return null;
if (string.IsNullOrEmpty(password))
return null;
byte[] initialVectorBytes;
byte[] saltValueBytes;
byte[] cipherTextBytes = Convert.FromBase64String(cipherText);
// Extract metadata from file
AESMetadata metadata = new AESMetadata();
if (!metadata.GetMetadata(cipherTextBytes))
{
// Metadata parsing error
DialogResult result = MessageBox.Show("Unable to parse file metadata.\nAttempt to open anyway?\n(May result in a \'Incorrect Key\' error if the salt is wrong.)",
"Missing or Corrupted Metadata", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Asterisk, MessageBoxDefaultButton.Button1, MessageBoxOptions.DefaultDesktopOnly);
if (result == DialogResult.Yes)
{
// Default initialization vector from builds v1.1.2 and older
const string default_IV = "16CHARSLONG12345";
initialVectorBytes = Encoding.ASCII.GetBytes(default_IV);
saltValueBytes = Encoding.ASCII.GetBytes(salt);
}
else
{
PublicVar.metadataCorrupt = true;
return null;
}
}
else
{
saltValueBytes = metadata.Salt;
initialVectorBytes = metadata.InitialVector;
metadata.DeleteMetadataFromBuffer(ref cipherTextBytes);
}
PasswordDeriveBytes derivedPassword = new PasswordDeriveBytes
(password, saltValueBytes, hashAlgorithm, passwordIterations);
byte[] keyBytes = derivedPassword.GetBytes(keySize / 8);
RijndaelManaged symmetricKey = new RijndaelManaged();
symmetricKey.Mode = CipherMode.CBC;
byte[] plainTextBytes = new byte[cipherTextBytes.Length];
int byteCount = 0;
using (MemoryStream memStream = new MemoryStream(cipherTextBytes))
{
using (ICryptoTransform decryptor = symmetricKey.CreateDecryptor
(keyBytes, initialVectorBytes))
{
using (CryptoStream cryptoStream
= new CryptoStream(memStream, decryptor, CryptoStreamMode.Read))
{
byteCount = cryptoStream.Read(plainTextBytes, 0, plainTextBytes.Length);
memStream.Close();
cryptoStream.Close();
}
}
symmetricKey.Dispose();
}
derivedPassword.Dispose();
return Encoding.UTF8.GetString(plainTextBytes, 0, byteCount);
});
}
}
}

View file

@ -0,0 +1,46 @@
using System.Text;
using System.Security.Cryptography;
using System;
namespace Crypto_Notepad
{
/// <summary>
/// Stores a string encrypted in memory to defend against memory dumps
/// </summary>
class EncryptedString: IDisposable
{
private readonly TripleDES des = TripleDES.Create();
private byte[] encryptedString = null;
public void Dispose() => des.Dispose();
public EncryptedString(string String)
{
des.GenerateIV();
des.GenerateKey();
Set(String);
}
public EncryptedString()
{
des.GenerateIV();
des.GenerateKey();
}
public string Get()
{
if (encryptedString == null) return null;
var decryptor = des.CreateDecryptor();
byte[] output = decryptor.TransformFinalBlock(encryptedString, 0, encryptedString.Length);
return Encoding.Default.GetString(output);
}
public void Set(string String)
{
if (String == null) { encryptedString = null; return; }
var encryptor = des.CreateEncryptor();
byte[] str = Encoding.Default.GetBytes(String);
encryptedString = encryptor.TransformFinalBlock(str, 0, str.Length);
}
}
}

View file

@ -0,0 +1,137 @@
using System;
using System.Drawing;
using System.Runtime.InteropServices;
using System.Windows.Forms;
namespace Crypto_Notepad
{
public class ExRichTextBox : RichTextBox
{
[DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = false)]
private static extern IntPtr SendMessage(IntPtr hWnd, uint Msg, IntPtr wParam, IntPtr lParam);
[DllImport("kernel32.dll", EntryPoint = "LoadLibraryW", CharSet = CharSet.Unicode, SetLastError = true)]
private static extern IntPtr LoadLibraryW(string s_File);
private const int WM_VSCROLL = 0x115;
private const int WM_MOUSEWHEEL = 0x20A;
protected override void WndProc(ref Message m)
{
if (m.Msg == WM_MOUSEWHEEL)
{
int scrollLines = SystemInformation.MouseWheelScrollLines;
for (int i = 0; i < scrollLines; i++)
{
try
{
if ((int)m.WParam >= 0)
SendMessage(Handle, WM_VSCROLL, (IntPtr)0, IntPtr.Zero);
else
SendMessage(Handle, WM_VSCROLL, (IntPtr)1, IntPtr.Zero);
}
catch (OverflowException)
{
SendMessage(Handle, WM_VSCROLL, (IntPtr)1, IntPtr.Zero);
}
}
return;
}
base.WndProc(ref m);
}
protected override CreateParams CreateParams
{
get
{
var cp = base.CreateParams;
LoadLibraryW("MsftEdit.dll");
cp.ClassName = "RichEdit50W";
return cp;
}
}
protected override void OnHandleCreated(EventArgs e)
{
base.OnHandleCreated(e);
if (!AutoWordSelection)
{
AutoWordSelection = true;
AutoWordSelection = false;
}
}
}
public static class RichTextBoxPadding
{
public static void SetInnerMargins(this TextBoxBase textBox, int left, int top, int right, int bottom)
{
var rect = textBox.GetFormattingRect();
var newRect = new Rectangle(left, top, rect.Width - left - right, rect.Height - top - bottom);
textBox.SetFormattingRect(newRect);
}
[StructLayout(LayoutKind.Sequential)]
private struct RECT
{
public readonly int Left;
public readonly int Top;
public readonly int Right;
public readonly int Bottom;
private RECT(int left, int top, int right, int bottom)
{
Left = left;
Top = top;
Right = right;
Bottom = bottom;
}
public RECT(Rectangle r) : this(r.Left, r.Top, r.Right, r.Bottom)
{
}
}
[DllImport(@"User32.dll", EntryPoint = @"SendMessage", CharSet = CharSet.Auto)]
private static extern int SendMessageRefRect(IntPtr hWnd, uint msg, int wParam, ref RECT rect);
[DllImport(@"user32.dll", EntryPoint = @"SendMessage", CharSet = CharSet.Auto)]
private static extern int SendMessage(IntPtr hwnd, int wMsg, IntPtr wParam, ref Rectangle lParam);
private const int EmGetrect = 0xB2;
private const int EmSetrect = 0xB3;
private static void SetFormattingRect(this TextBoxBase textbox, Rectangle rect)
{
var rc = new RECT(rect);
SendMessageRefRect(textbox.Handle, EmSetrect, 0, ref rc);
}
private static Rectangle GetFormattingRect(this TextBoxBase textbox)
{
var rect = new Rectangle();
SendMessage(textbox.Handle, EmGetrect, (IntPtr)0, ref rect);
return rect;
}
}
public static class RichTextBoxExtensions
{
[DllImport("user32.dll")]
private static extern IntPtr SendMessage(IntPtr hWnd, int msg, IntPtr wp, IntPtr lp);
private const int WM_SETREDRAW = 0x0b;
public static void SuspendDrawing(this RichTextBox richTextBox)
{
SendMessage(richTextBox.Handle, WM_SETREDRAW, (IntPtr)0, IntPtr.Zero);
}
public static void ResumeDrawing(this RichTextBox richTextBox)
{
SendMessage(richTextBox.Handle, WM_SETREDRAW, (IntPtr)1, IntPtr.Zero);
richTextBox.Invalidate();
}
}
}

View file

@ -0,0 +1,18 @@
using System;
using System.Runtime.InteropServices;
using System.Windows.Forms;
namespace Crypto_Notepad
{
public class HideCaretRichTextBox : ExRichTextBox
{
[DllImport("user32.dll", EntryPoint = "HideCaret")]
private static extern long HideCaret(IntPtr hwnd);
protected override void WndProc(ref Message m)
{
HideCaret(this.Handle);
base.WndProc(ref m);
}
}
}

View file

@ -0,0 +1,186 @@
using Microsoft.Win32;
using System;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Windows.Forms;
namespace Crypto_Notepad
{
public static class Methods
{
static readonly string[] SizeSuffixes = { "bytes", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB" };
public static void AppendLine(this TextBox source, string value)
{
if (source.Text.Length == 0)
source.Text = value;
else
source.AppendText("\r\n" + value);
}
public static bool IsOnScreen(Form form)
{
Rectangle formRectangle = new Rectangle(form.Left, form.Top, form.Width, form.Height);
return Screen.AllScreens.Any(s => s.WorkingArea.IntersectsWith(formRectangle));
}
public static void Times(this int count, Action action)
{
for (int i = 0; i < count; i++)
{
action();
}
}
public static string CheckDotNetVersion(int releaseKey)
{
if (releaseKey >= 528040)
return "4.8 or later";
if (releaseKey >= 461808)
return "4.7.2";
if (releaseKey >= 461308)
return "4.7.1";
if (releaseKey >= 460798)
return "4.7";
if (releaseKey >= 394802)
return "4.6.2";
if (releaseKey >= 394254)
return "4.6.1";
if (releaseKey >= 393295)
return "4.6";
if (releaseKey >= 379893)
return "4.5.2";
if (releaseKey >= 378675)
return "4.5.1";
if (releaseKey >= 378389)
return "4.5";
return "No 4.5 or later version detected";
}
public static string GetDotNetVersion()
{
int releaseKey;
using (RegistryKey ndpKey = RegistryKey.OpenBaseKey(RegistryHive.LocalMachine,
RegistryView.Registry32).OpenSubKey("SOFTWARE\\Microsoft\\NET Framework Setup\\NDP\\v4\\Full\\"))
{
releaseKey = Convert.ToInt32(ndpKey.GetValue("Release"));
}
return CheckDotNetVersion(releaseKey);
}
public static void DeleteUpdateFiles()
{
string exePath = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location) + @"\";
string UpdaterExe = exePath + "Updater.exe";
string UpdateZip = exePath + "Crypto-Notepad-Update.zip";
if (File.Exists(UpdaterExe))
{
File.Delete(UpdaterExe);
}
if (File.Exists(UpdateZip))
{
File.Delete(UpdateZip);
}
}
public static string SizeSuffix(long value)
{
if (value < 0) { return "-" + SizeSuffix(-value); }
int i = 0;
decimal dValue = (decimal)value;
while (Math.Round(dValue / 1024) >= 1)
{
dValue /= 1024;
i++;
}
return string.Format("{0:n1} {1}", dValue, SizeSuffixes[i]);
}
public static void AssociateExtension(string applicationExecutablePath, string extension)
{
try
{
RegistryKey key = Registry.CurrentUser.OpenSubKey("Software\\Classes", true);
key.CreateSubKey("." + extension).SetValue(string.Empty, extension + "_auto_file");
key = key.CreateSubKey(extension + "_auto_file");
key.CreateSubKey("DefaultIcon").SetValue(string.Empty, applicationExecutablePath + ",0");
key = key.CreateSubKey("Shell");
key.SetValue(string.Empty, "Open");
key = key.CreateSubKey("Open");
key.CreateSubKey("Command").SetValue(string.Empty, "\"" + applicationExecutablePath + "\" \"%1\" /o");
key.CreateSubKey("ddeexec\\Topic").SetValue(string.Empty, "System");
}
catch (Exception)
{
}
}
public static void DissociateExtension(string extension)
{
try
{
RegistryKey key = Registry.CurrentUser.OpenSubKey(@"Software\Classes", true);
RegistryKey subKeyTree = Registry.CurrentUser.OpenSubKey(@"Software\Classes\" + extension + "_auto_file", true);
if (subKeyTree != null)
{
key.DeleteSubKeyTree(extension + "_auto_file");
key.DeleteSubKeyTree("." + extension);
}
}
catch { }
}
public static void MenuIntegrate(string action)
{
string appExePath = Assembly.GetEntryAssembly().Location;
try
{
if (action == "enable")
{
RegistryKey key = Registry.CurrentUser.OpenSubKey(@"Software\Classes\", true);
key = key.CreateSubKey("*");
key = key.CreateSubKey("shell");
key.CreateSubKey("Crypto Notepad").SetValue("icon", appExePath);
key.CreateSubKey("Crypto Notepad").SetValue("SubCommands", "");
key.CreateSubKey(@"Crypto Notepad\shell");
key.CreateSubKey(@"Crypto Notepad\shell\cmd1\").SetValue("MUIVerb", "Encrypt");
key.CreateSubKey(@"Crypto Notepad\shell\cmd1\command").SetValue(string.Empty, "\"" + appExePath + "\" \"%1\" /er");
key.CreateSubKey(@"Crypto Notepad\shell\cmd2\").SetValue("MUIVerb", "Decrypt");
key.CreateSubKey(@"Crypto Notepad\shell\cmd2\command").SetValue(string.Empty, "\"" + appExePath + "\" \"%1\" /o");
}
if (action == "disable")
{
RegistryKey key = Registry.CurrentUser.OpenSubKey(@"Software\Classes\*\shell\", true);
RegistryKey subKeyTree = Registry.CurrentUser.OpenSubKey(@"Software\Classes\*\shell\Crypto Notepad", true);
if (subKeyTree != null)
{
key.DeleteSubKeyTree("Crypto Notepad");
}
}
}
catch { }
}
public static void SendToShortcut()
{
string shortcutPath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + @"\Microsoft\Windows\SendTo";
string shortcutName = PublicVar.appName + ".lnk";
string shortcutLocation = Path.Combine(shortcutPath, shortcutName);
string targetFileLocation = Assembly.GetEntryAssembly().Location;
IWshRuntimeLibrary.WshShell shell = new IWshRuntimeLibrary.WshShell();
IWshRuntimeLibrary.IWshShortcut shortcut = (IWshRuntimeLibrary.IWshShortcut)shell.CreateShortcut(shortcutLocation);
shortcut.Description = PublicVar.appName;
shortcut.IconLocation = targetFileLocation;
shortcut.TargetPath = targetFileLocation;
shortcut.Arguments = "/s";
shortcut.Save();
}
}
}

View file

@ -3,6 +3,7 @@
using System.Drawing; using System.Drawing;
using System.Windows.Forms; using System.Windows.Forms;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
using Crypto_Notepad;
class CenterWinDialog : IDisposable class CenterWinDialog : IDisposable
{ {
@ -11,21 +12,24 @@ class CenterWinDialog : IDisposable
public CenterWinDialog(Form owner) public CenterWinDialog(Form owner)
{ {
mOwner = owner; if (PublicVar.messageBoxCenterParent)
owner.BeginInvoke(new MethodInvoker(findDialog)); {
mOwner = owner;
owner.BeginInvoke(new MethodInvoker(FindDialog));
}
} }
private void findDialog() private void FindDialog()
{ {
// Enumerate windows to find the message box // Enumerate windows to find the message box
if (mTries < 0) return; if (mTries < 0) return;
EnumThreadWndProc callback = new EnumThreadWndProc(checkWindow); EnumThreadWndProc callback = new EnumThreadWndProc(CheckWindow);
if (EnumThreadWindows(GetCurrentThreadId(), callback, IntPtr.Zero)) if (EnumThreadWindows(GetCurrentThreadId(), callback, IntPtr.Zero))
{ {
if (++mTries < 10) mOwner.BeginInvoke(new MethodInvoker(findDialog)); if (++mTries < 10) mOwner.BeginInvoke(new MethodInvoker(FindDialog));
} }
} }
private bool checkWindow(IntPtr hWnd, IntPtr lp) private bool CheckWindow(IntPtr hWnd, IntPtr lp)
{ {
// Checks if <hWnd> is a dialog // Checks if <hWnd> is a dialog
StringBuilder sb = new StringBuilder(260); StringBuilder sb = new StringBuilder(260);
@ -33,8 +37,7 @@ private bool checkWindow(IntPtr hWnd, IntPtr lp)
if (sb.ToString() != "#32770") return true; if (sb.ToString() != "#32770") return true;
// Got it // Got it
Rectangle frmRect = new Rectangle(mOwner.Location, mOwner.Size); Rectangle frmRect = new Rectangle(mOwner.Location, mOwner.Size);
RECT dlgRect; GetWindowRect(hWnd, out RECT dlgRect);
GetWindowRect(hWnd, out dlgRect);
MoveWindow(hWnd, MoveWindow(hWnd,
frmRect.Left + (frmRect.Width - dlgRect.Right + dlgRect.Left) / 2, frmRect.Left + (frmRect.Width - dlgRect.Right + dlgRect.Left) / 2,
frmRect.Top + (frmRect.Height - dlgRect.Bottom + dlgRect.Top) / 2, frmRect.Top + (frmRect.Height - dlgRect.Bottom + dlgRect.Top) / 2,

View file

@ -0,0 +1,582 @@
using Microsoft.Win32;
using System;
using System.Runtime.InteropServices;
// http://www.codeproject.com/Articles/73000/Getting-Operating-System-Version-Info-Even-for-Win
//https://en.wikipedia.org/wiki/List_of_Microsoft_Windows_versions
//Thanks to Member 7861383, Scott Vickery for the Windows 8.1 update and workaround.
//I have moved it to the beginning of the Name property, though...
//Thakts to Brisingr Aerowing for help with the Windows 10 adapatation
namespace JCS
{
/// <summary>
/// Provides detailed information about the host operating system.
/// </summary>
public static class OSVersionInfo
{
#region ENUMS
public enum SoftwareArchitecture
{
Unknown = 0,
Bit32 = 1,
Bit64 = 2
}
public enum ProcessorArchitecture
{
Unknown = 0,
Bit32 = 1,
Bit64 = 2,
Itanium64 = 3
}
#endregion ENUMS
#region DELEGATE DECLARATION
private delegate bool IsWow64ProcessDelegate([In] IntPtr handle, [Out] out bool isWow64Process);
#endregion DELEGATE DECLARATION
#region NAME
static private string s_Name;
/// <summary>
/// Gets the name of the operating system running on this computer.
/// </summary>
static public string Name
{
get
{
if (s_Name != null)
return s_Name; //***** RETURN *****//
string name = "unknown";
OperatingSystem osVersion = Environment.OSVersion;
OSVERSIONINFOEX osVersionInfo = new OSVERSIONINFOEX();
osVersionInfo.dwOSVersionInfoSize = Marshal.SizeOf(typeof(OSVERSIONINFOEX));
if (GetVersionEx(ref osVersionInfo))
{
int majorVersion = osVersion.Version.Major;
int minorVersion = osVersion.Version.Minor;
if (majorVersion == 6 && minorVersion == 2)
{
//The registry read workaround is by Scott Vickery. Thanks a lot for the help!
//http://msdn.microsoft.com/en-us/library/windows/desktop/ms724832(v=vs.85).aspx
// For applications that have been manifested for Windows 8.1 & Windows 10. Applications not manifested for 8.1 or 10 will return the Windows 8 OS version value (6.2).
// By reading the registry, we'll get the exact version - meaning we can even compare against Win 8 and Win 8.1.
string exactVersion = RegistryRead(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion", "CurrentVersion", "");
if (!string.IsNullOrEmpty(exactVersion))
{
string[] splitResult = exactVersion.Split('.');
majorVersion = Convert.ToInt32(splitResult[0]);
minorVersion = Convert.ToInt32(splitResult[1]);
}
if (IsWindows10())
{
majorVersion = 10;
minorVersion = 0;
}
}
switch (osVersion.Platform)
{
case PlatformID.Win32S:
name = "Windows 3.1";
break;
case PlatformID.WinCE:
name = "Windows CE";
break;
case PlatformID.Win32Windows:
{
if (majorVersion == 4)
{
string csdVersion = osVersionInfo.szCSDVersion;
switch (minorVersion)
{
case 0:
if (csdVersion == "B" || csdVersion == "C")
name = "Windows 95 OSR2";
else
name = "Windows 95";
break;
case 10:
if (csdVersion == "A")
name = "Windows 98 Second Edition";
else
name = "Windows 98";
break;
case 90:
name = "Windows Me";
break;
}
}
break;
}
case PlatformID.Win32NT:
{
byte productType = osVersionInfo.wProductType;
switch (majorVersion)
{
case 3:
name = "Windows NT 3.51";
break;
case 4:
switch (productType)
{
case 1:
name = "Windows NT 4.0";
break;
case 3:
name = "Windows NT 4.0 Server";
break;
}
break;
case 5:
switch (minorVersion)
{
case 0:
name = "Windows 2000";
break;
case 1:
name = "Windows XP";
break;
case 2:
name = "Windows Server 2003";
break;
}
break;
case 6:
switch (minorVersion)
{
case 0:
switch (productType)
{
case 1:
name = "Windows Vista";
break;
case 3:
name = "Windows Server 2008";
break;
}
break;
case 1:
switch (productType)
{
case 1:
name = "Windows 7";
break;
case 3:
name = "Windows Server 2008 R2";
break;
}
break;
case 2:
switch (productType)
{
case 1:
name = "Windows 8";
break;
case 3:
name = "Windows Server 2012";
break;
}
break;
case 3:
switch (productType)
{
case 1:
name = "Windows 8.1";
break;
case 3:
name = "Windows Server 2012 R2";
break;
}
break;
}
break;
case 10:
switch (minorVersion)
{
case 0:
switch (productType)
{
case 1:
name = "Windows 10";
break;
case 3:
name = "Windows Server 2016";
break;
}
break;
}
break;
}
break;
}
}
}
s_Name = name;
return name;
}
}
#endregion NAME
#region PINVOKE
#region GET
#region PRODUCT INFO
[DllImport("Kernel32.dll")]
internal static extern bool GetProductInfo(
int osMajorVersion,
int osMinorVersion,
int spMajorVersion,
int spMinorVersion,
out int edition);
#endregion PRODUCT INFO
#region VERSION
[DllImport("kernel32.dll")]
private static extern bool GetVersionEx(ref OSVERSIONINFOEX osVersionInfo);
#endregion VERSION
#region SYSTEMMETRICS
[DllImport("user32")]
public static extern int GetSystemMetrics(int nIndex);
#endregion SYSTEMMETRICS
#region SYSTEMINFO
[DllImport("kernel32.dll")]
public static extern void GetSystemInfo([MarshalAs(UnmanagedType.Struct)] ref SYSTEM_INFO lpSystemInfo);
[DllImport("kernel32.dll")]
public static extern void GetNativeSystemInfo([MarshalAs(UnmanagedType.Struct)] ref SYSTEM_INFO lpSystemInfo);
#endregion SYSTEMINFO
#endregion GET
#region OSVERSIONINFOEX
[StructLayout(LayoutKind.Sequential)]
private struct OSVERSIONINFOEX
{
public int dwOSVersionInfoSize;
public int dwMajorVersion;
public int dwMinorVersion;
public int dwBuildNumber;
public int dwPlatformId;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 128)]
public string szCSDVersion;
public short wServicePackMajor;
public short wServicePackMinor;
public short wSuiteMask;
public byte wProductType;
public byte wReserved;
}
#endregion OSVERSIONINFOEX
#region SYSTEM_INFO
[StructLayout(LayoutKind.Sequential)]
public struct SYSTEM_INFO
{
internal _PROCESSOR_INFO_UNION uProcessorInfo;
public uint dwPageSize;
public IntPtr lpMinimumApplicationAddress;
public IntPtr lpMaximumApplicationAddress;
public IntPtr dwActiveProcessorMask;
public uint dwNumberOfProcessors;
public uint dwProcessorType;
public uint dwAllocationGranularity;
public ushort dwProcessorLevel;
public ushort dwProcessorRevision;
}
#endregion SYSTEM_INFO
#region _PROCESSOR_INFO_UNION
[StructLayout(LayoutKind.Explicit)]
public struct _PROCESSOR_INFO_UNION
{
[FieldOffset(0)]
internal uint dwOemId;
[FieldOffset(0)]
internal ushort wProcessorArchitecture;
[FieldOffset(2)]
internal ushort wReserved;
}
#endregion _PROCESSOR_INFO_UNION
#region 64 BIT OS DETECTION
[DllImport("kernel32", SetLastError = true, CallingConvention = CallingConvention.Winapi)]
public extern static IntPtr LoadLibrary(string libraryName);
[DllImport("kernel32", SetLastError = true, CallingConvention = CallingConvention.Winapi)]
public extern static IntPtr GetProcAddress(IntPtr hwnd, string procedureName);
#endregion 64 BIT OS DETECTION
#region PRODUCT
private const int PRODUCT_UNDEFINED = 0x00000000;
private const int PRODUCT_ULTIMATE = 0x00000001;
private const int PRODUCT_HOME_BASIC = 0x00000002;
private const int PRODUCT_HOME_PREMIUM = 0x00000003;
private const int PRODUCT_ENTERPRISE = 0x00000004;
private const int PRODUCT_HOME_BASIC_N = 0x00000005;
private const int PRODUCT_BUSINESS = 0x00000006;
private const int PRODUCT_STANDARD_SERVER = 0x00000007;
private const int PRODUCT_DATACENTER_SERVER = 0x00000008;
private const int PRODUCT_SMALLBUSINESS_SERVER = 0x00000009;
private const int PRODUCT_ENTERPRISE_SERVER = 0x0000000A;
private const int PRODUCT_STARTER = 0x0000000B;
private const int PRODUCT_DATACENTER_SERVER_CORE = 0x0000000C;
private const int PRODUCT_STANDARD_SERVER_CORE = 0x0000000D;
private const int PRODUCT_ENTERPRISE_SERVER_CORE = 0x0000000E;
private const int PRODUCT_ENTERPRISE_SERVER_IA64 = 0x0000000F;
private const int PRODUCT_BUSINESS_N = 0x00000010;
private const int PRODUCT_WEB_SERVER = 0x00000011;
private const int PRODUCT_CLUSTER_SERVER = 0x00000012;
private const int PRODUCT_HOME_SERVER = 0x00000013;
private const int PRODUCT_STORAGE_EXPRESS_SERVER = 0x00000014;
private const int PRODUCT_STORAGE_STANDARD_SERVER = 0x00000015;
private const int PRODUCT_STORAGE_WORKGROUP_SERVER = 0x00000016;
private const int PRODUCT_STORAGE_ENTERPRISE_SERVER = 0x00000017;
private const int PRODUCT_SERVER_FOR_SMALLBUSINESS = 0x00000018;
private const int PRODUCT_SMALLBUSINESS_SERVER_PREMIUM = 0x00000019;
private const int PRODUCT_HOME_PREMIUM_N = 0x0000001A;
private const int PRODUCT_ENTERPRISE_N = 0x0000001B;
private const int PRODUCT_ULTIMATE_N = 0x0000001C;
private const int PRODUCT_WEB_SERVER_CORE = 0x0000001D;
private const int PRODUCT_MEDIUMBUSINESS_SERVER_MANAGEMENT = 0x0000001E;
private const int PRODUCT_MEDIUMBUSINESS_SERVER_SECURITY = 0x0000001F;
private const int PRODUCT_MEDIUMBUSINESS_SERVER_MESSAGING = 0x00000020;
private const int PRODUCT_SERVER_FOUNDATION = 0x00000021;
private const int PRODUCT_HOME_PREMIUM_SERVER = 0x00000022;
private const int PRODUCT_SERVER_FOR_SMALLBUSINESS_V = 0x00000023;
private const int PRODUCT_STANDARD_SERVER_V = 0x00000024;
private const int PRODUCT_DATACENTER_SERVER_V = 0x00000025;
private const int PRODUCT_ENTERPRISE_SERVER_V = 0x00000026;
private const int PRODUCT_DATACENTER_SERVER_CORE_V = 0x00000027;
private const int PRODUCT_STANDARD_SERVER_CORE_V = 0x00000028;
private const int PRODUCT_ENTERPRISE_SERVER_CORE_V = 0x00000029;
private const int PRODUCT_HYPERV = 0x0000002A;
private const int PRODUCT_STORAGE_EXPRESS_SERVER_CORE = 0x0000002B;
private const int PRODUCT_STORAGE_STANDARD_SERVER_CORE = 0x0000002C;
private const int PRODUCT_STORAGE_WORKGROUP_SERVER_CORE = 0x0000002D;
private const int PRODUCT_STORAGE_ENTERPRISE_SERVER_CORE = 0x0000002E;
private const int PRODUCT_STARTER_N = 0x0000002F;
private const int PRODUCT_PROFESSIONAL = 0x00000030;
private const int PRODUCT_PROFESSIONAL_N = 0x00000031;
private const int PRODUCT_SB_SOLUTION_SERVER = 0x00000032;
private const int PRODUCT_SERVER_FOR_SB_SOLUTIONS = 0x00000033;
private const int PRODUCT_STANDARD_SERVER_SOLUTIONS = 0x00000034;
private const int PRODUCT_STANDARD_SERVER_SOLUTIONS_CORE = 0x00000035;
private const int PRODUCT_SB_SOLUTION_SERVER_EM = 0x00000036;
private const int PRODUCT_SERVER_FOR_SB_SOLUTIONS_EM = 0x00000037;
private const int PRODUCT_SOLUTION_EMBEDDEDSERVER = 0x00000038;
private const int PRODUCT_SOLUTION_EMBEDDEDSERVER_CORE = 0x00000039;
//private const int ???? = 0x0000003A;
private const int PRODUCT_ESSENTIALBUSINESS_SERVER_MGMT = 0x0000003B;
private const int PRODUCT_ESSENTIALBUSINESS_SERVER_ADDL = 0x0000003C;
private const int PRODUCT_ESSENTIALBUSINESS_SERVER_MGMTSVC = 0x0000003D;
private const int PRODUCT_ESSENTIALBUSINESS_SERVER_ADDLSVC = 0x0000003E;
private const int PRODUCT_SMALLBUSINESS_SERVER_PREMIUM_CORE = 0x0000003F;
private const int PRODUCT_CLUSTER_SERVER_V = 0x00000040;
private const int PRODUCT_EMBEDDED = 0x00000041;
private const int PRODUCT_STARTER_E = 0x00000042;
private const int PRODUCT_HOME_BASIC_E = 0x00000043;
private const int PRODUCT_HOME_PREMIUM_E = 0x00000044;
private const int PRODUCT_PROFESSIONAL_E = 0x00000045;
private const int PRODUCT_ENTERPRISE_E = 0x00000046;
private const int PRODUCT_ULTIMATE_E = 0x00000047;
//private const int PRODUCT_UNLICENSED = 0xABCDABCD;
#endregion PRODUCT
#region VERSIONS
private const int VER_NT_WORKSTATION = 1;
private const int VER_NT_DOMAIN_CONTROLLER = 2;
private const int VER_NT_SERVER = 3;
private const int VER_SUITE_SMALLBUSINESS = 1;
private const int VER_SUITE_ENTERPRISE = 2;
private const int VER_SUITE_TERMINAL = 16;
private const int VER_SUITE_DATACENTER = 128;
private const int VER_SUITE_SINGLEUSERTS = 256;
private const int VER_SUITE_PERSONAL = 512;
private const int VER_SUITE_BLADE = 1024;
#endregion VERSIONS
#endregion PINVOKE
#region VERSION
#region BUILD
/// <summary>
/// Gets the build version number of the operating system running on this computer.
/// </summary>
static public int BuildVersion
{
get
{
return int.Parse(RegistryRead(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion", "CurrentBuildNumber", "0"));
}
}
#endregion BUILD
#region FULL
#region STRING
/// <summary>
/// Gets the full version string of the operating system running on this computer.
/// </summary>
static public string VersionString
{
get
{
return Version.ToString();
}
}
#endregion STRING
#region VERSION
/// <summary>
/// Gets the full version of the operating system running on this computer.
/// </summary>
static public Version Version
{
get
{
return new Version(MajorVersion, MinorVersion, BuildVersion, RevisionVersion);
}
}
#endregion VERSION
#endregion FULL
#region MAJOR
/// <summary>
/// Gets the major version number of the operating system running on this computer.
/// </summary>
static public int MajorVersion
{
get
{
if(IsWindows10())
{
return 10;
}
string exactVersion = RegistryRead(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion", "CurrentVersion", "");
if(!string.IsNullOrEmpty(exactVersion))
{
string[] splitVersion = exactVersion.Split('.');
return int.Parse(splitVersion[0]);
}
return Environment.OSVersion.Version.Major;
}
}
#endregion MAJOR
#region MINOR
/// <summary>
/// Gets the minor version number of the operating system running on this computer.
/// </summary>
static public int MinorVersion
{
get
{
if (IsWindows10())
{
return 0;
}
string exactVersion = RegistryRead(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion", "CurrentVersion", "");
if (!string.IsNullOrEmpty(exactVersion))
{
string[] splitVersion = exactVersion.Split('.');
return int.Parse(splitVersion[1]);
}
return Environment.OSVersion.Version.Minor;
}
}
#endregion MINOR
#region REVISION
/// <summary>
/// Gets the revision version number of the operating system running on this computer.
/// </summary>
static public int RevisionVersion
{
get
{
if(IsWindows10())
{
return 0;
}
return Environment.OSVersion.Version.Revision;
}
}
#endregion REVISION
#endregion VERSION
#region Windows 10 Detection
private static bool IsWindows10()
{
string productName = RegistryRead(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion", "ProductName", "");
if (productName.StartsWith("Windows 10", StringComparison.OrdinalIgnoreCase))
{
return true;
}
return false;
}
#endregion
#region Registry Methods
private static string RegistryRead(string RegistryPath, string Field, string DefaultValue)
{
string rtn = "";
string backSlash = "";
string newRegistryPath = "";
try
{
RegistryKey OurKey = null;
string[] split_result = RegistryPath.Split('\\');
if (split_result.Length > 0)
{
split_result[0] = split_result[0].ToUpper(); // Make the first entry uppercase...
if (split_result[0] == "HKEY_CLASSES_ROOT") OurKey = Registry.ClassesRoot;
else if (split_result[0] == "HKEY_CURRENT_USER") OurKey = Registry.CurrentUser;
else if (split_result[0] == "HKEY_LOCAL_MACHINE") OurKey = Registry.LocalMachine;
else if (split_result[0] == "HKEY_USERS") OurKey = Registry.Users;
else if (split_result[0] == "HKEY_CURRENT_CONFIG") OurKey = Registry.CurrentConfig;
if (OurKey != null)
{
for (int i = 1; i < split_result.Length; i++)
{
newRegistryPath += backSlash + split_result[i];
backSlash = "\\";
}
if (newRegistryPath != "")
{
//rtn = (string)Registry.GetValue(RegistryPath, "CurrentVersion", DefaultValue);
OurKey = OurKey.OpenSubKey(newRegistryPath);
rtn = (string)OurKey.GetValue(Field, DefaultValue);
OurKey.Close();
}
}
}
}
catch { }
return rtn;
}
#endregion Registry Methods
}
}

View file

@ -0,0 +1,257 @@
using System.Drawing;
using System.ComponentModel;
namespace System.Windows.Forms
{
public class PlaceholderTextBox : TextBox
{
#region Fields
#region Protected Fields
protected string _placeholderText = "Default placeholder"; //The placeholder text
protected Color _placeholderColor; //Color of the placeholder when the control does not have focus
protected Color _placeholderActiveColor; //Color of the placeholder when the control has focus
#endregion
#region Private Fields
private Panel placeholderContainer; //Container to hold the placeholder
private Font placeholderFont; //Font of the placeholder
private SolidBrush placeholderBrush; //Brush for the placeholder
#endregion
#endregion
#region Constructors
public PlaceholderTextBox()
{
Initialize();
}
#endregion
#region Private Methods
/// <summary>
/// Initializes placeholder properties and adds CtextBox events
/// </summary>
private void Initialize()
{
//Sets some default values to the placeholder properties
_placeholderColor = Color.LightGray;
_placeholderActiveColor = Color.Gray;
placeholderFont = Font;
placeholderBrush = new SolidBrush(_placeholderActiveColor);
placeholderContainer = null;
//Draw the placeholder, so we can see it in design time
DrawPlaceholder();
//Eventhandlers which contains function calls.
//Either to draw or to remove the placeholder
Enter += new EventHandler(ThisHasFocus);
Leave += new EventHandler(ThisWasLeaved);
TextChanged += new EventHandler(ThisTextChanged);
}
/// <summary>
/// Removes the placeholder if it should
/// </summary>
private void RemovePlaceholder()
{
if (placeholderContainer != null)
{
Controls.Remove(placeholderContainer);
placeholderContainer = null;
}
}
/// <summary>
/// Draws the placeholder if the text length is 0
/// </summary>
private void DrawPlaceholder()
{
if (placeholderContainer == null && TextLength <= 0)
{
placeholderContainer = new Panel(); // Creates the new panel instance
placeholderContainer.Paint += new PaintEventHandler(placeholderContainer_Paint);
placeholderContainer.Invalidate();
placeholderContainer.Click += new EventHandler(placeholderContainer_Click);
Controls.Add(placeholderContainer); // adds the control
}
}
#endregion
#region Eventhandlers
#region Placeholder Events
private void placeholderContainer_Click(object sender, EventArgs e)
{
Focus(); //Makes sure you can click wherever you want on the control to gain focus
}
private void placeholderContainer_Paint(object sender, PaintEventArgs e)
{
//Setting the placeholder container up
placeholderContainer.Location = new Point(2, 0); // sets the location
placeholderContainer.Height = Height; // Height should be the same as its parent
placeholderContainer.Width = Width; // same goes for width and the parent
placeholderContainer.Anchor = AnchorStyles.Left | AnchorStyles.Right; // makes sure that it resizes with the parent control
if (ContainsFocus)
{
//if focused use normal color
placeholderBrush = new SolidBrush(_placeholderActiveColor);
}
else
{
//if not focused use not active color
placeholderBrush = new SolidBrush(_placeholderColor);
}
//Drawing the string into the panel
Graphics g = e.Graphics;
g.DrawString(_placeholderText, placeholderFont, placeholderBrush, new PointF(-2f, 1f));//Take a look at that point
//The reason I'm using the panel at all, is because of this feature, that it has no limits
//I started out with a label but that looked very very bad because of its paddings
}
#endregion
#region CTextBox Events
private void ThisHasFocus(object sender, EventArgs e)
{
//if focused use focus color
placeholderBrush = new SolidBrush(_placeholderActiveColor);
//The placeholder should not be drawn if the user has already written some text
if (TextLength <= 0)
{
RemovePlaceholder();
DrawPlaceholder();
}
}
private void ThisWasLeaved(object sender, EventArgs e)
{
//if the user has written something and left the control
if (TextLength > 0)
{
//Remove the placeholder
RemovePlaceholder();
}
else
{
//But if the user didn't write anything, Then redraw the control.
Invalidate();
}
}
private void ThisTextChanged(object sender, EventArgs e)
{
//If the text of the textbox is not empty
if (TextLength > 0)
{
//Remove the placeholder
RemovePlaceholder();
}
else
{
//But if the text is empty, draw the placeholder again.
DrawPlaceholder();
}
}
#region Overrided Events
protected override void OnPaint(PaintEventArgs e)
{
base.OnPaint(e);
//Draw the placeholder even in design time
DrawPlaceholder();
}
protected override void OnInvalidated(InvalidateEventArgs e)
{
base.OnInvalidated(e);
//Check if there is a placeholder
if (placeholderContainer != null)
//if there is a placeholder it should also be invalidated();
placeholderContainer.Invalidate();
}
#endregion
#endregion
#endregion
#region Properties
[Category("Placeholder attribtues")]
[Description("Sets the text of the placeholder")]
public string Placeholder
{
get { return _placeholderText; }
set
{
_placeholderText = value;
Invalidate();
}
}
[Category("Placeholder attribtues")]
[Description("When the control gaines focus, this color will be used as the placeholder's forecolor")]
public Color PlaceholderActiveForeColor
{
get { return _placeholderActiveColor; }
set
{
_placeholderActiveColor = value;
Invalidate();
}
}
[Category("Placeholder attribtues")]
[Description("When the control looses focus, this color will be used as the placeholder's forecolor")]
public Color PlaceholderForeColor
{
get { return _placeholderColor; }
set
{
_placeholderColor = value;
Invalidate();
}
}
[Category("Placeholder attribtues")]
[Description("The font used on the watermark. Default is the same as the control")]
public Font PlaceholderFont
{
get
{
return placeholderFont;
}
set
{
placeholderFont = value;
Invalidate();
}
}
#endregion
}
}

View file

@ -0,0 +1,3 @@
<Weavers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FodyWeavers.xsd">
<Costura />
</Weavers>

View file

@ -0,0 +1,111 @@
<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<!-- This file was generated by Fody. Manual changes to this file will be lost when your project is rebuilt. -->
<xs:element name="Weavers">
<xs:complexType>
<xs:all>
<xs:element name="Costura" minOccurs="0" maxOccurs="1">
<xs:complexType>
<xs:all>
<xs:element minOccurs="0" maxOccurs="1" name="ExcludeAssemblies" type="xs:string">
<xs:annotation>
<xs:documentation>A list of assembly names to exclude from the default action of "embed all Copy Local references", delimited with line breaks</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" maxOccurs="1" name="IncludeAssemblies" type="xs:string">
<xs:annotation>
<xs:documentation>A list of assembly names to include from the default action of "embed all Copy Local references", delimited with line breaks.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" maxOccurs="1" name="Unmanaged32Assemblies" type="xs:string">
<xs:annotation>
<xs:documentation>A list of unmanaged 32 bit assembly names to include, delimited with line breaks.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" maxOccurs="1" name="Unmanaged64Assemblies" type="xs:string">
<xs:annotation>
<xs:documentation>A list of unmanaged 64 bit assembly names to include, delimited with line breaks.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element minOccurs="0" maxOccurs="1" name="PreloadOrder" type="xs:string">
<xs:annotation>
<xs:documentation>The order of preloaded assemblies, delimited with line breaks.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:all>
<xs:attribute name="CreateTemporaryAssemblies" type="xs:boolean">
<xs:annotation>
<xs:documentation>This will copy embedded files to disk before loading them into memory. This is helpful for some scenarios that expected an assembly to be loaded from a physical file.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="IncludeDebugSymbols" type="xs:boolean">
<xs:annotation>
<xs:documentation>Controls if .pdbs for reference assemblies are also embedded.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="DisableCompression" type="xs:boolean">
<xs:annotation>
<xs:documentation>Embedded assemblies are compressed by default, and uncompressed when they are loaded. You can turn compression off with this option.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="DisableCleanup" type="xs:boolean">
<xs:annotation>
<xs:documentation>As part of Costura, embedded assemblies are no longer included as part of the build. This cleanup can be turned off.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="LoadAtModuleInit" type="xs:boolean">
<xs:annotation>
<xs:documentation>Costura by default will load as part of the module initialization. This flag disables that behavior. Make sure you call CosturaUtility.Initialize() somewhere in your code.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="IgnoreSatelliteAssemblies" type="xs:boolean">
<xs:annotation>
<xs:documentation>Costura will by default use assemblies with a name like 'resources.dll' as a satellite resource and prepend the output path. This flag disables that behavior.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="ExcludeAssemblies" type="xs:string">
<xs:annotation>
<xs:documentation>A list of assembly names to exclude from the default action of "embed all Copy Local references", delimited with |</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="IncludeAssemblies" type="xs:string">
<xs:annotation>
<xs:documentation>A list of assembly names to include from the default action of "embed all Copy Local references", delimited with |.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="Unmanaged32Assemblies" type="xs:string">
<xs:annotation>
<xs:documentation>A list of unmanaged 32 bit assembly names to include, delimited with |.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="Unmanaged64Assemblies" type="xs:string">
<xs:annotation>
<xs:documentation>A list of unmanaged 64 bit assembly names to include, delimited with |.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="PreloadOrder" type="xs:string">
<xs:annotation>
<xs:documentation>The order of preloaded assemblies, delimited with |.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:all>
<xs:attribute name="VerifyAssembly" type="xs:boolean">
<xs:annotation>
<xs:documentation>'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="VerifyIgnoreCodes" type="xs:string">
<xs:annotation>
<xs:documentation>A comma-separated list of error codes that can be safely ignored in assembly verification.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="GenerateXsd" type="xs:boolean">
<xs:annotation>
<xs:documentation>'false' to turn off automatic generation of the XML Schema file.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:schema>

View file

@ -1,938 +0,0 @@
namespace Crypto_Notepad
{
partial class MainWindow
{
/// <summary>
/// Требуется переменная конструктора.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Освободить все используемые ресурсы.
/// </summary>
/// <param name="disposing">истинно, если управляемый ресурс должен быть удален; иначе ложно.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Код, автоматически созданный конструктором форм Windows
/// <summary>
/// Обязательный метод для поддержки конструктора - не изменяйте
/// содержимое данного метода при помощи редактора кода.
/// </summary>
public void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainWindow));
this.MainMenu = new System.Windows.Forms.MenuStrip();
this.файлToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.создатьToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.открытьToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator11 = new System.Windows.Forms.ToolStripSeparator();
this.сохранитьToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
this.сохранитьToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator();
this.открытьРасположениеФайлаToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.УдалитьФайлToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
this.выходToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.правкаToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.отменаToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
this.вырезатьToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.копироватьToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.вставитьToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.удалитьToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator9 = new System.Windows.Forms.ToolStripSeparator();
this.findToolStripMenuItem2 = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator();
this.выделитьВсеToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.переносПоСловамToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator5 = new System.Windows.Forms.ToolStripSeparator();
this.очиститьToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.сервисToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.changeKeyToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.settingsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.помощьToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.documentationToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.сheckForUpdatesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.оПрограммеToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
this.отменитьToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator6 = new System.Windows.Forms.ToolStripSeparator();
this.вырезатьToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
this.копироватьToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
this.вставитьToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
this.удалитьToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator8 = new System.Windows.Forms.ToolStripSeparator();
this.выделитьВсеToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
this.порядокЧтенияСправаНалевоToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.toolStripSeparator7 = new System.Windows.Forms.ToolStripSeparator();
this.очиститьToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
this.OpenFile = new System.Windows.Forms.OpenFileDialog();
this.SaveFile = new System.Windows.Forms.SaveFileDialog();
this.button1 = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button();
this.statusStrip1 = new System.Windows.Forms.StatusStrip();
this.toolStripStatusLabel1 = new System.Windows.Forms.ToolStripStatusLabel();
this.lineStripStatusLabel = new System.Windows.Forms.ToolStripStatusLabel();
this.columnStripStatusLabel = new System.Windows.Forms.ToolStripStatusLabel();
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
this.pictureBox12 = new System.Windows.Forms.PictureBox();
this.pictureBox5 = new System.Windows.Forms.PictureBox();
this.pictureBox2 = new System.Windows.Forms.PictureBox();
this.pictureBox11 = new System.Windows.Forms.PictureBox();
this.pictureBox10 = new System.Windows.Forms.PictureBox();
this.pictureBox9 = new System.Windows.Forms.PictureBox();
this.pictureBox8 = new System.Windows.Forms.PictureBox();
this.pictureBox7 = new System.Windows.Forms.PictureBox();
this.pictureBox6 = new System.Windows.Forms.PictureBox();
this.pictureBox4 = new System.Windows.Forms.PictureBox();
this.pictureBox3 = new System.Windows.Forms.PictureBox();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.searchTextBox = new System.Windows.Forms.TextBox();
this.chkMatchCase = new System.Windows.Forms.CheckBox();
this.chkMatchWholeWord = new System.Windows.Forms.CheckBox();
this.panel1 = new System.Windows.Forms.Panel();
this.panel2 = new System.Windows.Forms.Panel();
this.customRTB = new Crypto_Notepad.CustomRichTextBox();
this.MainMenu.SuspendLayout();
this.contextMenuStrip1.SuspendLayout();
this.statusStrip1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox12)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox5)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox11)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox10)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox9)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox8)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox7)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox6)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox4)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.panel1.SuspendLayout();
this.panel2.SuspendLayout();
this.SuspendLayout();
//
// MainMenu
//
this.MainMenu.Font = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.MainMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.файлToolStripMenuItem,
this.правкаToolStripMenuItem,
this.сервисToolStripMenuItem,
this.помощьToolStripMenuItem});
this.MainMenu.Location = new System.Drawing.Point(0, 0);
this.MainMenu.Name = "MainMenu";
this.MainMenu.Padding = new System.Windows.Forms.Padding(0);
this.MainMenu.RenderMode = System.Windows.Forms.ToolStripRenderMode.Professional;
this.MainMenu.Size = new System.Drawing.Size(689, 24);
this.MainMenu.TabIndex = 0;
this.MainMenu.Text = "menuStrip1";
//
// файлToolStripMenuItem
//
this.файлToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.создатьToolStripMenuItem,
this.открытьToolStripMenuItem,
this.toolStripSeparator11,
this.сохранитьToolStripMenuItem1,
this.сохранитьToolStripMenuItem,
this.toolStripSeparator4,
this.открытьРасположениеФайлаToolStripMenuItem,
this.УдалитьФайлToolStripMenuItem,
this.toolStripSeparator2,
this.выходToolStripMenuItem});
this.файлToolStripMenuItem.Name = айлToolStripMenuItem";
this.файлToolStripMenuItem.Size = new System.Drawing.Size(36, 24);
this.файлToolStripMenuItem.Text = "File";
//
// создатьToolStripMenuItem
//
this.создатьToolStripMenuItem.Name = "создатьToolStripMenuItem";
this.создатьToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.N)));
this.создатьToolStripMenuItem.Size = new System.Drawing.Size(202, 22);
this.создатьToolStripMenuItem.Text = "New File";
this.создатьToolStripMenuItem.Click += new System.EventHandler(this.новыйToolStripMenuItem_Click_1);
//
// открытьToolStripMenuItem
//
this.открытьToolStripMenuItem.Name = "открытьToolStripMenuItem";
this.открытьToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.O)));
this.открытьToolStripMenuItem.Size = new System.Drawing.Size(202, 22);
this.открытьToolStripMenuItem.Text = "Open File";
this.открытьToolStripMenuItem.Click += new System.EventHandler(this.открытьToolStripMenuItem_Click);
//
// toolStripSeparator11
//
this.toolStripSeparator11.Name = "toolStripSeparator11";
this.toolStripSeparator11.Size = new System.Drawing.Size(199, 6);
//
// сохранитьToolStripMenuItem1
//
this.сохранитьToolStripMenuItem1.Name = "сохранитьToolStripMenuItem1";
this.сохранитьToolStripMenuItem1.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.S)));
this.сохранитьToolStripMenuItem1.Size = new System.Drawing.Size(202, 22);
this.сохранитьToolStripMenuItem1.Text = "Save";
this.сохранитьToolStripMenuItem1.Click += new System.EventHandler(this.сохранитьToolStripMenuItem1_Click_1);
//
// сохранитьToolStripMenuItem
//
this.сохранитьToolStripMenuItem.Name = "сохранитьToolStripMenuItem";
this.сохранитьToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift)
| System.Windows.Forms.Keys.S)));
this.сохранитьToolStripMenuItem.Size = new System.Drawing.Size(202, 22);
this.сохранитьToolStripMenuItem.Text = "Save As...";
this.сохранитьToolStripMenuItem.Click += new System.EventHandler(this.сохранитьToolStripMenuItem_Click);
//
// toolStripSeparator4
//
this.toolStripSeparator4.Name = "toolStripSeparator4";
this.toolStripSeparator4.Size = new System.Drawing.Size(199, 6);
//
// открытьРасположениеФайлаToolStripMenuItem
//
this.открытьРасположениеФайлаToolStripMenuItem.Name = "открытьРасположениеФайлаToolStripMenuItem";
this.открытьРасположениеФайлаToolStripMenuItem.Size = new System.Drawing.Size(202, 22);
this.открытьРасположениеФайлаToolStripMenuItem.Text = "Open File Location";
this.открытьРасположениеФайлаToolStripMenuItem.Click += new System.EventHandler(this.открытьРасположениеФайлаToolStripMenuItem_Click);
//
// УдалитьФайлToolStripMenuItem
//
this.УдалитьФайлToolStripMenuItem.Name = "УдалитьФайлToolStripMenuItem";
this.УдалитьФайлToolStripMenuItem.Size = new System.Drawing.Size(202, 22);
this.УдалитьФайлToolStripMenuItem.Text = "Delete File";
this.УдалитьФайлToolStripMenuItem.Click += new System.EventHandler(this.УдалитьФайлToolStripMenuItem_Click_1);
//
// toolStripSeparator2
//
this.toolStripSeparator2.Name = "toolStripSeparator2";
this.toolStripSeparator2.Size = new System.Drawing.Size(199, 6);
//
// выходToolStripMenuItem
//
this.выходToolStripMenuItem.Name = "выходToolStripMenuItem";
this.выходToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Q)));
this.выходToolStripMenuItem.Size = new System.Drawing.Size(202, 22);
this.выходToolStripMenuItem.Text = "Exit";
this.выходToolStripMenuItem.Click += new System.EventHandler(this.выходToolStripMenuItem_Click);
//
// правкаToolStripMenuItem
//
this.правкаToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.отменаToolStripMenuItem,
this.toolStripSeparator1,
this.вырезатьToolStripMenuItem,
this.копироватьToolStripMenuItem,
this.вставитьToolStripMenuItem,
this.удалитьToolStripMenuItem,
this.toolStripSeparator9,
this.findToolStripMenuItem2,
this.toolStripSeparator3,
this.выделитьВсеToolStripMenuItem,
this.переносПоСловамToolStripMenuItem,
this.toolStripSeparator5,
this.очиститьToolStripMenuItem});
this.правкаToolStripMenuItem.Name = "правкаToolStripMenuItem";
this.правкаToolStripMenuItem.Size = new System.Drawing.Size(40, 24);
this.правкаToolStripMenuItem.Text = "Edit";
this.правкаToolStripMenuItem.DropDownOpened += new System.EventHandler(this.правкаToolStripMenuItem_DropDownOpened);
this.правкаToolStripMenuItem.MouseDown += new System.Windows.Forms.MouseEventHandler(this.правкаToolStripMenuItem_MouseDown);
//
// отменаToolStripMenuItem
//
this.отменаToolStripMenuItem.Name = "отменаToolStripMenuItem";
this.отменаToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Z)));
this.отменаToolStripMenuItem.Size = new System.Drawing.Size(165, 22);
this.отменаToolStripMenuItem.Text = "Undo";
this.отменаToolStripMenuItem.Click += new System.EventHandler(this.отменаToolStripMenuItem_Click);
//
// toolStripSeparator1
//
this.toolStripSeparator1.Name = "toolStripSeparator1";
this.toolStripSeparator1.Size = new System.Drawing.Size(162, 6);
//
// вырезатьToolStripMenuItem
//
this.вырезатьToolStripMenuItem.Enabled = false;
this.вырезатьToolStripMenuItem.Name = "вырезатьToolStripMenuItem";
this.вырезатьToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.X)));
this.вырезатьToolStripMenuItem.Size = new System.Drawing.Size(165, 22);
this.вырезатьToolStripMenuItem.Text = "Cut";
this.вырезатьToolStripMenuItem.Click += new System.EventHandler(this.вырезатьToolStripMenuItem_Click);
//
// копироватьToolStripMenuItem
//
this.копироватьToolStripMenuItem.Enabled = false;
this.копироватьToolStripMenuItem.Name = опироватьToolStripMenuItem";
this.копироватьToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.C)));
this.копироватьToolStripMenuItem.Size = new System.Drawing.Size(165, 22);
this.копироватьToolStripMenuItem.Text = "Copy";
this.копироватьToolStripMenuItem.Click += new System.EventHandler(this.копироватьToolStripMenuItem_Click);
//
// вставитьToolStripMenuItem
//
this.вставитьToolStripMenuItem.Name = ставитьToolStripMenuItem";
this.вставитьToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.V)));
this.вставитьToolStripMenuItem.Size = new System.Drawing.Size(165, 22);
this.вставитьToolStripMenuItem.Text = "Paste";
this.вставитьToolStripMenuItem.Click += new System.EventHandler(this.вставитьToolStripMenuItem_Click);
//
// удалитьToolStripMenuItem
//
this.удалитьToolStripMenuItem.Enabled = false;
this.удалитьToolStripMenuItem.Name = "удалитьToolStripMenuItem";
this.удалитьToolStripMenuItem.ShortcutKeys = System.Windows.Forms.Keys.Delete;
this.удалитьToolStripMenuItem.Size = new System.Drawing.Size(165, 22);
this.удалитьToolStripMenuItem.Text = "Delete";
this.удалитьToolStripMenuItem.Click += new System.EventHandler(this.удалитьToolStripMenuItem_Click);
//
// toolStripSeparator9
//
this.toolStripSeparator9.Name = "toolStripSeparator9";
this.toolStripSeparator9.Size = new System.Drawing.Size(162, 6);
//
// findToolStripMenuItem2
//
this.findToolStripMenuItem2.Name = "findToolStripMenuItem2";
this.findToolStripMenuItem2.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.F)));
this.findToolStripMenuItem2.Size = new System.Drawing.Size(165, 22);
this.findToolStripMenuItem2.Text = "Find";
this.findToolStripMenuItem2.Click += new System.EventHandler(this.findToolStripMenuItem2_Click);
//
// toolStripSeparator3
//
this.toolStripSeparator3.Name = "toolStripSeparator3";
this.toolStripSeparator3.Size = new System.Drawing.Size(162, 6);
//
// выделитьВсеToolStripMenuItem
//
this.выделитьВсеToolStripMenuItem.Name = "выделитьВсеToolStripMenuItem";
this.выделитьВсеToolStripMenuItem.ShortcutKeyDisplayString = "";
this.выделитьВсеToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.A)));
this.выделитьВсеToolStripMenuItem.Size = new System.Drawing.Size(165, 22);
this.выделитьВсеToolStripMenuItem.Text = "Select All";
this.выделитьВсеToolStripMenuItem.Click += new System.EventHandler(this.выделитьВсеToolStripMenuItem_Click);
//
// переносПоСловамToolStripMenuItem
//
this.переносПоСловамToolStripMenuItem.Checked = true;
this.переносПоСловамToolStripMenuItem.CheckOnClick = true;
this.переносПоСловамToolStripMenuItem.CheckState = System.Windows.Forms.CheckState.Checked;
this.переносПоСловамToolStripMenuItem.Name = "переносПоСловамToolStripMenuItem";
this.переносПоСловамToolStripMenuItem.Size = new System.Drawing.Size(165, 22);
this.переносПоСловамToolStripMenuItem.Text = "Word Wrap";
this.переносПоСловамToolStripMenuItem.Click += new System.EventHandler(this.переносПоСловамToolStripMenuItem_Click);
//
// toolStripSeparator5
//
this.toolStripSeparator5.Name = "toolStripSeparator5";
this.toolStripSeparator5.Size = new System.Drawing.Size(162, 6);
//
// очиститьToolStripMenuItem
//
this.очиститьToolStripMenuItem.Name = "очиститьToolStripMenuItem";
this.очиститьToolStripMenuItem.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Delete)));
this.очиститьToolStripMenuItem.Size = new System.Drawing.Size(165, 22);
this.очиститьToolStripMenuItem.Text = "Clear";
this.очиститьToolStripMenuItem.Click += new System.EventHandler(this.очиститьToolStripMenuItem_Click);
//
// сервисToolStripMenuItem
//
this.сервисToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.changeKeyToolStripMenuItem,
this.settingsToolStripMenuItem});
this.сервисToolStripMenuItem.Name = "сервисToolStripMenuItem";
this.сервисToolStripMenuItem.Size = new System.Drawing.Size(48, 24);
this.сервисToolStripMenuItem.Text = "Tools";
this.сервисToolStripMenuItem.DropDownOpened += new System.EventHandler(this.сервисToolStripMenuItem_DropDownOpened);
//
// changeKeyToolStripMenuItem
//
this.changeKeyToolStripMenuItem.Name = "changeKeyToolStripMenuItem";
this.changeKeyToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
this.changeKeyToolStripMenuItem.Text = "Change Key";
this.changeKeyToolStripMenuItem.Click += new System.EventHandler(this.changeKeyToolStripMenuItem_Click);
//
// settingsToolStripMenuItem
//
this.settingsToolStripMenuItem.Name = "settingsToolStripMenuItem";
this.settingsToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
this.settingsToolStripMenuItem.Text = "Settings";
this.settingsToolStripMenuItem.Click += new System.EventHandler(this.settingsToolStripMenuItem_Click);
//
// помощьToolStripMenuItem
//
this.помощьToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.documentationToolStripMenuItem,
this.сheckForUpdatesToolStripMenuItem,
this.оПрограммеToolStripMenuItem});
this.помощьToolStripMenuItem.Name = "помощьToolStripMenuItem";
this.помощьToolStripMenuItem.Size = new System.Drawing.Size(43, 24);
this.помощьToolStripMenuItem.Text = "Help";
//
// documentationToolStripMenuItem
//
this.documentationToolStripMenuItem.Enabled = false;
this.documentationToolStripMenuItem.Name = "documentationToolStripMenuItem";
this.documentationToolStripMenuItem.Size = new System.Drawing.Size(187, 22);
this.documentationToolStripMenuItem.Text = "Documentation";
this.documentationToolStripMenuItem.Click += new System.EventHandler(this.documentationToolStripMenuItem_Click);
//
// сheckForUpdatesToolStripMenuItem
//
this.сheckForUpdatesToolStripMenuItem.Enabled = false;
this.сheckForUpdatesToolStripMenuItem.Name = "сheckForUpdatesToolStripMenuItem";
this.сheckForUpdatesToolStripMenuItem.Size = new System.Drawing.Size(187, 22);
this.сheckForUpdatesToolStripMenuItem.Text = "Сheck for Updates...";
//
// оПрограммеToolStripMenuItem
//
this.оПрограммеToolStripMenuItem.Name = "оПрограммеToolStripMenuItem";
this.оПрограммеToolStripMenuItem.Size = new System.Drawing.Size(187, 22);
this.оПрограммеToolStripMenuItem.Text = "About";
this.оПрограммеToolStripMenuItem.Click += new System.EventHandler(this.оПрограммеToolStripMenuItem_Click);
//
// contextMenuStrip1
//
this.contextMenuStrip1.Font = new System.Drawing.Font("Tahoma", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.отменитьToolStripMenuItem,
this.toolStripSeparator6,
this.вырезатьToolStripMenuItem1,
this.копироватьToolStripMenuItem1,
this.вставитьToolStripMenuItem1,
this.удалитьToolStripMenuItem1,
this.toolStripSeparator8,
this.выделитьВсеToolStripMenuItem1,
this.порядокЧтенияСправаНалевоToolStripMenuItem,
this.toolStripSeparator7,
this.очиститьToolStripMenuItem1});
this.contextMenuStrip1.Name = "contextMenuStrip1";
this.contextMenuStrip1.Size = new System.Drawing.Size(259, 198);
this.contextMenuStrip1.Opening += new System.ComponentModel.CancelEventHandler(this.contextMenuStrip1_Opening);
//
// отменитьToolStripMenuItem
//
this.отменитьToolStripMenuItem.Name = "отменитьToolStripMenuItem";
this.отменитьToolStripMenuItem.Size = new System.Drawing.Size(258, 22);
this.отменитьToolStripMenuItem.Text = "Отменить";
this.отменитьToolStripMenuItem.Click += new System.EventHandler(this.отменитьToolStripMenuItem_Click);
//
// toolStripSeparator6
//
this.toolStripSeparator6.Name = "toolStripSeparator6";
this.toolStripSeparator6.Size = new System.Drawing.Size(255, 6);
//
// вырезатьToolStripMenuItem1
//
this.вырезатьToolStripMenuItem1.Name = "вырезатьToolStripMenuItem1";
this.вырезатьToolStripMenuItem1.Size = new System.Drawing.Size(258, 22);
this.вырезатьToolStripMenuItem1.Text = "Вырезать";
this.вырезатьToolStripMenuItem1.Click += new System.EventHandler(this.вырезатьToolStripMenuItem1_Click);
//
// копироватьToolStripMenuItem1
//
this.копироватьToolStripMenuItem1.Name = опироватьToolStripMenuItem1";
this.копироватьToolStripMenuItem1.Size = new System.Drawing.Size(258, 22);
this.копироватьToolStripMenuItem1.Text = "Копировать";
this.копироватьToolStripMenuItem1.Click += new System.EventHandler(this.копироватьToolStripMenuItem1_Click);
//
// вставитьToolStripMenuItem1
//
this.вставитьToolStripMenuItem1.Name = ставитьToolStripMenuItem1";
this.вставитьToolStripMenuItem1.Size = new System.Drawing.Size(258, 22);
this.вставитьToolStripMenuItem1.Text = "Вставить";
this.вставитьToolStripMenuItem1.Click += new System.EventHandler(this.вставитьToolStripMenuItem1_Click);
//
// удалитьToolStripMenuItem1
//
this.удалитьToolStripMenuItem1.Name = "удалитьToolStripMenuItem1";
this.удалитьToolStripMenuItem1.Size = new System.Drawing.Size(258, 22);
this.удалитьToolStripMenuItem1.Text = "Удалить";
this.удалитьToolStripMenuItem1.Click += new System.EventHandler(this.удалитьToolStripMenuItem1_Click);
//
// toolStripSeparator8
//
this.toolStripSeparator8.Name = "toolStripSeparator8";
this.toolStripSeparator8.Size = new System.Drawing.Size(255, 6);
//
// выделитьВсеToolStripMenuItem1
//
this.выделитьВсеToolStripMenuItem1.Name = "выделитьВсеToolStripMenuItem1";
this.выделитьВсеToolStripMenuItem1.Size = new System.Drawing.Size(258, 22);
this.выделитьВсеToolStripMenuItem1.Text = "Выделить все";
this.выделитьВсеToolStripMenuItem1.Click += new System.EventHandler(this.выделитьВсеToolStripMenuItem1_Click);
//
// порядокЧтенияСправаНалевоToolStripMenuItem
//
this.порядокЧтенияСправаНалевоToolStripMenuItem.CheckOnClick = true;
this.порядокЧтенияСправаНалевоToolStripMenuItem.Name = "порядокЧтенияСправаНалевоToolStripMenuItem";
this.порядокЧтенияСправаНалевоToolStripMenuItem.Size = new System.Drawing.Size(258, 22);
this.порядокЧтенияСправаНалевоToolStripMenuItem.Text = "Порядок чтения: справа налево";
this.порядокЧтенияСправаНалевоToolStripMenuItem.Click += new System.EventHandler(this.порядокЧтенияСправаНалевоToolStripMenuItem_Click);
//
// toolStripSeparator7
//
this.toolStripSeparator7.Name = "toolStripSeparator7";
this.toolStripSeparator7.Size = new System.Drawing.Size(255, 6);
//
// очиститьToolStripMenuItem1
//
this.очиститьToolStripMenuItem1.Name = "очиститьToolStripMenuItem1";
this.очиститьToolStripMenuItem1.Size = new System.Drawing.Size(258, 22);
this.очиститьToolStripMenuItem1.Text = "Очистить";
this.очиститьToolStripMenuItem1.Click += new System.EventHandler(this.очиститьToolStripMenuItem1_Click);
//
// OpenFile
//
this.OpenFile.Filter = "Encryption files (*.enp)|*.enp";
//
// SaveFile
//
this.SaveFile.Filter = "Encryption files (*.enp)|*.enp";
//
// button1
//
this.button1.Location = new System.Drawing.Point(701, 151);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(75, 23);
this.button1.TabIndex = 3;
this.button1.Text = "ENC";
this.button1.UseVisualStyleBackColor = true;
this.button1.Visible = false;
//
// button2
//
this.button2.Location = new System.Drawing.Point(701, 180);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(75, 23);
this.button2.TabIndex = 4;
this.button2.Text = "DEC";
this.button2.UseVisualStyleBackColor = true;
this.button2.Visible = false;
//
// statusStrip1
//
this.statusStrip1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(30)))), ((int)(((byte)(35)))));
this.statusStrip1.Font = new System.Drawing.Font("Consolas", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.statusStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.toolStripStatusLabel1,
this.lineStripStatusLabel,
this.columnStripStatusLabel});
this.statusStrip1.Location = new System.Drawing.Point(0, 439);
this.statusStrip1.Name = "statusStrip1";
this.statusStrip1.ShowItemToolTips = true;
this.statusStrip1.Size = new System.Drawing.Size(689, 22);
this.statusStrip1.SizingGrip = false;
this.statusStrip1.TabIndex = 5;
this.statusStrip1.Text = "statusStrip1";
//
// toolStripStatusLabel1
//
this.toolStripStatusLabel1.ForeColor = System.Drawing.SystemColors.ButtonFace;
this.toolStripStatusLabel1.Name = "toolStripStatusLabel1";
this.toolStripStatusLabel1.Size = new System.Drawing.Size(42, 17);
this.toolStripStatusLabel1.Text = "Ready";
//
// lineStripStatusLabel
//
this.lineStripStatusLabel.ForeColor = System.Drawing.SystemColors.ButtonFace;
this.lineStripStatusLabel.Margin = new System.Windows.Forms.Padding(50, 3, 20, 2);
this.lineStripStatusLabel.Name = "lineStripStatusLabel";
this.lineStripStatusLabel.Overflow = System.Windows.Forms.ToolStripItemOverflow.Always;
this.lineStripStatusLabel.Size = new System.Drawing.Size(42, 17);
this.lineStripStatusLabel.Text = "Line:";
//
// columnStripStatusLabel
//
this.columnStripStatusLabel.ForeColor = System.Drawing.SystemColors.ButtonFace;
this.columnStripStatusLabel.Name = "columnStripStatusLabel";
this.columnStripStatusLabel.Overflow = System.Windows.Forms.ToolStripItemOverflow.Always;
this.columnStripStatusLabel.Size = new System.Drawing.Size(56, 17);
this.columnStripStatusLabel.Text = "Column:";
//
// pictureBox12
//
this.pictureBox12.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.pictureBox12.Cursor = System.Windows.Forms.Cursors.Hand;
this.pictureBox12.Image = global::Crypto_Notepad.Properties.Resources.close_g;
this.pictureBox12.Location = new System.Drawing.Point(670, 5);
this.pictureBox12.Name = "pictureBox12";
this.pictureBox12.Size = new System.Drawing.Size(14, 14);
this.pictureBox12.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pictureBox12.TabIndex = 14;
this.pictureBox12.TabStop = false;
this.toolTip1.SetToolTip(this.pictureBox12, "Hide Toolbar");
this.pictureBox12.Click += new System.EventHandler(this.pictureBox12_Click);
this.pictureBox12.MouseEnter += new System.EventHandler(this.pictureBox12_MouseEnter);
this.pictureBox12.MouseLeave += new System.EventHandler(this.pictureBox12_MouseLeave);
//
// pictureBox5
//
this.pictureBox5.Cursor = System.Windows.Forms.Cursors.Hand;
this.pictureBox5.Image = global::Crypto_Notepad.Properties.Resources.setting_tools;
this.pictureBox5.Location = new System.Drawing.Point(235, 3);
this.pictureBox5.Name = "pictureBox5";
this.pictureBox5.Size = new System.Drawing.Size(16, 16);
this.pictureBox5.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
this.pictureBox5.TabIndex = 15;
this.pictureBox5.TabStop = false;
this.toolTip1.SetToolTip(this.pictureBox5, "Settings");
this.pictureBox5.Click += new System.EventHandler(this.pictureBox5_Click);
//
// pictureBox2
//
this.pictureBox2.Cursor = System.Windows.Forms.Cursors.Hand;
this.pictureBox2.Image = global::Crypto_Notepad.Properties.Resources.page_white_add;
this.pictureBox2.Location = new System.Drawing.Point(10, 3);
this.pictureBox2.Name = "pictureBox2";
this.pictureBox2.Size = new System.Drawing.Size(16, 16);
this.pictureBox2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
this.pictureBox2.TabIndex = 15;
this.pictureBox2.TabStop = false;
this.toolTip1.SetToolTip(this.pictureBox2, "New");
this.pictureBox2.Click += new System.EventHandler(this.pictureBox2_Click);
//
// pictureBox11
//
this.pictureBox11.Cursor = System.Windows.Forms.Cursors.Hand;
this.pictureBox11.Image = global::Crypto_Notepad.Properties.Resources.page_white_key;
this.pictureBox11.Location = new System.Drawing.Point(210, 3);
this.pictureBox11.Name = "pictureBox11";
this.pictureBox11.Size = new System.Drawing.Size(16, 16);
this.pictureBox11.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
this.pictureBox11.TabIndex = 15;
this.pictureBox11.TabStop = false;
this.toolTip1.SetToolTip(this.pictureBox11, "Change Key");
this.pictureBox11.Click += new System.EventHandler(this.pictureBox11_Click);
//
// pictureBox10
//
this.pictureBox10.Cursor = System.Windows.Forms.Cursors.Hand;
this.pictureBox10.Image = global::Crypto_Notepad.Properties.Resources.paste_plain;
this.pictureBox10.Location = new System.Drawing.Point(185, 3);
this.pictureBox10.Name = "pictureBox10";
this.pictureBox10.Size = new System.Drawing.Size(16, 16);
this.pictureBox10.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
this.pictureBox10.TabIndex = 15;
this.pictureBox10.TabStop = false;
this.toolTip1.SetToolTip(this.pictureBox10, "Paste");
this.pictureBox10.Click += new System.EventHandler(this.pictureBox10_Click);
//
// pictureBox9
//
this.pictureBox9.Cursor = System.Windows.Forms.Cursors.Hand;
this.pictureBox9.Image = global::Crypto_Notepad.Properties.Resources.page_white_copy;
this.pictureBox9.Location = new System.Drawing.Point(160, 3);
this.pictureBox9.Name = "pictureBox9";
this.pictureBox9.Size = new System.Drawing.Size(16, 16);
this.pictureBox9.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
this.pictureBox9.TabIndex = 15;
this.pictureBox9.TabStop = false;
this.toolTip1.SetToolTip(this.pictureBox9, "Copy");
this.pictureBox9.Click += new System.EventHandler(this.pictureBox9_Click);
//
// pictureBox8
//
this.pictureBox8.Cursor = System.Windows.Forms.Cursors.Hand;
this.pictureBox8.Image = global::Crypto_Notepad.Properties.Resources.cut_red;
this.pictureBox8.Location = new System.Drawing.Point(135, 3);
this.pictureBox8.Name = "pictureBox8";
this.pictureBox8.Size = new System.Drawing.Size(16, 16);
this.pictureBox8.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
this.pictureBox8.TabIndex = 15;
this.pictureBox8.TabStop = false;
this.toolTip1.SetToolTip(this.pictureBox8, "Cut");
this.pictureBox8.Click += new System.EventHandler(this.pictureBox8_Click);
//
// pictureBox7
//
this.pictureBox7.Cursor = System.Windows.Forms.Cursors.Hand;
this.pictureBox7.Image = global::Crypto_Notepad.Properties.Resources.page_white_delete;
this.pictureBox7.Location = new System.Drawing.Point(110, 3);
this.pictureBox7.Name = "pictureBox7";
this.pictureBox7.Size = new System.Drawing.Size(16, 16);
this.pictureBox7.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
this.pictureBox7.TabIndex = 15;
this.pictureBox7.TabStop = false;
this.toolTip1.SetToolTip(this.pictureBox7, "Delete File");
this.pictureBox7.Click += new System.EventHandler(this.pictureBox7_Click);
//
// pictureBox6
//
this.pictureBox6.Cursor = System.Windows.Forms.Cursors.Hand;
this.pictureBox6.Image = global::Crypto_Notepad.Properties.Resources.folder_stand;
this.pictureBox6.Location = new System.Drawing.Point(85, 3);
this.pictureBox6.Name = "pictureBox6";
this.pictureBox6.Size = new System.Drawing.Size(16, 16);
this.pictureBox6.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
this.pictureBox6.TabIndex = 15;
this.pictureBox6.TabStop = false;
this.toolTip1.SetToolTip(this.pictureBox6, "Open File Location");
this.pictureBox6.Click += new System.EventHandler(this.pictureBox6_Click);
//
// pictureBox4
//
this.pictureBox4.Cursor = System.Windows.Forms.Cursors.Hand;
this.pictureBox4.Image = global::Crypto_Notepad.Properties.Resources.diskette;
this.pictureBox4.Location = new System.Drawing.Point(60, 3);
this.pictureBox4.Name = "pictureBox4";
this.pictureBox4.Size = new System.Drawing.Size(16, 16);
this.pictureBox4.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
this.pictureBox4.TabIndex = 15;
this.pictureBox4.TabStop = false;
this.toolTip1.SetToolTip(this.pictureBox4, "Save");
this.pictureBox4.Click += new System.EventHandler(this.pictureBox4_Click);
//
// pictureBox3
//
this.pictureBox3.Cursor = System.Windows.Forms.Cursors.Hand;
this.pictureBox3.Image = global::Crypto_Notepad.Properties.Resources.folder_vertical_document;
this.pictureBox3.Location = new System.Drawing.Point(35, 3);
this.pictureBox3.Name = "pictureBox3";
this.pictureBox3.Size = new System.Drawing.Size(16, 16);
this.pictureBox3.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
this.pictureBox3.TabIndex = 15;
this.pictureBox3.TabStop = false;
this.toolTip1.SetToolTip(this.pictureBox3, "Open");
this.pictureBox3.Click += new System.EventHandler(this.pictureBox3_Click);
//
// pictureBox1
//
this.pictureBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.pictureBox1.Cursor = System.Windows.Forms.Cursors.Hand;
this.pictureBox1.Image = global::Crypto_Notepad.Properties.Resources.close_g;
this.pictureBox1.Location = new System.Drawing.Point(670, 7);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(14, 14);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pictureBox1.TabIndex = 14;
this.pictureBox1.TabStop = false;
this.toolTip1.SetToolTip(this.pictureBox1, "Close Search");
this.pictureBox1.Click += new System.EventHandler(this.pictureBox1_Click);
this.pictureBox1.MouseLeave += new System.EventHandler(this.pictureBox1_MouseLeave);
this.pictureBox1.MouseHover += new System.EventHandler(this.pictureBox1_MouseHover);
//
// searchTextBox
//
this.searchTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.searchTextBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.searchTextBox.Location = new System.Drawing.Point(490, 3);
this.searchTextBox.Name = "searchTextBox";
this.searchTextBox.Size = new System.Drawing.Size(178, 21);
this.searchTextBox.TabIndex = 9;
this.searchTextBox.TabStop = false;
this.searchTextBox.TextChanged += new System.EventHandler(this.textBox1_TextChanged);
this.searchTextBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.searchTextBox_KeyDown);
//
// chkMatchCase
//
this.chkMatchCase.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.chkMatchCase.AutoSize = true;
this.chkMatchCase.Location = new System.Drawing.Point(410, 5);
this.chkMatchCase.Name = "chkMatchCase";
this.chkMatchCase.Size = new System.Drawing.Size(80, 17);
this.chkMatchCase.TabIndex = 11;
this.chkMatchCase.Text = "Match case";
this.chkMatchCase.UseVisualStyleBackColor = true;
this.chkMatchCase.CheckedChanged += new System.EventHandler(this.chkMatchCase_CheckedChanged);
//
// chkMatchWholeWord
//
this.chkMatchWholeWord.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
this.chkMatchWholeWord.AutoSize = true;
this.chkMatchWholeWord.Location = new System.Drawing.Point(289, 5);
this.chkMatchWholeWord.Name = "chkMatchWholeWord";
this.chkMatchWholeWord.Size = new System.Drawing.Size(113, 17);
this.chkMatchWholeWord.TabIndex = 12;
this.chkMatchWholeWord.Text = "Match whole word";
this.chkMatchWholeWord.UseVisualStyleBackColor = true;
this.chkMatchWholeWord.CheckedChanged += new System.EventHandler(this.chkMatchWholeWord_CheckedChanged);
//
// panel1
//
this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.panel1.Controls.Add(this.pictureBox1);
this.panel1.Controls.Add(this.searchTextBox);
this.panel1.Controls.Add(this.chkMatchCase);
this.panel1.Controls.Add(this.chkMatchWholeWord);
this.panel1.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.panel1.Location = new System.Drawing.Point(0, 413);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(689, 27);
this.panel1.TabIndex = 13;
this.panel1.Visible = false;
//
// panel2
//
this.panel2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.panel2.Controls.Add(this.pictureBox12);
this.panel2.Controls.Add(this.pictureBox5);
this.panel2.Controls.Add(this.pictureBox2);
this.panel2.Controls.Add(this.pictureBox11);
this.panel2.Controls.Add(this.pictureBox10);
this.panel2.Controls.Add(this.pictureBox9);
this.panel2.Controls.Add(this.pictureBox8);
this.panel2.Controls.Add(this.pictureBox7);
this.panel2.Controls.Add(this.pictureBox6);
this.panel2.Controls.Add(this.pictureBox4);
this.panel2.Controls.Add(this.pictureBox3);
this.panel2.Location = new System.Drawing.Point(-1, 25);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(691, 23);
this.panel2.TabIndex = 14;
//
// customRTB
//
this.customRTB.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.customRTB.BackColor = System.Drawing.SystemColors.Window;
this.customRTB.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.customRTB.ContextMenuStrip = this.contextMenuStrip1;
this.customRTB.DetectUrls = false;
this.customRTB.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.customRTB.ForeColor = System.Drawing.SystemColors.WindowText;
this.customRTB.Location = new System.Drawing.Point(0, 48);
this.customRTB.Name = "customRTB";
this.customRTB.Size = new System.Drawing.Size(689, 392);
this.customRTB.TabIndex = 10;
this.customRTB.Text = "";
this.customRTB.SelectionChanged += new System.EventHandler(this.customRTB_SelectionChanged_1);
this.customRTB.TextChanged += new System.EventHandler(this.customRTB_TextChanged);
//
// MainWindow
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(689, 461);
this.Controls.Add(this.panel2);
this.Controls.Add(this.panel1);
this.Controls.Add(this.customRTB);
this.Controls.Add(this.statusStrip1);
this.Controls.Add(this.button2);
this.Controls.Add(this.button1);
this.Controls.Add(this.MainMenu);
this.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MainMenuStrip = this.MainMenu;
this.MinimumSize = new System.Drawing.Size(500, 300);
this.Name = "MainWindow";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Crypto Notepad";
this.Activated += new System.EventHandler(this.MainWindow_Activated);
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.MainWindow_FormClosing);
this.Load += new System.EventHandler(this.MainWindow_Load);
this.MainMenu.ResumeLayout(false);
this.MainMenu.PerformLayout();
this.contextMenuStrip1.ResumeLayout(false);
this.statusStrip1.ResumeLayout(false);
this.statusStrip1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox12)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox5)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox11)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox10)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox9)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox8)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox7)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox6)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox4)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.panel1.ResumeLayout(false);
this.panel1.PerformLayout();
this.panel2.ResumeLayout(false);
this.panel2.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.MenuStrip MainMenu;
private System.Windows.Forms.ToolStripMenuItem файлToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem правкаToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem помощьToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem сохранитьToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem выходToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem оПрограммеToolStripMenuItem;
private System.Windows.Forms.OpenFileDialog OpenFile;
private System.Windows.Forms.SaveFileDialog SaveFile;
private System.Windows.Forms.ToolStripMenuItem создатьToolStripMenuItem;
private System.Windows.Forms.Button button1;
public System.Windows.Forms.Button button2;
private System.Windows.Forms.StatusStrip statusStrip1;
private System.Windows.Forms.ToolStripStatusLabel toolStripStatusLabel1;
private System.Windows.Forms.ToolTip toolTip1;
private System.Windows.Forms.ToolStripMenuItem сервисToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem очиститьToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem открытьToolStripMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator2;
private System.Windows.Forms.ToolStripMenuItem сохранитьToolStripMenuItem1;
private System.Windows.Forms.ToolStripMenuItem выделитьВсеToolStripMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
private System.Windows.Forms.ToolStripMenuItem вырезатьToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem копироватьToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem вставитьToolStripMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator3;
private System.Windows.Forms.ToolStripMenuItem УдалитьФайлToolStripMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator4;
private System.Windows.Forms.ToolStripMenuItem открытьРасположениеФайлаToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem переносПоСловамToolStripMenuItem;
private System.Windows.Forms.ContextMenuStrip contextMenuStrip1;
private System.Windows.Forms.ToolStripMenuItem отменитьToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem отменаToolStripMenuItem;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator5;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator6;
private System.Windows.Forms.ToolStripMenuItem вырезатьToolStripMenuItem1;
private System.Windows.Forms.ToolStripMenuItem копироватьToolStripMenuItem1;
private System.Windows.Forms.ToolStripMenuItem вставитьToolStripMenuItem1;
private System.Windows.Forms.ToolStripMenuItem удалитьToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem удалитьToolStripMenuItem1;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator8;
private System.Windows.Forms.ToolStripMenuItem выделитьВсеToolStripMenuItem1;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator7;
private System.Windows.Forms.ToolStripMenuItem порядокЧтенияСправаНалевоToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem очиститьToolStripMenuItem1;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator11;
private System.Windows.Forms.ToolStripMenuItem changeKeyToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem сheckForUpdatesToolStripMenuItem;
private System.Windows.Forms.ToolStripStatusLabel lineStripStatusLabel;
private System.Windows.Forms.ToolStripStatusLabel columnStripStatusLabel;
private System.Windows.Forms.ToolStripMenuItem documentationToolStripMenuItem;
private System.Windows.Forms.TextBox searchTextBox;
private System.Windows.Forms.CheckBox chkMatchCase;
private System.Windows.Forms.CheckBox chkMatchWholeWord;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.ToolStripMenuItem settingsToolStripMenuItem;
public CustomRichTextBox customRTB;
private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.ToolStripSeparator toolStripSeparator9;
private System.Windows.Forms.ToolStripMenuItem findToolStripMenuItem2;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.PictureBox pictureBox2;
private System.Windows.Forms.PictureBox pictureBox3;
private System.Windows.Forms.PictureBox pictureBox4;
private System.Windows.Forms.PictureBox pictureBox6;
private System.Windows.Forms.PictureBox pictureBox7;
private System.Windows.Forms.PictureBox pictureBox8;
private System.Windows.Forms.PictureBox pictureBox9;
private System.Windows.Forms.PictureBox pictureBox10;
private System.Windows.Forms.PictureBox pictureBox11;
private System.Windows.Forms.PictureBox pictureBox5;
private System.Windows.Forms.PictureBox pictureBox12;
}
}

View file

@ -1,896 +0,0 @@
using System;
using System.ComponentModel;
using System.Drawing;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Net.NetworkInformation;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Crypto_Notepad
{
public partial class MainWindow : Form
{
[DllImport("user32.dll")]
static extern int SendMessage(IntPtr hWnd, uint wMsg, UIntPtr wParam, IntPtr lParam);
public static string filename = "Unnamed.enp";
public static string key = "";
public static bool keyChanged = false;
public static bool settingsChanged = false;
public static bool textSave = false;
public static string[] args = Environment.GetCommandLineArgs();
Properties.Settings ps = Properties.Settings.Default;
public MainWindow()
{
InitializeComponent();
}
#region SaltMac
void SaltMAC()
{
var networkInterfaces = NetworkInterface.GetAllNetworkInterfaces();
foreach (var networkInterface in networkInterfaces)
{
if (networkInterface.NetworkInterfaceType == NetworkInterfaceType.Ethernet)
{
var address = networkInterface.GetPhysicalAddress().ToString();
if (ps.FirstLaunch == false)
{
DialogResult res = new DialogResult();
//using (new CenterWinDialog(this))
//{
res = MessageBox.Show("Get The Salt from mac address? (You can edit it by himself in Settings)", "The Salt",
MessageBoxButtons.YesNo, MessageBoxIcon.Question);
//}
if (res == DialogResult.Yes)
{
ps.TheSalt = address;
ps.FirstLaunch = true;
ps.Save();
}
}
}
}
}
#endregion
private void открытьToolStripMenuItem_Click(object sender, EventArgs e)
{
int Cikil = 0;
Form2 f2 = new Form2();
try
{
if (OpenFile.ShowDialog() != DialogResult.OK) return;
{
string NameWithotPath = Path.GetFileName(OpenFile.FileName);
string opnfile = File.ReadAllText(OpenFile.FileName);
f2.ShowDialog();
if (Form2.OkPressed == false)
{
return;
}
Form2.OkPressed = false;
string de = AES.Decrypt(opnfile, key, ps.TheSalt, ps.HashAlgorithm, ps.PasswordIterations, "16CHARSLONG12345", ps.KeySize);
customRTB.Text = de;
toolStripStatusLabel1.Text = NameWithotPath;
toolStripStatusLabel1.ToolTipText = (OpenFile.FileName);
}
}
catch
{
string NameWithotPath = Path.GetFileName(OpenFile.FileName);
string opnfile = File.ReadAllText(OpenFile.FileName, Encoding.Default);
toolStripStatusLabel1.Text = NameWithotPath;
toolStripStatusLabel1.ToolTipText = (OpenFile.FileName);
do
{
Cikil = 0;
using (new CenterWinDialog(this))
{
DialogResult dialogResult = MessageBox.Show("Wrong key!", "", MessageBoxButtons.RetryCancel, MessageBoxIcon.Error);
if (dialogResult == DialogResult.Retry)
{
f2.ShowDialog();
if (Form2.OkPressed == false)
{
return;
}
Form2.OkPressed = false;
try
{
string de = AES.Decrypt(opnfile, key, ps.TheSalt, ps.HashAlgorithm, ps.PasswordIterations, "16CHARSLONG12345", ps.KeySize);
customRTB.Text = de;
toolStripStatusLabel1.Text = NameWithotPath;
toolStripStatusLabel1.ToolTipText = (OpenFile.FileName);
}
catch
{
Cikil = 1;
}
}
if (dialogResult == DialogResult.Cancel)
{
toolStripStatusLabel1.Text = "Ready";
}
}
} while (Cikil == 1);
filename = OpenFile.FileName;
textSave = false;
string cc = customRTB.Text.Length.ToString(CultureInfo.InvariantCulture);
customRTB.Select(Convert.ToInt32(cc), 0);
return;
}
filename = OpenFile.FileName;
textSave = false;
string cc2 = customRTB.Text.Length.ToString(CultureInfo.InvariantCulture);
customRTB.Select(Convert.ToInt32(cc2), 0);
}
private void openAsotiations()
{
Form2 Form2 = new Form2();
Form2.StartPosition = FormStartPosition.CenterScreen;
try
{
string NameWithotPath = Path.GetFileName(args[1]);
string opnfile = File.ReadAllText(args[1]);
Form2.ShowDialog();
if (Form2.OkPressed == false)
{
return;
}
Form2.OkPressed = false;
string de = AES.Decrypt(opnfile, key, ps.TheSalt, ps.HashAlgorithm, ps.PasswordIterations, "16CHARSLONG12345", ps.KeySize);
customRTB.Text = de;
toolStripStatusLabel1.Text = NameWithotPath;
toolStripStatusLabel1.ToolTipText = (args[1]);
}
catch
{
string NameWithotPath = Path.GetFileName(args[1]);
string opnfile = File.ReadAllText(args[1]);
toolStripStatusLabel1.Text = NameWithotPath;
toolStripStatusLabel1.ToolTipText = (args[1]);
ComeHere:
DialogResult dialogResult = MessageBox.Show("Wrong key!", "", MessageBoxButtons.RetryCancel, MessageBoxIcon.Error);
if (dialogResult == DialogResult.Retry)
{
Form2.OkPressed = false;
Form2.ShowDialog();
if (Form2.OkPressed == false)
{
return;
}
Form2.OkPressed = false;
try
{
string de = AES.Decrypt(opnfile, key, ps.TheSalt, ps.HashAlgorithm, ps.PasswordIterations, "16CHARSLONG12345", ps.KeySize);
customRTB.Text = de;
toolStripStatusLabel1.Text = NameWithotPath;
toolStripStatusLabel1.ToolTipText = (args[1]);
}
catch
{
goto ComeHere;
}
}
if (dialogResult == DialogResult.Cancel)
{
Application.Exit();
}
}
filename = args[1];
textSave = false;
string cc = customRTB.Text.Length.ToString(CultureInfo.InvariantCulture);
customRTB.Select(Convert.ToInt32(cc), 0);
}
private void новыйToolStripMenuItem_Click_1(object sender, EventArgs e)
{
Form2 f2 = new Form2();
f2.ShowDialog();
if (Form2.OkPressed == false)
{
return;
}
if (Form2.OkPressed == true)
{
Form2.OkPressed = false;
if (SaveFile.ShowDialog() != DialogResult.OK)
{
return;
}
customRTB.Clear();
StreamWriter sw = new StreamWriter(SaveFile.FileName);
string NameWithotPath = Path.GetFileName(SaveFile.FileName);
toolStripStatusLabel1.Text = NameWithotPath;
toolStripStatusLabel1.ToolTipText = (SaveFile.FileName);
filename = SaveFile.FileName;
sw.Close();
}
}
private async void сохранитьToolStripMenuItem_Click(object sender, EventArgs e)
{
string NameWithotPath = Path.GetFileName(OpenFile.FileName);
if (string.IsNullOrEmpty(key))
{
Form2 Form2 = new Form2();
Form2.ShowDialog();
if (Form2.OkPressed == false)
{
return;
}
Form2.OkPressed = false;
}
if (SaveFile.ShowDialog() != DialogResult.OK)
{
return;
}
filename = SaveFile.FileName;
string noenc = customRTB.Text;
string en = AES.Encrypt(customRTB.Text, key, ps.TheSalt, ps.HashAlgorithm, ps.PasswordIterations, "16CHARSLONG12345", ps.KeySize);
customRTB.Text = en;
StreamWriter sw = new StreamWriter(filename);
int i = customRTB.Lines.Count();
int j = 0;
i = i - 1;
while (j <= i)
{
sw.WriteLine(customRTB.Lines.GetValue(j).ToString());
j = j + 1;
}
sw.Close();
customRTB.Text = noenc;
toolStripStatusLabel1.Text = "Saved in: " + filename;
string cc = customRTB.Text.Length.ToString(CultureInfo.InvariantCulture);
customRTB.Select(Convert.ToInt32(cc), 0);
textSave = false;
await Task.Delay(4000);
toolStripStatusLabel1.Text = "Ready";
}
private void MainWindow_FormClosing(object sender, FormClosingEventArgs e)
{
ps.TopPosition = this.Top;
ps.LeftPosition = this.Left;
ps.FormWidth = this.Width;
ps.FormHeight = this.Height;
ps.MenuWrap = переносПоСловамToolStripMenuItem.Checked;
ps.RichWrap = customRTB.WordWrap;
ps.Save();
if (textSave == true)
{
string f = "Unnamed.enp";
if (customRTB.Text != "")
{
DialogResult res = new DialogResult();
using (new CenterWinDialog(this))
{
res = MessageBox.Show("Save changes in:\n" + filename + " ?",
"",
MessageBoxButtons.YesNoCancel,
MessageBoxIcon.Question);
if (res == DialogResult.Yes)
{
if (filename == f)
{
SaveFile.FileName = f;
сохранитьToolStripMenuItem_Click(this, new EventArgs());
}
if (filename != f)
{
сохранитьToolStripMenuItem1_Click_1(this, new EventArgs());
}
Environment.Exit(0);
}
try
{
if (res == DialogResult.No)
{
Environment.Exit(0);
}
if (res == DialogResult.Cancel)
{
e.Cancel = true;
}
}
catch (Exception)
{
}
}
}
}
}
void LineAndColumn()
{
int line = customRTB.GetLineFromCharIndex(customRTB.SelectionStart);
int column = customRTB.SelectionStart - customRTB.GetFirstCharIndexFromLine(line);
line += 1;
column += 1;
lineStripStatusLabel.Text = "Line: " + line.ToString();
columnStripStatusLabel.Text = "Column: " + column.ToString();
}
private void MainWindow_Load(object sender, EventArgs e)
{
this.Top = ps.TopPosition;
this.Left = ps.LeftPosition;
this.Width = ps.FormWidth;
this.Height = ps.FormHeight;
customRTB.Font = new Font(ps.RichTextFont, ps.RichTextSize);
customRTB.ForeColor = ps.RichForeColor;
customRTB.BackColor = ps.RichBackColor;
переносПоСловамToolStripMenuItem.Checked = ps.MenuWrap;
customRTB.WordWrap = ps.RichWrap;
customRTB.SelectionIndent += 6;
customRTB.SelectionRightIndent += 7;
panel2.Visible = ps.ShowToolbar;
if (ps.ShowToolbar == false)
{
panel2.Visible = false;
int h = customRTB.Height;
h += 23;
customRTB.Height = h;
customRTB.Location = new Point(0, 25);
}
if (ps.ShowToolbar == true)
{
panel2.Visible = true;
//int h = customRTB.Height;
//h -= 23;
//customRTB.Height = h;
//customRTB.Location = new Point(0, 48);
}
LineAndColumn();
if (args.Length > 1)
{
openAsotiations();
}
SaltMAC();
}
private void очиститьToolStripMenuItem_Click(object sender, EventArgs e)
{
customRTB.Clear();
}
private async void сохранитьToolStripMenuItem1_Click_1(object sender, EventArgs e)
{
string f = "Unnamed.enp";
string NameWithotPath = Path.GetFileName(OpenFile.FileName);
if (filename == f)
{
SaveFile.FileName = f;
сохранитьToolStripMenuItem_Click(this, new EventArgs());
if (Form2.OkPressed == false)
{
return;
}
Form2.OkPressed = false;
}
string noenc = customRTB.Text;
string en = AES.Encrypt(customRTB.Text, key, ps.TheSalt, ps.HashAlgorithm, ps.PasswordIterations, "16CHARSLONG12345", ps.KeySize);
customRTB.Text = en;
StreamWriter sw = new StreamWriter(filename);
int i = customRTB.Lines.Count();
int j = 0;
i = i - 1;
while (j <= i)
{
sw.WriteLine(customRTB.Lines.GetValue(j).ToString());
j = j + 1;
}
sw.Close();
customRTB.Text = noenc;
string cc = customRTB.Text.Length.ToString(CultureInfo.InvariantCulture);
customRTB.Select(Convert.ToInt32(cc), 0);
textSave = false;
toolStripStatusLabel1.Text = "Saved in: " + filename;
await Task.Delay(4000);
toolStripStatusLabel1.Text = "Ready";
}
private void выходToolStripMenuItem_Click(object sender, EventArgs e)
{
Application.Exit();
}
private void выделитьВсеToolStripMenuItem_Click(object sender, EventArgs e)
{
if (customRTB.Focused == true)
customRTB.SelectAll();
else searchTextBox.SelectAll();
}
private void вырезатьToolStripMenuItem_Click(object sender, EventArgs e)
{
if (customRTB.Focused == true)
customRTB.Cut();
else
searchTextBox.Cut();
}
private void копироватьToolStripMenuItem_Click(object sender, EventArgs e)
{
if (customRTB.Focused == true)
customRTB.Copy();
else
searchTextBox.Copy();
}
private void вставитьToolStripMenuItem_Click(object sender, EventArgs e)
{
if (customRTB.Focused == true)
customRTB.Paste(DataFormats.GetFormat(DataFormats.Text));
else
searchTextBox.Paste();
}
private void правкаToolStripMenuItem_MouseDown(object sender, MouseEventArgs e)
{
}
private void УдалитьФайлToolStripMenuItem_Click_1(object sender, EventArgs e)
{
if (filename != "Unnamed.enp")
{
using (new CenterWinDialog(this))
{
if (MessageBox.Show("Delete file: " + filename + " ?", "", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
{
File.Delete(filename);
toolStripStatusLabel1.Text = filename + " deleted";
customRTB.Clear();
}
}
}
if (filename == "Unnamed.enp")
{
using (new CenterWinDialog(this))
{
MessageBox.Show("No open files", "", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}
}
private void открытьРасположениеФайлаToolStripMenuItem_Click(object sender, EventArgs e)
{
if (filename != "Unnamed.enp")
{
System.Diagnostics.Process.Start("explorer.exe", @"/select, " + filename);
}
if (filename == "Unnamed.enp")
{
using (new CenterWinDialog(this))
{
MessageBox.Show("No open files", "", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}
}
private void переносПоСловамToolStripMenuItem_Click(object sender, EventArgs e)
{
if (переносПоСловамToolStripMenuItem.Checked == true)
{
customRTB.WordWrap = true;
}
if (переносПоСловамToolStripMenuItem.Checked == false)
{
customRTB.WordWrap = false;
}
}
private void отменитьToolStripMenuItem_Click(object sender, EventArgs e)
{
отменаToolStripMenuItem_Click(this, new EventArgs());
}
public void отменаToolStripMenuItem_Click(object sender, EventArgs e)
{
if (customRTB.CanUndo == true)
{
customRTB.Undo();
}
else customRTB.Redo();
}
private void вырезатьToolStripMenuItem1_Click(object sender, EventArgs e)
{
customRTB.Cut();
}
private void копироватьToolStripMenuItem1_Click(object sender, EventArgs e)
{
customRTB.Copy();
}
private void вставитьToolStripMenuItem1_Click(object sender, EventArgs e)
{
customRTB.Paste(DataFormats.GetFormat(DataFormats.Text));
}
private void contextMenuStrip1_Opening(object sender, CancelEventArgs e)
{
if (customRTB.SelectionLength != 0)
{
вырезатьToolStripMenuItem1.Enabled = true;
копироватьToolStripMenuItem1.Enabled = true;
удалитьToolStripMenuItem1.Enabled = true;
}
if (customRTB.SelectionLength == 0)
{
вырезатьToolStripMenuItem1.Enabled = false;
копироватьToolStripMenuItem1.Enabled = false;
удалитьToolStripMenuItem1.Enabled = false;
}
}
private void удалитьToolStripMenuItem_Click(object sender, EventArgs e)
{
customRTB.SelectedText = "";
}
private void удалитьToolStripMenuItem1_Click(object sender, EventArgs e)
{
customRTB.SelectedText = "";
}
private void порядокЧтенияСправаНалевоToolStripMenuItem_Click(object sender, EventArgs e)
{
if (порядокЧтенияСправаНалевоToolStripMenuItem.Checked == true)
{
customRTB.RightToLeft = RightToLeft.Yes;
}
if (порядокЧтенияСправаНалевоToolStripMenuItem.Checked == false)
{
customRTB.RightToLeft = RightToLeft.No;
}
}
private void очиститьToolStripMenuItem1_Click(object sender, EventArgs e)
{
customRTB.Clear();
}
private void оПрограммеToolStripMenuItem_Click(object sender, EventArgs e)
{
AboutFrom a = new AboutFrom();
a.ShowDialog(this);
}
private void выделитьВсеToolStripMenuItem1_Click(object sender, EventArgs e)
{
customRTB.SelectAll();
}
private void changeKeyToolStripMenuItem_Click(object sender, EventArgs e)
{
ChangeKeyForm c = new ChangeKeyForm();
c.ShowDialog(this);
}
public int FindMyTextNext(string text, int start)
{
int returnValue = -1;
if (text.Length > 0 && start >= 0)
{
int indexToText = customRTB.Find(text, start, RichTextBoxFinds.MatchCase);
if (indexToText >= 0)
{
returnValue = indexToText;
}
}
return returnValue;
}
private void textBox1_TextChanged(object sender, EventArgs e)
{
bool isexist = customRTB.Highlight(searchTextBox.Text, ps.HighlightsColor, chkMatchCase.Checked, chkMatchWholeWord.Checked);
}
private void searchTextBox_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Escape)
{
searchTextBox.Text = "";
panel1.Visible = false;
customRTB.Height = customRTB.Height += 27;
customRTB.Focus();
customRTB.DeselectAll();
e.Handled = e.SuppressKeyPress = true;
}
}
private void customRTB_SelectionChanged_1(object sender, EventArgs e)
{
LineAndColumn();
if (customRTB.SelectionLength != 0)
{
pictureBox8.Enabled = true;
pictureBox9.Enabled = true;
}
if (customRTB.SelectionLength == 0)
{
pictureBox8.Enabled = false;
pictureBox9.Enabled = false;
}
}
private void customRTB_TextChanged(object sender, EventArgs e)
{
textSave = true;
LineAndColumn();
}
private void settingsToolStripMenuItem_Click(object sender, EventArgs e)
{
SettingsForm sf = new SettingsForm();
sf.StartPosition = FormStartPosition.Manual;
sf.Location = new Point(this.Location.X + (this.Width - sf.Width) / 2, this.Location.Y + (this.Height - sf.Height) / 2);
sf.ShowDialog(this);
}
private async void MainWindow_Activated(object sender, EventArgs e)
{
if (settingsChanged == true)
{
customRTB.Font = new Font(ps.RichTextFont, ps.RichTextSize);
customRTB.ForeColor = ps.RichForeColor;
customRTB.BackColor = ps.RichBackColor;
if (ps.ShowToolbar == false && panel2.Visible == true)
{
panel2.Visible = false;
int h = customRTB.Height;
h += 23;
customRTB.Height = h;
customRTB.Location = new Point(0, 25);
}
if (ps.ShowToolbar == true && panel2.Visible == false)
{
panel2.Visible = true;
int h = customRTB.Height;
h -= 23;
customRTB.Height = h;
customRTB.Location = new Point(0, 48);
}
}
if (keyChanged == true)
{
toolStripStatusLabel1.Text = "Key was changed";
await Task.Delay(4000);
toolStripStatusLabel1.Text = "Ready";
}
if (key == "")
{
pictureBox11.Enabled = false;
}
if (key != "")
{
pictureBox11.Enabled = true;
}
}
private void chkMatchCase_CheckedChanged(object sender, EventArgs e)
{
bool isexist = customRTB.Highlight(searchTextBox.Text, ps.HighlightsColor, chkMatchCase.Checked, chkMatchWholeWord.Checked);
}
private void chkMatchWholeWord_CheckedChanged(object sender, EventArgs e)
{
bool isexist = customRTB.Highlight(searchTextBox.Text, ps.HighlightsColor, chkMatchCase.Checked, chkMatchWholeWord.Checked);
}
private void pictureBox1_Click(object sender, EventArgs e)
{
searchTextBox.Text = "";
panel1.Visible = false;
customRTB.Height = customRTB.Height += 27;
customRTB.Focus();
SendMessage(customRTB.Handle, (uint)0x00B6, (UIntPtr)0, (IntPtr)(1));
customRTB.DeselectAll();
}
private void findToolStripMenuItem2_Click(object sender, EventArgs e)
{
if (panel1.Visible == false)
{
panel1.Visible = true;
searchTextBox.Focus();
SendMessage(customRTB.Handle, (uint)0x00B6, (UIntPtr)0, (IntPtr)(-1));
customRTB.Height = customRTB.Height - 27;
return;
}
if (panel1.Visible == true)
{
searchTextBox.Text = "";
panel1.Visible = false;
customRTB.Height = customRTB.Height += 27;
customRTB.Focus();
SendMessage(customRTB.Handle, (uint)0x00B6, (UIntPtr)0, (IntPtr)(1));
customRTB.DeselectAll();
}
}
private void documentationToolStripMenuItem_Click(object sender, EventArgs e)
{
}
private void сервисToolStripMenuItem_DropDownOpened(object sender, EventArgs e)
{
if(key == "")
{
changeKeyToolStripMenuItem.Enabled = false;
}
if (key != "")
{
changeKeyToolStripMenuItem.Enabled = true;
}
}
private void pictureBox2_Click(object sender, EventArgs e)
{
новыйToolStripMenuItem_Click_1(this, new EventArgs());
}
private void pictureBox3_Click(object sender, EventArgs e)
{
открытьToolStripMenuItem_Click(this, new EventArgs());
}
private void pictureBox4_Click(object sender, EventArgs e)
{
сохранитьToolStripMenuItem1_Click_1(this, new EventArgs());
}
private void pictureBox6_Click(object sender, EventArgs e)
{
открытьРасположениеФайлаToolStripMenuItem_Click(this, new EventArgs());
}
private void pictureBox7_Click(object sender, EventArgs e)
{
УдалитьФайлToolStripMenuItem_Click_1(this, new EventArgs());
}
private void pictureBox8_Click(object sender, EventArgs e)
{
вырезатьToolStripMenuItem_Click(this, new EventArgs());
}
private void pictureBox9_Click(object sender, EventArgs e)
{
копироватьToolStripMenuItem_Click(this, new EventArgs());
}
private void pictureBox10_Click(object sender, EventArgs e)
{
вставитьToolStripMenuItem_Click(this, new EventArgs());
}
private void pictureBox11_Click(object sender, EventArgs e)
{
changeKeyToolStripMenuItem_Click(this, new EventArgs());
}
private void pictureBox5_Click(object sender, EventArgs e)
{
settingsToolStripMenuItem_Click(this, new EventArgs());
}
private void pictureBox12_Click(object sender, EventArgs e)
{
panel2.Visible = false;
int h = customRTB.Height;
h += 23;
customRTB.Height = h;
customRTB.Location = new Point(0, 25);
ps.ShowToolbar = false;
ps.Save();
}
private void pictureBox12_MouseEnter(object sender, EventArgs e)
{
pictureBox12.Image = Properties.Resources.close_b;
}
private void pictureBox12_MouseLeave(object sender, EventArgs e)
{
pictureBox12.Image = Properties.Resources.close_g;
}
private void pictureBox1_MouseHover(object sender, EventArgs e)
{
pictureBox1.Image = Properties.Resources.close_b;
}
private void pictureBox1_MouseLeave(object sender, EventArgs e)
{
pictureBox1.Image = Properties.Resources.close_g;
}
private void правкаToolStripMenuItem_DropDownOpened(object sender, EventArgs e)
{
if (customRTB.SelectionLength != 0)
{
вырезатьToolStripMenuItem.Enabled = true;
копироватьToolStripMenuItem.Enabled = true;
удалитьToolStripMenuItem.Enabled = true;
}
if (customRTB.SelectionLength == 0)
{
вырезатьToolStripMenuItem.Enabled = false;
копироватьToolStripMenuItem.Enabled = false;
удалитьToolStripMenuItem.Enabled = false;
}
}
}
}

File diff suppressed because it is too large Load diff

View file

@ -1,104 +0,0 @@
namespace Crypto_Notepad
{
partial class Form2
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.textBox1 = new System.Windows.Forms.TextBox();
this.button1 = new System.Windows.Forms.Button();
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
this.pictureBox1 = new System.Windows.Forms.PictureBox();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.SuspendLayout();
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(12, 12);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(116, 20);
this.textBox1.TabIndex = 0;
this.textBox1.UseSystemPasswordChar = true;
this.textBox1.TextChanged += new System.EventHandler(this.textBox1_TextChanged);
this.textBox1.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textBox1_KeyDown);
//
// button1
//
this.button1.Enabled = false;
this.button1.Location = new System.Drawing.Point(70, 41);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(75, 23);
this.button1.TabIndex = 1;
this.button1.Text = "OK";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// pictureBox1
//
this.pictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.pictureBox1.Cursor = System.Windows.Forms.Cursors.Hand;
this.pictureBox1.Image = global::Crypto_Notepad.Properties.Resources.eye;
this.pictureBox1.Location = new System.Drawing.Point(127, 12);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(18, 20);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pictureBox1.TabIndex = 3;
this.pictureBox1.TabStop = false;
this.toolTip1.SetToolTip(this.pictureBox1, "Show key");
this.pictureBox1.Click += new System.EventHandler(this.pictureBox1_Click);
//
// Form2
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(158, 73);
this.Controls.Add(this.pictureBox1);
this.Controls.Add(this.button1);
this.Controls.Add(this.textBox1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "Form2";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Enter the key";
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Form2_FormClosing);
this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.Form2_FormClosed);
this.Load += new System.EventHandler(this.Form2_Load);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.ToolTip toolTip1;
}
}

View file

@ -1,72 +0,0 @@
using System;
using System.Windows.Forms;
namespace Crypto_Notepad
{
public partial class Form2 : Form
{
public static bool OkPressed = false;
public Form2()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
MainWindow.key = textBox1.Text;
textBox1.Focus();
textBox1.Text = "";
OkPressed = true;
this.Hide();
}
private void textBox1_TextChanged(object sender, EventArgs e)
{
if (textBox1.Text.Length > 0)
button1.Enabled = true;
else
button1.Enabled = false;
}
private void textBox1_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter)
{
button1_Click(sender, e);
}
}
private void pictureBox1_Click(object sender, EventArgs e)
{
if (textBox1.UseSystemPasswordChar == true)
{
textBox1.UseSystemPasswordChar = false;
pictureBox1.Image = Properties.Resources.eye_half;
return;
}
if (textBox1.UseSystemPasswordChar == false)
{
textBox1.UseSystemPasswordChar = true;
pictureBox1.Image = Properties.Resources.eye;
return;
}
}
private void Form2_FormClosing(object sender, FormClosingEventArgs e)
{
}
private void Form2_FormClosed(object sender, FormClosedEventArgs e)
{
textBox1.Focus();
textBox1.Text = "";
}
private void Form2_Load(object sender, EventArgs e)
{
}
}
}

View file

@ -1,123 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>

119
Crypto Notepad/Forms/AboutFrom.Designer.cs generated Normal file
View file

@ -0,0 +1,119 @@
namespace Crypto_Notepad
{
partial class AboutFrom
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(AboutFrom));
this.appVersionLabel = new System.Windows.Forms.Label();
this.randomColorTimer = new System.Windows.Forms.Timer(this.components);
this.aboutToolTip = new System.Windows.Forms.ToolTip(this.components);
this.appInfoRichTextBox = new Crypto_Notepad.HideCaretRichTextBox();
this.SuspendLayout();
//
// appVersionLabel
//
this.appVersionLabel.AutoSize = true;
this.appVersionLabel.Cursor = System.Windows.Forms.Cursors.Hand;
this.appVersionLabel.Font = new System.Drawing.Font("Consolas", 14.25F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.appVersionLabel.ForeColor = System.Drawing.SystemColors.HotTrack;
this.appVersionLabel.Location = new System.Drawing.Point(4, 10);
this.appVersionLabel.Name = "appVersionLabel";
this.appVersionLabel.Size = new System.Drawing.Size(210, 22);
this.appVersionLabel.TabIndex = 1;
this.appVersionLabel.Text = "Crypto Notepad 1.0.0";
this.appVersionLabel.MouseClick += new System.Windows.Forms.MouseEventHandler(this.AppVersionLabel_MouseClick);
this.appVersionLabel.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.AppVersionLabel_MouseDoubleClick);
this.appVersionLabel.MouseEnter += new System.EventHandler(this.appVersionLabel_MouseEnter);
//
// randomColorTimer
//
this.randomColorTimer.Interval = 200;
this.randomColorTimer.Tick += new System.EventHandler(this.RandomColorTimer_Tick);
//
// aboutToolTip
//
this.aboutToolTip.AutoPopDelay = 5000;
this.aboutToolTip.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(61)))), ((int)(((byte)(61)))), ((int)(((byte)(68)))));
this.aboutToolTip.ForeColor = System.Drawing.Color.DarkGray;
this.aboutToolTip.InitialDelay = 100;
this.aboutToolTip.OwnerDraw = true;
this.aboutToolTip.ReshowDelay = 100;
this.aboutToolTip.Draw += new System.Windows.Forms.DrawToolTipEventHandler(this.AboutToolTip_Draw);
//
// appInfoRichTextBox
//
this.appInfoRichTextBox.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(45)))), ((int)(((byte)(50)))));
this.appInfoRichTextBox.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.appInfoRichTextBox.Cursor = System.Windows.Forms.Cursors.IBeam;
this.appInfoRichTextBox.Font = new System.Drawing.Font("Consolas", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.appInfoRichTextBox.ForeColor = System.Drawing.SystemColors.ButtonFace;
this.appInfoRichTextBox.Location = new System.Drawing.Point(0, 44);
this.appInfoRichTextBox.Name = "appInfoRichTextBox";
this.appInfoRichTextBox.ReadOnly = true;
this.appInfoRichTextBox.RightMargin = 700;
this.appInfoRichTextBox.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.None;
this.appInfoRichTextBox.ShowSelectionMargin = true;
this.appInfoRichTextBox.Size = new System.Drawing.Size(439, 285);
this.appInfoRichTextBox.TabIndex = 2;
this.appInfoRichTextBox.TabStop = false;
this.appInfoRichTextBox.Text = resources.GetString("appInfoRichTextBox.Text");
this.appInfoRichTextBox.WordWrap = false;
this.appInfoRichTextBox.LinkClicked += new System.Windows.Forms.LinkClickedEventHandler(this.AppInfoRichTextBox_LinkClicked);
//
// AboutFrom
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(45)))), ((int)(((byte)(45)))), ((int)(((byte)(50)))));
this.ClientSize = new System.Drawing.Size(435, 323);
this.Controls.Add(this.appInfoRichTextBox);
this.Controls.Add(this.appVersionLabel);
this.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "AboutFrom";
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "About";
this.Load += new System.EventHandler(this.AboutWindow_Load);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label appVersionLabel;
private HideCaretRichTextBox appInfoRichTextBox;
private System.Windows.Forms.Timer randomColorTimer;
private System.Windows.Forms.ToolTip aboutToolTip;
}
}

View file

@ -0,0 +1,106 @@
using JCS;
using System;
using System.Diagnostics;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace Crypto_Notepad
{
public partial class AboutFrom : Form
{
private Random rnd = new Random();
public AboutFrom()
{
InitializeComponent();
}
#region Methods
private void GetDebugInfo()
{
Version vrs = new Version(Application.ProductVersion);
StringBuilder sb = new StringBuilder(string.Empty);
sb.AppendLine("App version = " + vrs);
sb.AppendLine(string.Format("OS name = {0}", OSVersionInfo.Name));
sb.AppendLine(string.Format("OS version = {0}", OSVersionInfo.VersionString));
sb.AppendLine(".Net Framework = " + Methods.GetDotNetVersion());
Clipboard.SetText(sb.ToString());
aboutToolTip.AutoPopDelay = 1000;
aboutToolTip.SetToolTip(appVersionLabel, "Copied");
}
#endregion
#region Event Handlers
private void AboutWindow_Load(object sender, EventArgs e)
{
Version vrs = new Version(Application.ProductVersion);
appVersionLabel.Text = string.Format(PublicVar.appName + " {0}.{1}.{2}", vrs.Major, vrs.Minor, vrs.Build);
}
protected override bool ProcessDialogKey(Keys keyData)
{
if (ModifierKeys == Keys.None && keyData == Keys.Escape)
{
Close();
return true;
}
return base.ProcessDialogKey(keyData);
}
private void RandomColorTimer_Tick(object sender, EventArgs e)
{
Color randomColor = Color.FromArgb(rnd.Next(256), rnd.Next(256), rnd.Next(256));
appVersionLabel.ForeColor = randomColor;
}
private void AppVersionLabel_MouseDoubleClick(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Left)
{
GetDebugInfo();
}
}
private void AppInfoRichTextBox_LinkClicked(object sender, LinkClickedEventArgs e)
{
Process.Start(e.LinkText);
}
private void AppVersionLabel_MouseClick(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Left)
{
GetDebugInfo();
}
if (e.Button == MouseButtons.Right)
{
if (randomColorTimer.Enabled)
{
randomColorTimer.Stop();
}
else
{
randomColorTimer.Start();
}
}
}
private void AboutToolTip_Draw(object sender, DrawToolTipEventArgs e)
{
e.DrawBackground();
e.DrawBorder();
e.DrawText();
}
private void appVersionLabel_MouseEnter(object sender, EventArgs e)
{
aboutToolTip.AutoPopDelay = 5000;
aboutToolTip.SetToolTip(appVersionLabel, "Left click for copy debug info to the clipboard");
}
#endregion
}
}

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,206 @@
namespace Crypto_Notepad
{
partial class ChangePasswordForm
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ChangePasswordForm));
this.acceptButton = new System.Windows.Forms.Button();
this.mainPanel = new System.Windows.Forms.Panel();
this.lockPictureBox = new System.Windows.Forms.PictureBox();
this.showNewKeyPictureBox = new System.Windows.Forms.PictureBox();
this.showOldKeyPictureBox = new System.Windows.Forms.PictureBox();
this.statusLabel = new System.Windows.Forms.Label();
this.changeKeyFormToolTip = new System.Windows.Forms.ToolTip(this.components);
this.passwordGeneratorButton = new System.Windows.Forms.Button();
this.oldKeyTextBox = new System.Windows.Forms.PlaceholderTextBox();
this.newKeyTextBox = new System.Windows.Forms.PlaceholderTextBox();
this.mainPanel.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.lockPictureBox)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.showNewKeyPictureBox)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.showOldKeyPictureBox)).BeginInit();
this.SuspendLayout();
//
// acceptButton
//
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.Name = "acceptButton";
this.acceptButton.Size = new System.Drawing.Size(53, 25);
this.acceptButton.TabIndex = 4;
this.acceptButton.Text = "Accept";
this.acceptButton.UseVisualStyleBackColor = true;
this.acceptButton.Click += new System.EventHandler(this.AcceptButton_Click);
//
// mainPanel
//
this.mainPanel.BackColor = System.Drawing.Color.White;
this.mainPanel.Controls.Add(this.lockPictureBox);
this.mainPanel.Controls.Add(this.showNewKeyPictureBox);
this.mainPanel.Controls.Add(this.showOldKeyPictureBox);
this.mainPanel.Controls.Add(this.oldKeyTextBox);
this.mainPanel.Controls.Add(this.newKeyTextBox);
this.mainPanel.Dock = System.Windows.Forms.DockStyle.Top;
this.mainPanel.Location = new System.Drawing.Point(0, 0);
this.mainPanel.Name = "mainPanel";
this.mainPanel.Size = new System.Drawing.Size(295, 75);
this.mainPanel.TabIndex = 6;
//
// lockPictureBox
//
this.lockPictureBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.lockPictureBox.Cursor = System.Windows.Forms.Cursors.Default;
this.lockPictureBox.Image = global::Crypto_Notepad.Properties.Resources.gnupg_keys;
this.lockPictureBox.Location = new System.Drawing.Point(8, 14);
this.lockPictureBox.Name = "lockPictureBox";
this.lockPictureBox.Size = new System.Drawing.Size(48, 48);
this.lockPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
this.lockPictureBox.TabIndex = 7;
this.lockPictureBox.TabStop = false;
//
// showNewKeyPictureBox
//
this.showNewKeyPictureBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.showNewKeyPictureBox.Cursor = System.Windows.Forms.Cursors.Hand;
this.showNewKeyPictureBox.Image = global::Crypto_Notepad.Properties.Resources.eye_half;
this.showNewKeyPictureBox.Location = new System.Drawing.Point(269, 39);
this.showNewKeyPictureBox.Name = "showNewKeyPictureBox";
this.showNewKeyPictureBox.Size = new System.Drawing.Size(19, 23);
this.showNewKeyPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
this.showNewKeyPictureBox.TabIndex = 5;
this.showNewKeyPictureBox.TabStop = false;
this.showNewKeyPictureBox.Click += new System.EventHandler(this.ShowNewKeyPictureBox_Click);
//
// showOldKeyPictureBox
//
this.showOldKeyPictureBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.showOldKeyPictureBox.Cursor = System.Windows.Forms.Cursors.Hand;
this.showOldKeyPictureBox.Image = global::Crypto_Notepad.Properties.Resources.eye_half;
this.showOldKeyPictureBox.Location = new System.Drawing.Point(269, 14);
this.showOldKeyPictureBox.Name = "showOldKeyPictureBox";
this.showOldKeyPictureBox.Size = new System.Drawing.Size(19, 23);
this.showOldKeyPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
this.showOldKeyPictureBox.TabIndex = 5;
this.showOldKeyPictureBox.TabStop = false;
this.showOldKeyPictureBox.Click += new System.EventHandler(this.ShowOldKeyPictureBox_Click);
//
// statusLabel
//
this.statusLabel.AutoSize = true;
this.statusLabel.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.statusLabel.ForeColor = System.Drawing.Color.Black;
this.statusLabel.Location = new System.Drawing.Point(2, 85);
this.statusLabel.Name = "statusLabel";
this.statusLabel.Size = new System.Drawing.Size(38, 15);
this.statusLabel.TabIndex = 7;
this.statusLabel.Text = "status";
//
// passwordGeneratorButton
//
this.passwordGeneratorButton.Image = global::Crypto_Notepad.Properties.Resources.key_plus;
this.passwordGeneratorButton.Location = new System.Drawing.Point(266, 80);
this.passwordGeneratorButton.Name = "passwordGeneratorButton";
this.passwordGeneratorButton.Size = new System.Drawing.Size(25, 25);
this.passwordGeneratorButton.TabIndex = 9;
this.changeKeyFormToolTip.SetToolTip(this.passwordGeneratorButton, "Password Generator");
this.passwordGeneratorButton.UseVisualStyleBackColor = true;
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
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(295, 110);
this.Controls.Add(this.passwordGeneratorButton);
this.Controls.Add(this.statusLabel);
this.Controls.Add(this.acceptButton);
this.Controls.Add(this.mainPanel);
this.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "ChangePasswordForm";
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Change Password";
this.mainPanel.ResumeLayout(false);
this.mainPanel.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.lockPictureBox)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.showNewKeyPictureBox)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.showOldKeyPictureBox)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.PlaceholderTextBox oldKeyTextBox;
private System.Windows.Forms.PlaceholderTextBox newKeyTextBox;
private System.Windows.Forms.Button acceptButton;
private System.Windows.Forms.PictureBox showOldKeyPictureBox;
private System.Windows.Forms.PictureBox showNewKeyPictureBox;
private System.Windows.Forms.Panel mainPanel;
private System.Windows.Forms.PictureBox lockPictureBox;
private System.Windows.Forms.Label statusLabel;
private System.Windows.Forms.ToolTip changeKeyFormToolTip;
private System.Windows.Forms.Button passwordGeneratorButton;
}
}

View file

@ -0,0 +1,150 @@
using System;
using System.Drawing;
using System.Media;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Crypto_Notepad
{
public partial class ChangePasswordForm : Form
{
public ChangePasswordForm()
{
InitializeComponent();
statusLabel.Text = "";
}
#region Methods
private async void ChangePasswordStatus(string message, Color color)
{
statusLabel.ForeColor = color;
statusLabel.Text = message;
oldKeyTextBox.Text = "";
newKeyTextBox.Text = "";
await Task.Delay(2500);
statusLabel.Text = "";
}
#endregion
#region Event Handlers
private void AcceptButton_Click(object sender, EventArgs e)
{
oldKeyTextBox.Focus();
if (oldKeyTextBox.Text == PublicVar.password.Get() & oldKeyTextBox.Text != newKeyTextBox.Text)
{
PublicVar.password.Set(newKeyTextBox.Text);
PublicVar.passwordChanged = true;
ChangePasswordStatus("Password was successfully changed", Color.Green);
}
else if (oldKeyTextBox.Text != PublicVar.password.Get())
{
SystemSounds.Hand.Play();
ChangePasswordStatus("Invalid old password", Color.Red);
}
else if (oldKeyTextBox.Text == newKeyTextBox.Text)
{
SystemSounds.Hand.Play();
ChangePasswordStatus("New password is the same as old", Color.Red);
}
}
private void PasswordGeneratorButton_Click(object sender, EventArgs e)
{
ActiveControl = null;
PasswordGeneratorFrom passwordGeneratorFrom = new PasswordGeneratorFrom();
if ((Application.OpenForms["PasswordGeneratorFrom"] as PasswordGeneratorFrom) == null)
{
passwordGeneratorFrom.Show(this);
}
}
private void ShowOldKeyPictureBox_Click(object sender, EventArgs e)
{
if (oldKeyTextBox.UseSystemPasswordChar)
{
oldKeyTextBox.UseSystemPasswordChar = false;
showOldKeyPictureBox.Image = Properties.Resources.eye;
}
else
{
oldKeyTextBox.UseSystemPasswordChar = true;
showOldKeyPictureBox.Image = Properties.Resources.eye_half;
}
}
private void ShowNewKeyPictureBox_Click(object sender, EventArgs e)
{
if (newKeyTextBox.UseSystemPasswordChar)
{
newKeyTextBox.UseSystemPasswordChar = false;
showNewKeyPictureBox.Image = Properties.Resources.eye;
}
else
{
newKeyTextBox.UseSystemPasswordChar = true;
showNewKeyPictureBox.Image = Properties.Resources.eye_half;
}
}
private void OldKeyTextBox_TextChanged(object sender, EventArgs e)
{
if (oldKeyTextBox.Text.Length > 0 & newKeyTextBox.Text.Length > 0)
{
acceptButton.Enabled = true;
}
else
{
acceptButton.Enabled = false;
}
}
private void NewKeyTextBox_TextChanged(object sender, EventArgs e)
{
if (newKeyTextBox.Text.Length > 0 & oldKeyTextBox.Text.Length > 0)
{
acceptButton.Enabled = true;
}
else
{
acceptButton.Enabled = false;
}
}
private void NewKeyPlaceholder_Click(object sender, EventArgs e)
{
newKeyTextBox.Focus();
}
private void OldKeyPlaceholder_Click(object sender, EventArgs e)
{
oldKeyTextBox.Focus();
}
private void NewKeyTextBox_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter)
{
e.SuppressKeyPress = true;
}
if (e.KeyCode == Keys.Enter & acceptButton.Enabled)
{
AcceptButton_Click(sender, e);
}
}
private void OldKeyTextBox_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter)
{
e.SuppressKeyPress = true;
}
if (e.KeyCode == Keys.Enter & acceptButton.Enabled)
{
AcceptButton_Click(sender, e);
}
}
#endregion
}
}

View file

@ -117,48 +117,56 @@
<resheader name="writer"> <resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader> </resheader>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> <metadata name="acceptButton.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<data name="pictureBox1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> <value>True</value>
<value> </metadata>
iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO <metadata name="mainPanel.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
wwAADsMBx2+oZAAABbpJREFUeF7tm19vFFUYxpdLL/wQXvgB/ADecmPUUEEK7WyXtgst7dalRFBKgoIB <value>True</value>
jRRUKDu7KeGCxIQrLzUmXvgnJGo03jSVGJhFb0yMoITEC9Hjec7urDszz86cP9vdaZY3+TXTmfO+53nf </metadata>
mZ2Zc2amIITYsZUEV7xnmv7kQrNerAV+8ctm3QuCevFv+b/oprVOblNtijX4wJfF7Cd9L8DPq7ufCBrF <metadata name="lockPictureBox.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
XUHdu970vfvxRI2RMRALMRGb9elC3wrQbEw+Ffjeu3IP/kYT6QOIjT7QV3ffLjgX4Jda6emmX7zGDuut <value>True</value>
QvUl+0TfTJMJ1gVQh3rdOyMP0b+YyIEg+4YGl5+GVQHuNiaexQmLihoKXgBNTGsWxgWQFV8Z5OGuCzRB </metadata>
G9OchnYBNtenn5S/u49Y57lCaoRWlgNDqwAI2L4+805zBrTqFiGzAK09722yjnKN1KxThNQC9HvP/1Qr <metadata name="showNewKeyPictureBox.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
io/fnhG1lTlxZnlBHF1cUmB57cS82oY2zNcGnSMhtQD9+s1//35JnD92WOyZWhYvekdTQRu0hQ+LZYzM <value>True</value>
geUW0rMAOKPSgAbc9otqb7+kkXgc+MAXMVhsE9KuDrQAuKa6XupuXZkSr1YqNDkTEAOxWB+6IJde9wmJ </metadata>
AuCuyvUmB4KPLCzRhGxALNciICd2x5goAG4teQB9ji+l7/nZ2UVxqjIrLixPKbCMdaxtCGKyvkxAbvF8 <metadata name="showOldKeyPictureBox.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
IwVoDWzc7u2vnzpEEwCVQ/PiwxPj4tM3xyjYhjbMFyA261MbmVt8ABUpAEZY1FGTzbUpMV46QsWffWW6 <value>True</value>
k+jnZ3eLb8/vFT9c3KfAMtaF29GWxUBs9MH61kbm2J1zpwBqPO944qufnKPC32on/9W5PeLHy5PUF2Ab </metadata>
2qAtfFgs9MF8dVE5ds0ndAqgJhqIgwkz5WpC8MHygvjkjTHx3eo49WGgLXzgG4+HPpiPCcg1UgA1tvfd <metadata name="oldKeyTextBox.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
ZnK+vnggIRasH58wSj4EPvBlMdEX89EFuYZXBFUAzLexhibcOF1OCN1Xqoov5G9bVpz6pAEf+CJGPC76 <value>True</value>
Yj4mIOf/C4AJTNLIBNy1xYVW5+bExgf7aXsd4IsY8bjoi7U3ATl3CiAvD86zt6wAJyuOly0JYsTj9qMA </metadata>
yFkVQM3bswaGsAK8d+wgbWsCYsTj9qUAEuReaD+0oA3SuHu1LB7e/kb8+88jWcjhGPqGBmhhGjORuRfk <metadata name="newKeyTextBox.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
Qi2xQQN0nBeDFqZRg1rBasKjURrqno8btFCdGSB3eQRYjPxkAfJmVGcmXlCwvf3NmzGNWSB3nAPoxizy <value>True</value>
ZkyjDo8LwFbq4GK/3/tDXFi7JkrzrymwjHUuxjTqMPACING9B6pi567pCFjnUgSmUYeBnwSxt3eOzYjn </metadata>
xhfF8xNVBZaxDttsjWnMon0StJsAtbXS4dfFC5PJWSOswzZbYxqzwWXQ8smPrZWrpxPJh2CbrTGNWbRv <metadata name="changeKeyFormToolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
hOxuhW3t0voNmjzANltjGjWoWQ+GbO3e/Qdieil5FGAdttka05gJBkO2w2EX+/PBw0QBsM7FmMYs1HBY
+lpNiLhavACuxjSmEk6I4I/NlJirDbsAkSkxm0lRV6uurHaSx7KrMY1pRCZFbabFXW3j1h2VOMCyqzGN
vUCukWlxYPpgJG/GNPYi8WAEmD4ay5sxjQyVI3s0BkwejubNmEZKr4ejwOTx+LacE8x6PA7wEgF1jvHr
xk3ZPB8GLUxjHOQmm0fyTRQAZ0edEeJn5/arjod5JKBvaIAWpjGK5isyQOclqZvvvNx5oWHYQAvTGIJc
tF+SCpGHS+prcnd8LxdFgAZoYRpDkAvLEfQsAMBLhizgtsL2RUnQ71dlBw20O70qCxBAXj5G82XpkO12
JOjs+RCtAoDWkTCiH0x0gzOqyZhhUEBT2tm+F8YFALim2k6nbw0D/GgqRM0h4LbZ8dVaJ2Tf0MDu8HSx
LkBIawA1gh9OxlHzCf4IfjobR/00GiP48XQv1HOH1sOXHH4+L3b8ByQVWGVGNFxQAAAAAElFTkSuQmCC
</value>
</data>
<metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value> <value>17, 17</value>
</metadata> </metadata>
<data name="customRichTextBox1.Text" xml:space="preserve"> <metadata name="passwordGeneratorButton.Locked" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>CustomSettingsProvider: http://www.codeproject.com/Articles/20917/Settings-Provider <value>True</value>
AES: http://easylab.net.ua/net-c-windows-forms/c-algoritm-shifrovaniya-aes
CustomRichTextBox: https://code.msdn.microsoft.com/windowsdesktop/How-to-find-the-text-and-e92b8d78
MsgBoxCenterParent: http://stackoverflow.com/a/2576220/4430027
Icons: http://www.fatcow.com/free-icons</value>
</data>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>44</value>
</metadata> </metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAA
AAD///8A////AP///wAAAAACAAAADAAAABoAGjFZAC1XvQAYLmAAAAArAAAAHgAAABAAAAAE////AP//
/wD///8A////AP///wD///8AAAAAAQAAAAYAAAANADNdqIXO5v8AM12pACM+TwAAAA8AAAAIAAAAAv//
/wD///8A////AP///wD///8A////AAAAAAAAAAAAAC9PAAA+aKGDzOX/fcrk/wA+aaIAL08AAAAAAAAA
AAD///8A////AP///wD///8A////AP///wAAAAAAADlZAABLdgAAS3apg8zl/wBLdqkAS3YuAEp0AAAV
IAAAAAAA////AP///wD///8A////AP///wD///8AAFR/AABUfwAAVH8AAFR/toPM5f92wtz2AFR/tgBU
fwAAVH8AAD9gAP///wD///8A////AP///wD///8A////AABVgAAAVYAAAFWAAABVgLWDzOX/AFWAtQBV
gC4AVYAAAFaBAABXgwD///8A////AP///wD///8A////AP///wAAWYUAAFaBAABVgAAAVYCxg8zl/2a4
1f8AVYCxAFWAAABWgQAAWYUA////AP///wD///8A////AP///wD///8AAFmFAABWgQUAVYBBAFWArIPM
5f9hs9L/AFWArABVgEEAVoEFAFmFAP///wD///8A////AP///wD///8A////AABZhQcAWIRtPo6xxXzD
4OtyvNr/W67O/1ev0usshq3FAFiEbQBZhQf///8A////AP///wD///8A////AP///wABXoxLVKTFzJba
9v+IzO7/Z7LT/0yixf9Nr9f/Ysbt/zuZwswBXoxL////AP///wD///8A////AP///wD///8AAWOUhZnf
9/ea3vj/ltr1/4HK5f9uvdr/asPk/2nK8P9pzfT3AWOUhf///wD///8A////AP///wD///8A////AAJq
npKh5f7/EJixzgCQqMkAkKjJAJCoyQCQqMkJlrDObtP6/wJqnpL///8A////AP///wD///8A////AP//
/wACcKhxjNfx60Wry90AhqSCAImlGQCJpRkAhqSCKaLH3WrK7+sCcKhx////AP///wD///8A////AP//
/wD///8AAnawLyeRw6Sd4fn/RaHG1g96pboLeKK6KZS81nfR8/8ij8KkAnawL////wD///8A////AP//
/wD///8A////AAN7twEDfLlMKZbJoX7O7d2N1ez/gMzm/23E5d0llMmhA3y5TAN7twH///8A////AP//
/wD///8A////AP///wADe7cAA369AQOAvy0DgL9pA4C/gwOAv4MDgL9pA4C/LQN+vQEDe7cA////AP//
/wD///8A4AcAAOAHAAD8PwAA/D8AAPw/AAD8PwAA/D8AAPAPAADgBwAA4AcAAOAHAADgBwAA4AcAAOAH
AADgBwAA8A8AAA==
</value>
</data>
</root> </root>

View file

@ -0,0 +1,170 @@
namespace Crypto_Notepad
{
partial class EnterPasswordForm
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(EnterPasswordForm));
this.okButton = new System.Windows.Forms.Button();
this.mainPanel = new System.Windows.Forms.Panel();
this.lockPictureBox = new System.Windows.Forms.PictureBox();
this.fileNameLabel = new System.Windows.Forms.Label();
this.keyTextBox = new System.Windows.Forms.PlaceholderTextBox();
this.showKeyPictureBox = new System.Windows.Forms.PictureBox();
this.enterKeyFormToolTip = new System.Windows.Forms.ToolTip(this.components);
this.passwordGeneratorButton = new System.Windows.Forms.Button();
this.mainPanel.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.lockPictureBox)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.showKeyPictureBox)).BeginInit();
this.SuspendLayout();
//
// okButton
//
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.Name = "okButton";
this.okButton.Size = new System.Drawing.Size(53, 25);
this.okButton.TabIndex = 1;
this.okButton.Text = "OK";
this.okButton.UseVisualStyleBackColor = true;
this.okButton.Click += new System.EventHandler(this.OkButton_Click);
//
// mainPanel
//
this.mainPanel.BackColor = System.Drawing.Color.White;
this.mainPanel.Controls.Add(this.lockPictureBox);
this.mainPanel.Controls.Add(this.fileNameLabel);
this.mainPanel.Controls.Add(this.keyTextBox);
this.mainPanel.Controls.Add(this.showKeyPictureBox);
this.mainPanel.Dock = System.Windows.Forms.DockStyle.Top;
this.mainPanel.Location = new System.Drawing.Point(0, 0);
this.mainPanel.Name = "mainPanel";
this.mainPanel.Size = new System.Drawing.Size(295, 75);
this.mainPanel.TabIndex = 5;
//
// lockPictureBox
//
this.lockPictureBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.lockPictureBox.Cursor = System.Windows.Forms.Cursors.Default;
this.lockPictureBox.Image = global::Crypto_Notepad.Properties.Resources.key_solid;
this.lockPictureBox.Location = new System.Drawing.Point(8, 14);
this.lockPictureBox.Name = "lockPictureBox";
this.lockPictureBox.Size = new System.Drawing.Size(48, 48);
this.lockPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
this.lockPictureBox.TabIndex = 6;
this.lockPictureBox.TabStop = false;
//
// fileNameLabel
//
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.Name = "fileNameLabel";
this.fileNameLabel.Size = new System.Drawing.Size(221, 13);
this.fileNameLabel.TabIndex = 6;
this.fileNameLabel.Text = "File name";
this.fileNameLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
//
// 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.Name = "keyTextBox";
this.keyTextBox.Placeholder = "Password";
this.keyTextBox.PlaceholderActiveForeColor = System.Drawing.Color.DarkGray;
this.keyTextBox.PlaceholderFont = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.keyTextBox.PlaceholderForeColor = System.Drawing.Color.DarkGray;
this.keyTextBox.Size = new System.Drawing.Size(206, 23);
this.keyTextBox.TabIndex = 0;
this.keyTextBox.UseSystemPasswordChar = true;
this.keyTextBox.TextChanged += new System.EventHandler(this.KeyTextBox_TextChanged);
this.keyTextBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.KeyTextBox_KeyDown);
//
// showKeyPictureBox
//
this.showKeyPictureBox.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.showKeyPictureBox.Cursor = System.Windows.Forms.Cursors.Hand;
this.showKeyPictureBox.Image = 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.Name = "showKeyPictureBox";
this.showKeyPictureBox.Size = new System.Drawing.Size(19, 23);
this.showKeyPictureBox.SizeMode = System.Windows.Forms.PictureBoxSizeMode.CenterImage;
this.showKeyPictureBox.TabIndex = 3;
this.showKeyPictureBox.TabStop = false;
this.showKeyPictureBox.Click += new System.EventHandler(this.ShowKeyPictureBox_Click);
//
// passwordGeneratorButton
//
this.passwordGeneratorButton.Image = global::Crypto_Notepad.Properties.Resources.key_plus;
this.passwordGeneratorButton.Location = new System.Drawing.Point(266, 80);
this.passwordGeneratorButton.Name = "passwordGeneratorButton";
this.passwordGeneratorButton.Size = new System.Drawing.Size(25, 25);
this.passwordGeneratorButton.TabIndex = 10;
this.enterKeyFormToolTip.SetToolTip(this.passwordGeneratorButton, "Password Generator");
this.passwordGeneratorButton.UseVisualStyleBackColor = true;
this.passwordGeneratorButton.Click += new System.EventHandler(this.PasswordGeneratorButton_Click);
//
// EnterPasswordForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(295, 110);
this.Controls.Add(this.passwordGeneratorButton);
this.Controls.Add(this.mainPanel);
this.Controls.Add(this.okButton);
this.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "EnterPasswordForm";
this.Text = "Crypto Notepad";
this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.EnterPasswordForm_FormClosed);
this.Load += new System.EventHandler(this.EnterPasswordForm_Load);
this.Shown += new System.EventHandler(this.EnterPasswordForm_Shown);
this.mainPanel.ResumeLayout(false);
this.mainPanel.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.lockPictureBox)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.showKeyPictureBox)).EndInit();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Button okButton;
private System.Windows.Forms.PictureBox showKeyPictureBox;
private System.Windows.Forms.Panel mainPanel;
private System.Windows.Forms.Label fileNameLabel;
private System.Windows.Forms.PictureBox lockPictureBox;
public System.Windows.Forms.PlaceholderTextBox keyTextBox;
private System.Windows.Forms.ToolTip enterKeyFormToolTip;
private System.Windows.Forms.Button passwordGeneratorButton;
}
}

View file

@ -0,0 +1,112 @@
using System;
using System.Windows.Forms;
namespace Crypto_Notepad
{
public partial class EnterPasswordForm : Form
{
public EnterPasswordForm()
{
PublicVar.okPressed = false;
InitializeComponent();
}
/*Form Events*/
private void EnterPasswordForm_FormClosed(object sender, FormClosedEventArgs e)
{
MainForm main = Owner as MainForm;
if (main.Visible == false)
{
main.trayIcon.Visible = false;
Environment.Exit(0);
}
keyTextBox.Focus();
}
private void EnterPasswordForm_Load(object sender, EventArgs e)
{
fileNameLabel.Text = PublicVar.openFileName;
Properties.Settings settings = Properties.Settings.Default;
TopMost = settings.alwaysOnTop;
MainForm main = Owner as MainForm;
if (main.Visible)
{
CenterToParent();
}
else
{
CenterToScreen();
}
}
private void EnterPasswordForm_Shown(object sender, EventArgs e)
{
fileNameLabel.Text = PublicVar.openFileName;
}
/*Form Events*/
/*Enter key area*/
private void KeyTextBox_TextChanged(object sender, EventArgs e)
{
if (keyTextBox.Text.Length > 0)
{
okButton.Enabled = true;
}
else
{
okButton.Enabled = false;
}
}
private void KeyTextBox_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter)
{
e.SuppressKeyPress = true;
}
if (e.KeyCode == Keys.Enter & okButton.Enabled)
{
OkButton_Click(sender, e);
}
}
private void ShowKeyPictureBox_Click(object sender, EventArgs e)
{
if (keyTextBox.UseSystemPasswordChar)
{
keyTextBox.UseSystemPasswordChar = false;
showKeyPictureBox.Image = Properties.Resources.eye;
}
else
{
keyTextBox.UseSystemPasswordChar = true;
showKeyPictureBox.Image = Properties.Resources.eye_half;
}
}
/*Enter key area*/
/*Buttons*/
private void OkButton_Click(object sender, EventArgs e)
{
TypedPassword.Value = keyTextBox.Text;
keyTextBox.Focus();
PublicVar.okPressed = true;
Hide();
}
private void PasswordGeneratorButton_Click(object sender, EventArgs e)
{
ActiveControl = null;
PasswordGeneratorFrom passwordGeneratorFrom = new PasswordGeneratorFrom();
if ((Application.OpenForms["PasswordGeneratorFrom"] as PasswordGeneratorFrom) == null)
{
passwordGeneratorFrom.Show(this);
}
}
/*Buttons*/
}
}

File diff suppressed because it is too large Load diff

1563
Crypto Notepad/Forms/MainForm.Designer.cs generated Normal file

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,307 @@
namespace Crypto_Notepad
{
partial class PasswordGeneratorFrom
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(PasswordGeneratorFrom));
this.generateButton = new System.Windows.Forms.Button();
this.passwordsListTextBox = new System.Windows.Forms.TextBox();
this.clearPasswordsListButton = new System.Windows.Forms.Button();
this.lowercaseCheckBox = new System.Windows.Forms.CheckBox();
this.uppercaseCheckBox = new System.Windows.Forms.CheckBox();
this.numericCheckBox = new System.Windows.Forms.CheckBox();
this.passwordLengthLabel = new System.Windows.Forms.Label();
this.numberOfStringsLabel = new System.Windows.Forms.Label();
this.passwordLengthTextBox = new System.Windows.Forms.TextBox();
this.numberOfStringsTextBox = new System.Windows.Forms.TextBox();
this.copyAllButton = new System.Windows.Forms.Button();
this.copyLastButton = new System.Windows.Forms.Button();
this.passwordGeneratorToolTip = new System.Windows.Forms.ToolTip(this.components);
this.specialCheckBox = new System.Windows.Forms.CheckBox();
this.additionalCheckBox = new System.Windows.Forms.CheckBox();
this.bracketsCheckBox = new System.Windows.Forms.CheckBox();
this.specialGroupBox = new System.Windows.Forms.GroupBox();
this.specialGroupBox.SuspendLayout();
this.SuspendLayout();
//
// generateButton
//
this.generateButton.AutoSize = true;
this.generateButton.Location = new System.Drawing.Point(9, 132);
this.generateButton.Name = "generateButton";
this.generateButton.Size = new System.Drawing.Size(66, 23);
this.generateButton.TabIndex = 1;
this.generateButton.Text = "Generate";
this.generateButton.UseVisualStyleBackColor = true;
this.generateButton.Click += new System.EventHandler(this.GenerateButton_Click);
//
// passwordsListTextBox
//
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.Multiline = true;
this.passwordsListTextBox.Name = "passwordsListTextBox";
this.passwordsListTextBox.ReadOnly = true;
this.passwordsListTextBox.ScrollBars = System.Windows.Forms.ScrollBars.Both;
this.passwordsListTextBox.Size = new System.Drawing.Size(282, 174);
this.passwordsListTextBox.TabIndex = 11;
this.passwordsListTextBox.WordWrap = false;
this.passwordsListTextBox.TextChanged += new System.EventHandler(this.PasswordsListTextBox_TextChanged);
//
// clearPasswordsListButton
//
this.clearPasswordsListButton.AutoSize = true;
this.clearPasswordsListButton.Location = new System.Drawing.Point(81, 132);
this.clearPasswordsListButton.Name = "clearPasswordsListButton";
this.clearPasswordsListButton.Size = new System.Drawing.Size(66, 23);
this.clearPasswordsListButton.TabIndex = 4;
this.clearPasswordsListButton.Text = "Clear";
this.clearPasswordsListButton.UseVisualStyleBackColor = true;
this.clearPasswordsListButton.Click += new System.EventHandler(this.ClearPasswordsListButton_Click);
//
// lowercaseCheckBox
//
this.lowercaseCheckBox.AutoSize = true;
this.lowercaseCheckBox.Checked = true;
this.lowercaseCheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
this.lowercaseCheckBox.Location = new System.Drawing.Point(55, 21);
this.lowercaseCheckBox.Name = "lowercaseCheckBox";
this.lowercaseCheckBox.Size = new System.Drawing.Size(41, 17);
this.lowercaseCheckBox.TabIndex = 7;
this.lowercaseCheckBox.Text = "a-z";
this.lowercaseCheckBox.UseVisualStyleBackColor = true;
this.lowercaseCheckBox.CheckedChanged += new System.EventHandler(this.PasswordValidation);
this.lowercaseCheckBox.Click += new System.EventHandler(this.LowercaseCheckBox_Click);
//
// uppercaseCheckBox
//
this.uppercaseCheckBox.AutoSize = true;
this.uppercaseCheckBox.Checked = true;
this.uppercaseCheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
this.uppercaseCheckBox.Location = new System.Drawing.Point(6, 21);
this.uppercaseCheckBox.Name = "uppercaseCheckBox";
this.uppercaseCheckBox.Size = new System.Drawing.Size(43, 17);
this.uppercaseCheckBox.TabIndex = 8;
this.uppercaseCheckBox.Text = "A-Z";
this.uppercaseCheckBox.UseVisualStyleBackColor = true;
this.uppercaseCheckBox.CheckedChanged += new System.EventHandler(this.PasswordValidation);
this.uppercaseCheckBox.Click += new System.EventHandler(this.UppercaseCheckBox_Click);
//
// numericCheckBox
//
this.numericCheckBox.AutoSize = true;
this.numericCheckBox.Checked = true;
this.numericCheckBox.CheckState = System.Windows.Forms.CheckState.Checked;
this.numericCheckBox.Location = new System.Drawing.Point(102, 21);
this.numericCheckBox.Name = "numericCheckBox";
this.numericCheckBox.Size = new System.Drawing.Size(42, 17);
this.numericCheckBox.TabIndex = 9;
this.numericCheckBox.Text = "0-9";
this.numericCheckBox.UseVisualStyleBackColor = true;
this.numericCheckBox.CheckedChanged += new System.EventHandler(this.PasswordValidation);
this.numericCheckBox.Click += new System.EventHandler(this.NumericCheckBox_Click);
//
// passwordLengthLabel
//
this.passwordLengthLabel.AutoSize = true;
this.passwordLengthLabel.Location = new System.Drawing.Point(6, 9);
this.passwordLengthLabel.Name = "passwordLengthLabel";
this.passwordLengthLabel.Size = new System.Drawing.Size(130, 13);
this.passwordLengthLabel.TabIndex = 8;
this.passwordLengthLabel.Text = "Password length [4-256]";
//
// numberOfStringsLabel
//
this.numberOfStringsLabel.AutoSize = true;
this.numberOfStringsLabel.Location = new System.Drawing.Point(6, 37);
this.numberOfStringsLabel.Name = "numberOfStringsLabel";
this.numberOfStringsLabel.Size = new System.Drawing.Size(143, 13);
this.numberOfStringsLabel.TabIndex = 9;
this.numberOfStringsLabel.Text = "Number of strings [1-1000]";
//
// passwordLengthTextBox
//
this.passwordLengthTextBox.Location = new System.Drawing.Point(166, 6);
this.passwordLengthTextBox.Name = "passwordLengthTextBox";
this.passwordLengthTextBox.Size = new System.Drawing.Size(125, 22);
this.passwordLengthTextBox.TabIndex = 5;
this.passwordLengthTextBox.Text = "40";
this.passwordLengthTextBox.TextChanged += new System.EventHandler(this.PasswordValidation);
this.passwordLengthTextBox.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.PasswordLengthTextBox_KeyPress);
//
// numberOfStringsTextBox
//
this.numberOfStringsTextBox.Location = new System.Drawing.Point(166, 34);
this.numberOfStringsTextBox.Name = "numberOfStringsTextBox";
this.numberOfStringsTextBox.Size = new System.Drawing.Size(125, 22);
this.numberOfStringsTextBox.TabIndex = 6;
this.numberOfStringsTextBox.Text = "10";
this.numberOfStringsTextBox.TextChanged += new System.EventHandler(this.PasswordValidation);
this.numberOfStringsTextBox.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.PasswordLengthTextBox_KeyPress);
//
// copyAllButton
//
this.copyAllButton.AutoSize = true;
this.copyAllButton.Location = new System.Drawing.Point(225, 132);
this.copyAllButton.Name = "copyAllButton";
this.copyAllButton.Size = new System.Drawing.Size(66, 23);
this.copyAllButton.TabIndex = 3;
this.copyAllButton.Text = "Copy all";
this.copyAllButton.UseVisualStyleBackColor = true;
this.copyAllButton.Click += new System.EventHandler(this.CopyAllButton_Click);
this.copyAllButton.MouseEnter += new System.EventHandler(this.CopyAllButton_MouseEnter);
//
// copyLastButton
//
this.copyLastButton.AutoSize = true;
this.copyLastButton.Location = new System.Drawing.Point(153, 132);
this.copyLastButton.Name = "copyLastButton";
this.copyLastButton.Size = new System.Drawing.Size(66, 23);
this.copyLastButton.TabIndex = 2;
this.copyLastButton.Text = "Copy last";
this.copyLastButton.UseVisualStyleBackColor = true;
this.copyLastButton.Click += new System.EventHandler(this.CopyLastButton_Click);
this.copyLastButton.MouseEnter += new System.EventHandler(this.CopyLastButton_MouseEnter);
//
// passwordGeneratorToolTip
//
this.passwordGeneratorToolTip.AutoPopDelay = 1000;
this.passwordGeneratorToolTip.InitialDelay = 1;
this.passwordGeneratorToolTip.ReshowDelay = 100;
//
// specialCheckBox
//
this.specialCheckBox.AutoSize = true;
this.specialCheckBox.Location = new System.Drawing.Point(150, 21);
this.specialCheckBox.Name = "specialCheckBox";
this.specialCheckBox.Size = new System.Drawing.Size(117, 17);
this.specialCheckBox.TabIndex = 13;
this.specialCheckBox.Text = "Special characters";
this.passwordGeneratorToolTip.SetToolTip(this.specialCheckBox, "/ \\ ! ? @ # & $ % №");
this.specialCheckBox.UseVisualStyleBackColor = true;
this.specialCheckBox.CheckedChanged += new System.EventHandler(this.PasswordValidation);
this.specialCheckBox.Click += new System.EventHandler(this.SpecialCheckBox_Click);
this.specialCheckBox.MouseEnter += new System.EventHandler(this.SpecialCheckBox_MouseEnter);
//
// additionalCheckBox
//
this.additionalCheckBox.AutoSize = true;
this.additionalCheckBox.Location = new System.Drawing.Point(80, 41);
this.additionalCheckBox.Name = "additionalCheckBox";
this.additionalCheckBox.Size = new System.Drawing.Size(80, 17);
this.additionalCheckBox.TabIndex = 13;
this.additionalCheckBox.Text = "Additional";
this.passwordGeneratorToolTip.SetToolTip(this.additionalCheckBox, "\" ; _ - . = * + : ^ , | \'");
this.additionalCheckBox.UseVisualStyleBackColor = true;
this.additionalCheckBox.CheckedChanged += new System.EventHandler(this.PasswordValidation);
this.additionalCheckBox.Click += new System.EventHandler(this.additionalCheckBox_Click);
this.additionalCheckBox.MouseEnter += new System.EventHandler(this.SpecialCheckBox_MouseEnter);
//
// bracketsCheckBox
//
this.bracketsCheckBox.AutoSize = true;
this.bracketsCheckBox.Location = new System.Drawing.Point(6, 41);
this.bracketsCheckBox.Name = "bracketsCheckBox";
this.bracketsCheckBox.Size = new System.Drawing.Size(68, 17);
this.bracketsCheckBox.TabIndex = 13;
this.bracketsCheckBox.Text = "Brackets";
this.passwordGeneratorToolTip.SetToolTip(this.bracketsCheckBox, "( ) { } [ ] < >");
this.bracketsCheckBox.UseVisualStyleBackColor = true;
this.bracketsCheckBox.CheckedChanged += new System.EventHandler(this.PasswordValidation);
this.bracketsCheckBox.Click += new System.EventHandler(this.BracketsCheckBox_Click);
this.bracketsCheckBox.MouseEnter += new System.EventHandler(this.SpecialCheckBox_MouseEnter);
//
// specialGroupBox
//
this.specialGroupBox.Controls.Add(this.bracketsCheckBox);
this.specialGroupBox.Controls.Add(this.additionalCheckBox);
this.specialGroupBox.Controls.Add(this.uppercaseCheckBox);
this.specialGroupBox.Controls.Add(this.lowercaseCheckBox);
this.specialGroupBox.Controls.Add(this.numericCheckBox);
this.specialGroupBox.Controls.Add(this.specialCheckBox);
this.specialGroupBox.Location = new System.Drawing.Point(9, 62);
this.specialGroupBox.Name = "specialGroupBox";
this.specialGroupBox.Size = new System.Drawing.Size(282, 64);
this.specialGroupBox.TabIndex = 12;
this.specialGroupBox.TabStop = false;
this.specialGroupBox.Text = "Use characters";
//
// PasswordGeneratorFrom
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(298, 344);
this.Controls.Add(this.specialGroupBox);
this.Controls.Add(this.copyLastButton);
this.Controls.Add(this.copyAllButton);
this.Controls.Add(this.numberOfStringsTextBox);
this.Controls.Add(this.passwordLengthTextBox);
this.Controls.Add(this.numberOfStringsLabel);
this.Controls.Add(this.passwordLengthLabel);
this.Controls.Add(this.clearPasswordsListButton);
this.Controls.Add(this.passwordsListTextBox);
this.Controls.Add(this.generateButton);
this.Font = new System.Drawing.Font("Segoe UI", 8.25F);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.MaximizeBox = false;
this.Name = "PasswordGeneratorFrom";
this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
this.Text = "Password Generator";
this.Deactivate += new System.EventHandler(this.PasswordGeneratorFrom_Deactivate);
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.PasswordGeneratorFrom_FormClosing);
this.Load += new System.EventHandler(this.PasswordGeneratorFrom_Load);
this.specialGroupBox.ResumeLayout(false);
this.specialGroupBox.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Button generateButton;
private System.Windows.Forms.TextBox passwordsListTextBox;
private System.Windows.Forms.Button clearPasswordsListButton;
private System.Windows.Forms.CheckBox lowercaseCheckBox;
private System.Windows.Forms.CheckBox uppercaseCheckBox;
private System.Windows.Forms.CheckBox numericCheckBox;
private System.Windows.Forms.Label passwordLengthLabel;
private System.Windows.Forms.Label numberOfStringsLabel;
private System.Windows.Forms.TextBox passwordLengthTextBox;
private System.Windows.Forms.TextBox numberOfStringsTextBox;
private System.Windows.Forms.Button copyAllButton;
private System.Windows.Forms.Button copyLastButton;
private System.Windows.Forms.ToolTip passwordGeneratorToolTip;
private System.Windows.Forms.GroupBox specialGroupBox;
private System.Windows.Forms.CheckBox specialCheckBox;
private System.Windows.Forms.CheckBox additionalCheckBox;
private System.Windows.Forms.CheckBox bracketsCheckBox;
}
}

View file

@ -0,0 +1,239 @@
using Crypto_Notepad.Properties;
using PasswordGenerator;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
namespace Crypto_Notepad
{
public partial class PasswordGeneratorFrom : Form
{
Settings settings = Settings.Default;
public PasswordGeneratorFrom()
{
InitializeComponent();
}
#region Methods
private IEnumerable<string> GeneratePasswordGroup()
{
IPassword pwd;
bool includeSpecial = true;
string main = @"/\!?@#&$%№";
string additional = "\";_-.=*+:^,|'";
string brackets = "(){}[]<>";
if (!specialCheckBox.Checked)
{
main = "";
}
if (!additionalCheckBox.Checked)
{
additional = "";
}
if (!bracketsCheckBox.Checked)
{
brackets = "";
}
if (!specialCheckBox.Checked & !additionalCheckBox.Checked & !bracketsCheckBox.Checked)
{
includeSpecial = false;
}
if (includeSpecial)
{
pwd = new Password(
includeLowercase: lowercaseCheckBox.Checked,
includeUppercase: uppercaseCheckBox.Checked,
includeNumeric: numericCheckBox.Checked,
includeSpecial: false,
passwordLength: int.Parse(passwordLengthTextBox.Text)).IncludeSpecial(main + additional + brackets);
}
else
{
pwd = new Password(
includeLowercase: lowercaseCheckBox.Checked,
includeUppercase: uppercaseCheckBox.Checked,
includeNumeric: numericCheckBox.Checked,
includeSpecial: false,
passwordLength: int.Parse(passwordLengthTextBox.Text));
}
return pwd.NextGroup(Convert.ToInt32(numberOfStringsTextBox.Text));
}
#endregion
#region Event Handlers
private void GenerateButton_Click(object sender, EventArgs e)
{
passwordsListTextBox.AppendLine(string.Join(Environment.NewLine, GeneratePasswordGroup().ToArray()));
}
private void ClearPasswordsListButton_Click(object sender, EventArgs e)
{
passwordsListTextBox.Clear();
}
private void PasswordLengthTextBox_KeyPress(object sender, KeyPressEventArgs e)
{
if (!char.IsControl(e.KeyChar) & !char.IsDigit(e.KeyChar))
{
e.Handled = true;
}
}
private void PasswordGeneratorFrom_Load(object sender, EventArgs e)
{
CenterToParent();
lowercaseCheckBox.Checked = settings.passwordGeneratorLowercase;
uppercaseCheckBox.Checked = settings.passwordGeneratorUppercase;
numericCheckBox.Checked = settings.passwordGeneratorNumeric;
specialCheckBox.Checked = settings.passwordGeneratorSpecial;
bracketsCheckBox.Checked = settings.passwordGeneratorBrackets;
additionalCheckBox.Checked = settings.passwordGeneratorAdditional;
passwordLengthTextBox.Text = settings.passwordGeneratorLength;
numberOfStringsTextBox.Text = settings.passwordGeneratorNumberOfStrings;
passwordsListTextBox.Text = string.Join(Environment.NewLine, GeneratePasswordGroup().ToArray());
}
private void LowercaseCheckBox_Click(object sender, EventArgs e)
{
settings.passwordGeneratorLowercase = lowercaseCheckBox.Checked;
settings.Save();
}
private void UppercaseCheckBox_Click(object sender, EventArgs e)
{
settings.passwordGeneratorUppercase = uppercaseCheckBox.Checked;
settings.Save();
}
private void NumericCheckBox_Click(object sender, EventArgs e)
{
settings.passwordGeneratorNumeric = numericCheckBox.Checked;
settings.Save();
}
private void SpecialCheckBox_Click(object sender, EventArgs e)
{
settings.passwordGeneratorSpecial = specialCheckBox.Checked;
settings.Save();
}
private void PasswordGeneratorFrom_FormClosing(object sender, FormClosingEventArgs e)
{
if (!settings.passwordGeneratorLowercase & !settings.passwordGeneratorUppercase
& !settings.passwordGeneratorNumeric & !settings.passwordGeneratorSpecial)
{
settings.passwordGeneratorLowercase = true;
}
try
{
if (Enumerable.Range(4, 256).Contains(int.Parse(passwordLengthTextBox.Text)))
{
settings.passwordGeneratorLength = passwordLengthTextBox.Text;
}
if (Enumerable.Range(1, 1000).Contains(int.Parse(numberOfStringsTextBox.Text)))
{
settings.passwordGeneratorNumberOfStrings = numberOfStringsTextBox.Text;
}
}
catch
{
}
settings.Save();
}
private void PasswordValidation(object sender, EventArgs e)
{
try
{
if (!Enumerable.Range(1, 1000).Contains(int.Parse(numberOfStringsTextBox.Text)) |
!Enumerable.Range(4, 256).Contains(int.Parse(passwordLengthTextBox.Text)) |
!lowercaseCheckBox.Checked &
!uppercaseCheckBox.Checked &
!numericCheckBox.Checked &
!specialCheckBox.Checked &
!additionalCheckBox.Checked &
!bracketsCheckBox.Checked |
string.IsNullOrWhiteSpace(numberOfStringsTextBox.Text.Trim('0')))
{
generateButton.Enabled = false;
}
else
{
generateButton.Enabled = true;
}
}
catch
{
generateButton.Enabled = false;
}
}
private void CopyAllButton_Click(object sender, EventArgs e)
{
Clipboard.SetText(passwordsListTextBox.Text);
passwordGeneratorToolTip.SetToolTip(copyAllButton, "Copied");
}
private void CopyLastButton_Click(object sender, EventArgs e)
{
Clipboard.SetText(passwordsListTextBox.Lines[passwordsListTextBox.Lines.Length - 1]);
passwordGeneratorToolTip.SetToolTip(copyLastButton, "Copied");
}
private void PasswordsListTextBox_TextChanged(object sender, EventArgs e)
{
if (string.IsNullOrEmpty(passwordsListTextBox.Text))
{
copyLastButton.Enabled = false;
copyAllButton.Enabled = false;
}
else
{
copyLastButton.Enabled = true;
copyAllButton.Enabled = true;
}
}
private void CopyLastButton_MouseEnter(object sender, EventArgs e)
{
passwordGeneratorToolTip.AutoPopDelay = 1000;
passwordGeneratorToolTip.SetToolTip(copyLastButton, null);
}
private void CopyAllButton_MouseEnter(object sender, EventArgs e)
{
passwordGeneratorToolTip.AutoPopDelay = 1000;
passwordGeneratorToolTip.SetToolTip(copyAllButton, null);
}
private void PasswordGeneratorFrom_Deactivate(object sender, EventArgs e)
{
PasswordGeneratorFrom_FormClosing(null, null);
}
#endregion
private void SpecialCheckBox_MouseEnter(object sender, EventArgs e)
{
passwordGeneratorToolTip.AutoPopDelay = 10000;
}
private void BracketsCheckBox_Click(object sender, EventArgs e)
{
settings.passwordGeneratorBrackets = bracketsCheckBox.Checked;
settings.Save();
}
private void additionalCheckBox_Click(object sender, EventArgs e)
{
settings.passwordGeneratorAdditional = additionalCheckBox.Checked;
settings.Save();
}
}
}

View file

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

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,657 @@
using System;
using System.Drawing;
using System.Linq;
using System.Reflection;
using System.Windows.Forms;
namespace Crypto_Notepad
{
public partial class SettingsForm : Form
{
Properties.Settings settings = Properties.Settings.Default;
public SettingsForm()
{
InitializeComponent();
}
#region Methods
private void LoadSettings()
{
editorFontColor.BackColor = settings.editorForeColor;
editorBackColor.BackColor = settings.editorBackColor;
editorInsertKeyComboBox.Text = settings.insertKey;
if (settings.clipboardClearTime != "")
{
clearClipboardTextBox.Text = settings.clipboardClearTime.Remove(settings.clipboardClearTime.Length - 1);
}
editorPaddingLeftTextBox.Text = settings.editorPaddingLeft;
editorOpenLinksWithComboBox.Text = settings.openLinks;
editorBorderComboBox.Text = settings.editorBorder;
fontDialog.Font = settings.editorFont;
editorFontLabel.Text = settings.editorFont.Name.ToString() + " " + settings.editorFont.Size.ToString();
lockTimeoutTextBox.Text = settings.lockTimeout;
autoLockOnMinimizeCheckBox.Checked = settings.autoLock;
autoCheckUpdatesCheckBox.Checked = settings.autoCheckUpdate;
mainMenuCheckBox.Checked = settings.mainMenuVisible;
menuIconsCheckBox.Checked = settings.menuIcons;
shortcutKeysCheckBox.Checked = settings.shortcutKeys;
minimizeToTrayCheckBox.Checked = settings.minimizeToTray;
closeToTrayCheckBox.Checked = settings.closeToTray;
singleInstanceCheckBox.Checked = settings.singleInstance;
clearClipboardCheckBox.Checked = settings.clearClipboardAtClose;
trayMenuCheckBox.Checked = settings.trayMenu;
integrateCheckBox.Checked = settings.explorerIntegrate;
associateCheckBox.Checked = settings.explorerAssociate;
sendToCheckBox.Checked = settings.explorerSendTo;
hashAlgorithmComboBox.Text = settings.HashAlgorithm;
keySizeComboBox.Text = settings.KeySize;
passwordIterationsTextBox.Text = settings.PasswordIterations;
openTxtUnencryptedCheckBox.Checked = settings.openTxtUnencrypted;
searchBackColor.BackColor = settings.searchPanelBackColor;
searchFontColor.BackColor = settings.searchPanelForeColor;
searchBorderComboBox.Text = settings.searchPanelBorder;
toolbarBackColor.BackColor = settings.toolbarBackColor;
toolbarBorderCheckBox.Checked = settings.toolbarBorder;
toolbarVisibleCheckBox.Checked = settings.toolbarVisible;
toolbarOldIconsCheckBox.Checked = settings.oldToolbarIcons;
toolbarCloseButtonCheckBox.Checked = settings.toolbarCloseButton;
statusPanelBackColor.BackColor = settings.statusPanelBackColor;
statusPanelFontColor.BackColor = settings.statusPanelFontColor;
statusPanelVisibleCheckBox.Checked = settings.statusPanelVisible;
statusPanelLengthCheckBox.Checked = settings.statusPanelLength;
statusPanelLinesCheckBox.Checked = settings.statusPanelLines;
statusPanelModifiedCheckBox.Checked = settings.statusPanelModified;
statusPanelSizeCheckBox.Checked = settings.statusPanelSize;
statusPanelReadonlyCheckBox.Checked = settings.statusPanelReadonly;
statusPanelWordwrapCheckBox.Checked = settings.statusPanelWordWrap;
statusPanelPasteboardCheckBox.Checked = settings.statusPanelPasteboard;
statusPanelClipboardCheckBox.Checked = settings.statusPanelClipboard;
encryptionHintLabel.Visible = settings.encryptionHint;
}
#endregion
#region Event Handlers
private void SettingsForm_Load(object sender, EventArgs e)
{
string custom_colors = settings.customColor;
int[] array_of_colors = custom_colors.Split(';').Select(n => Convert.ToInt32(n)).ToArray();
colorDialog.CustomColors = array_of_colors;
settingsTabControl.Appearance = TabAppearance.FlatButtons;
settingsTabControl.ItemSize = new Size(0, 1);
settingsTabControl.SizeMode = TabSizeMode.Fixed;
settingsNavigation.SelectedIndex = 0;
TopMost = settings.alwaysOnTop;
settingsTabControl.TabStop = false;
LoadSettings();
}
private void EditorPaddingLeftTextBox_Click(object sender, EventArgs e)
{
editorPaddingLeftTextBox.SelectAll();
}
private void SettingsForm_FormClosed(object sender, FormClosedEventArgs e)
{
MainForm main = Owner as MainForm;
string customColor = string.Join(";", colorDialog.CustomColors);
settings.customColor = customColor;
if (string.IsNullOrWhiteSpace(settings.PasswordIterations))
{
settings.PasswordIterations = "1";
}
if (string.IsNullOrWhiteSpace(editorPaddingLeftTextBox.Text))
{
settings.editorPaddingLeft = "0";
main.richTextBox.SetInnerMargins(Convert.ToInt32(settings.editorPaddingLeft), 0, 0, 0);
}
settings.Save();
}
private void EditorPaddingLeftTextBox_KeyPress(object sender, KeyPressEventArgs e)
{
if (!char.IsControl(e.KeyChar) && !char.IsDigit(e.KeyChar))
{
e.Handled = true;
}
}
private void PasswordIterationsTextBox_KeyPress(object sender, KeyPressEventArgs e)
{
if (!char.IsControl(e.KeyChar) && !char.IsDigit(e.KeyChar))
{
e.Handled = true;
}
}
private void LockTimeoutTextBox_KeyPress(object sender, KeyPressEventArgs e)
{
if (!char.IsControl(e.KeyChar) && !char.IsDigit(e.KeyChar))
{
e.Handled = true;
}
}
#endregion
#region Settings Events
private void EncryptionHintLabel_MouseClick(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Left)
{
encryptionHintLabel.Visible = false;
settings.encryptionHint = false;
}
}
private void EditorFontColor_Click(object sender, EventArgs e)
{
colorDialog.Color = editorFontColor.BackColor;
using (new CenterWinDialog(this))
{
if (colorDialog.ShowDialog() == DialogResult.OK)
{
MainForm main = Owner as MainForm;
main.richTextBox.ForeColor = colorDialog.Color;
main.richTextBox.SetInnerMargins(Convert.ToInt32(settings.editorPaddingLeft), 0, 0, 0);
settings.editorForeColor = colorDialog.Color;
editorFontColor.BackColor = colorDialog.Color;
}
}
}
private void EditorBackColor_Click(object sender, EventArgs e)
{
colorDialog.Color = editorBackColor.BackColor;
using (new CenterWinDialog(this))
{
if (colorDialog.ShowDialog() == DialogResult.OK)
{
MainForm main = Owner as MainForm;
main.richTextBox.BackColor = colorDialog.Color;
main.BackColor = colorDialog.Color;
settings.editorBackColor = colorDialog.Color;
editorBackColor.BackColor = colorDialog.Color;
}
}
}
private void SettingsNavigation_Click(object sender, EventArgs e)
{
switch (settingsNavigation.SelectedIndex)
{
case 0:
settingsTabControl.SelectedTab = generalTabPage;
break;
case 1:
settingsTabControl.SelectedTab = interfaceTabPage;
break;
case 2:
settingsTabControl.SelectedTab = editorTabPage;
break;
case 3:
settingsTabControl.SelectedTab = encryptionTabPage;
break;
}
}
private void SettingsTabControl_SelectedIndexChanged(object sender, EventArgs e)
{
settingsTabControl.Focus();
}
private void ToolbarVisibleCheckBox_Click(object sender, EventArgs e)
{
MainForm main = Owner as MainForm;
main.toolbarPanel.Visible = toolbarVisibleCheckBox.Checked;
main.richTextBox.SetInnerMargins(Convert.ToInt32(settings.editorPaddingLeft), 0, 0, 0);
settings.toolbarVisible = toolbarVisibleCheckBox.Checked;
}
private void AssociateCheckBox_Click(object sender, EventArgs e)
{
if (associateCheckBox.Checked)
{
Methods.AssociateExtension(Assembly.GetEntryAssembly().Location, "cnp");
}
else
{
Methods.DissociateExtension("cnp");
}
settings.explorerAssociate = associateCheckBox.Checked;
}
private void IntegrateCheckBox_Click(object sender, EventArgs e)
{
if (integrateCheckBox.Checked)
{
Methods.MenuIntegrate("enable");
}
else
{
Methods.MenuIntegrate("disable");
}
settings.explorerIntegrate = integrateCheckBox.Checked;
}
private void EditorPaddingLeftTextBox_TextChanged(object sender, EventArgs e)
{
MainForm main = Owner as MainForm;
if (editorPaddingLeftTextBox.Text.Length >= 1)
{
if (settings.editorPaddingLeft != editorPaddingLeftTextBox.Text)
{
main.richTextBox.SetInnerMargins(Convert.ToInt32(editorPaddingLeftTextBox.Text), 0, 0, 0);
main.richTextBox.Refresh();
settings.editorPaddingLeft = editorPaddingLeftTextBox.Text;
}
}
}
private void LockTimeoutTextBox_TextChanged(object sender, EventArgs e)
{
if (lockTimeoutTextBox.Text != settings.lockTimeout)
{
settings.lockTimeout = lockTimeoutTextBox.Text;
}
if (string.IsNullOrEmpty(lockTimeoutTextBox.Text) | lockTimeoutTextBox.Text == "0")
{
MainForm main = Owner as MainForm;
main.lockTimer.Enabled = false;
}
}
private void SendToCheckBox_Click(object sender, EventArgs e)
{
if (sendToCheckBox.Checked)
{
Methods.SendToShortcut();
}
else
{
string shortcutPath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + @"\Microsoft\Windows\SendTo\Crypto Notepad.lnk";
if (System.IO.File.Exists(shortcutPath))
{
System.IO.File.Delete(shortcutPath);
}
}
settings.explorerSendTo = sendToCheckBox.Checked;
}
private void EditorInsertKeyComboBox_DropDownClosed(object sender, EventArgs e)
{
MainForm main = Owner as MainForm;
if (settings.insertKey != editorInsertKeyComboBox.Text)
{
if (editorInsertKeyComboBox.Text == "Disable")
{
main.insertMainMenu.ShortcutKeys = Keys.Insert;
}
else
{
main.insertMainMenu.ShortcutKeys = Keys.None;
}
settings.insertKey = editorInsertKeyComboBox.Text;
}
}
private void MenuIconsCheckBox_Click(object sender, EventArgs e)
{
MainForm main = Owner as MainForm;
settings.menuIcons = menuIconsCheckBox.Checked;
main.MenuIcons(settings.menuIcons);
}
private void EditorFontLabel_Click(object sender, EventArgs e)
{
using (new CenterWinDialog(this))
{
if (fontDialog.ShowDialog() == DialogResult.OK)
{
MainForm main = Owner as MainForm;
main.richTextBox.Font = fontDialog.Font;
main.richTextBox.SetInnerMargins(Convert.ToInt32(settings.editorPaddingLeft), 0, 0, 0);
settings.editorFont = fontDialog.Font;
editorFontLabel.Text = settings.editorFont.Name.ToString() + " " + settings.editorFont.Size.ToString();
}
}
}
private void KeySizeComboBox_DropDownClosed(object sender, EventArgs e)
{
if (keySizeComboBox.Text != settings.KeySize)
{
settings.KeySize = keySizeComboBox.Text;
}
}
private void HashAlgorithmComboBox_DropDownClosed(object sender, EventArgs e)
{
if (hashAlgorithmComboBox.Text != settings.HashAlgorithm)
{
settings.HashAlgorithm = hashAlgorithmComboBox.Text;
}
}
private void FontDialog_Apply(object sender, EventArgs e)
{
MainForm main = Owner as MainForm;
main.richTextBox.Font = fontDialog.Font;
main.richTextBox.SetInnerMargins(Convert.ToInt32(settings.editorPaddingLeft), 0, 0, 0);
settings.editorFont = fontDialog.Font;
}
private void StatusPanelVisibleCheckBox_Click(object sender, EventArgs e)
{
Application.DoEvents();
MainForm main = Owner as MainForm;
main.statusPanel.Visible = statusPanelVisibleCheckBox.Checked;
settings.statusPanelVisible = statusPanelVisibleCheckBox.Checked;
}
private void StatusPanelBackColor_Click(object sender, EventArgs e)
{
colorDialog.Color = statusPanelBackColor.BackColor;
using (new CenterWinDialog(this))
{
if (colorDialog.ShowDialog() == DialogResult.OK)
{
MainForm main = Owner as MainForm;
main.statusPanel.BackColor = colorDialog.Color;
statusPanelBackColor.BackColor = colorDialog.Color;
settings.statusPanelBackColor = colorDialog.Color;
}
}
}
private void StatusPanelFontColor_Click(object sender, EventArgs e)
{
colorDialog.Color = statusPanelFontColor.BackColor;
using (new CenterWinDialog(this))
{
if (colorDialog.ShowDialog() == DialogResult.OK)
{
MainForm main = Owner as MainForm;
main.statusPanel.ForeColor = colorDialog.Color;
main.richTextBox.SetInnerMargins(Convert.ToInt32(settings.editorPaddingLeft), 0, 0, 0);
statusPanelFontColor.BackColor = colorDialog.Color;
settings.statusPanelFontColor = colorDialog.Color;
}
}
}
private void ToolbarBackColor_Click(object sender, EventArgs e)
{
colorDialog.Color = toolbarBackColor.BackColor;
using (new CenterWinDialog(this))
{
if (colorDialog.ShowDialog() == DialogResult.OK)
{
MainForm main = Owner as MainForm;
main.toolbarPanel.BackColor = colorDialog.Color;
settings.toolbarBackColor = colorDialog.Color;
toolbarBackColor.BackColor = colorDialog.Color;
}
}
}
private void ToolbarBorderCheckBox_Click(object sender, EventArgs e)
{
MainForm main = Owner as MainForm;
if (toolbarBorderCheckBox.Checked)
{
main.toolbarPanel.BorderStyle = BorderStyle.FixedSingle;
}
else
{
main.toolbarPanel.BorderStyle = BorderStyle.None;
}
settings.toolbarBorder = toolbarBorderCheckBox.Checked;
}
private void SearchBackColor_Click(object sender, EventArgs e)
{
colorDialog.Color = searchBackColor.BackColor;
using (new CenterWinDialog(this))
{
if (colorDialog.ShowDialog() == DialogResult.OK)
{
MainForm main = Owner as MainForm;
main.searchPanel.BackColor = colorDialog.Color;
main.searchTextBox.BackColor = colorDialog.Color;
settings.searchPanelBackColor = colorDialog.Color;
searchBackColor.BackColor = colorDialog.Color;
}
}
}
private void SearchFontColor_Click(object sender, EventArgs e)
{
colorDialog.Color = searchFontColor.BackColor;
using (new CenterWinDialog(this))
{
if (colorDialog.ShowDialog() == DialogResult.OK)
{
MainForm main = Owner as MainForm;
main.searchTextBox.ForeColor = colorDialog.Color;
main.searchCaseSensitiveCheckBox.ForeColor = colorDialog.Color;
main.searchWholeWordCheckBox.ForeColor = colorDialog.Color;
main.searchFindNextButton.ForeColor = colorDialog.Color;
main.searchCloseButton.ForeColor = colorDialog.Color;
settings.searchPanelForeColor = colorDialog.Color;
searchFontColor.BackColor = colorDialog.Color;
}
}
}
private void MainMenuCheckBox_Click(object sender, EventArgs e)
{
MainForm main = Owner as MainForm;
if (mainMenuCheckBox.Checked)
{
main.mainMenu.Visible = true;
}
else
{
main.mainMenu.Visible = false;
}
settings.mainMenuVisible = mainMenuCheckBox.Checked;
}
private void ToolbarOldIconsCheckBox_Click(object sender, EventArgs e)
{
settings.oldToolbarIcons = toolbarOldIconsCheckBox.Checked;
MainForm main = Owner as MainForm;
main.ToolbarIcons(settings.oldToolbarIcons);
}
private void EditorOpenLinksWithComboBox_DropDownClosed(object sender, EventArgs e)
{
if (settings.openLinks != editorOpenLinksWithComboBox.Text)
{
settings.openLinks = editorOpenLinksWithComboBox.Text;
}
}
private void AutoLockOnMinimizeCheckBox_Click(object sender, EventArgs e)
{
settings.autoLock = autoLockOnMinimizeCheckBox.Checked;
}
private void AutoCheckUpdatesCheckBox_Click(object sender, EventArgs e)
{
settings.autoCheckUpdate = autoCheckUpdatesCheckBox.Checked;
}
private void PasswordIterationsTextBox_TextChanged(object sender, EventArgs e)
{
if (passwordIterationsTextBox.Text != settings.PasswordIterations)
{
settings.PasswordIterations = passwordIterationsTextBox.Text;
}
}
private void MinimizeToTrayCheckBox_Click(object sender, EventArgs e)
{
MainForm main = Owner as MainForm;
if (closeToTrayCheckBox.Checked == false & minimizeToTrayCheckBox.Checked == false & trayMenuCheckBox.Checked == false)
{
main.trayIcon.Visible = false;
}
if (minimizeToTrayCheckBox.Checked == true)
{
main.trayIcon.Visible = true;
}
settings.minimizeToTray = minimizeToTrayCheckBox.Checked;
}
private void CloseToTrayCheckBox_Click(object sender, EventArgs e)
{
MainForm main = Owner as MainForm;
if (closeToTrayCheckBox.Checked == false & minimizeToTrayCheckBox.Checked == false & trayMenuCheckBox.Checked == false)
{
main.trayIcon.Visible = false;
}
if (closeToTrayCheckBox.Checked == true)
{
main.trayIcon.Visible = true;
}
settings.closeToTray = closeToTrayCheckBox.Checked;
}
private void EditorBorderComboBox_DropDownClosed(object sender, EventArgs e)
{
MainForm main = Owner as MainForm;
main.richTextBoxPanel.BorderStyle = (BorderStyle)Enum.Parse(typeof(BorderStyle), editorBorderComboBox.Text);
settings.editorBorder = editorBorderComboBox.Text;
}
private void SearchBorderComboBox_DropDownClosed(object sender, EventArgs e)
{
MainForm main = Owner as MainForm;
main.searchPanel.CellBorderStyle = (TableLayoutPanelCellBorderStyle)Enum.Parse(typeof(TableLayoutPanelCellBorderStyle), searchBorderComboBox.Text);
settings.searchPanelBorder = searchBorderComboBox.Text;
}
private void ToolbarCloseButtonCheckBox_Click(object sender, EventArgs e)
{
MainForm main = Owner as MainForm;
main.closeToolbarButton.Visible = toolbarCloseButtonCheckBox.Checked;
settings.toolbarCloseButton = toolbarCloseButtonCheckBox.Checked;
}
private void SingleInstanceCheckBox_Click(object sender, EventArgs e)
{
settings.singleInstance = singleInstanceCheckBox.Checked;
}
private void StatusPanelLengthCheckBox_Click(object sender, EventArgs e)
{
MainForm main = Owner as MainForm;
main.statusPanelLengthLabel.Visible = statusPanelLengthCheckBox.Checked;
settings.statusPanelLength = statusPanelLengthCheckBox.Checked;
main.StatusPanelTextInfo();
}
private void StatusPanelLinesCheckBox_Click(object sender, EventArgs e)
{
MainForm main = Owner as MainForm;
main.statusPanelLinesLabel.Visible = statusPanelLinesCheckBox.Checked;
settings.statusPanelLines = statusPanelLinesCheckBox.Checked;
main.StatusPanelTextInfo();
}
private void StatusPanelModifiedCheckBox_Click(object sender, EventArgs e)
{
MainForm main = Owner as MainForm;
main.statusPanelModifiedLabel.Visible = statusPanelModifiedCheckBox.Checked;
settings.statusPanelModified = statusPanelModifiedCheckBox.Checked;
main.StatusPanelFileInfo();
}
private void StatusPanelSizeCheckBox_Click(object sender, EventArgs e)
{
MainForm main = Owner as MainForm;
main.statusPanelSizeLabel.Visible = statusPanelSizeCheckBox.Checked;
settings.statusPanelSize = statusPanelSizeCheckBox.Checked;
main.StatusPanelFileInfo();
}
#endregion
private void StatusPanelReadonlyCheckBox_Click(object sender, EventArgs e)
{
MainForm main = Owner as MainForm;
main.statusPanelReadonlyLabel.Visible = statusPanelReadonlyCheckBox.Checked;
settings.statusPanelReadonly = statusPanelReadonlyCheckBox.Checked;
main.StatusPanelFileInfo();
}
private void StatusPanelWordwrapCheckBox_Click(object sender, EventArgs e)
{
MainForm main = Owner as MainForm;
main.statusPanelWordwrapLabel.Visible = statusPanelWordwrapCheckBox.Checked;
settings.statusPanelWordWrap = statusPanelWordwrapCheckBox.Checked;
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)
{
settings.statusPanelClipboard = statusPanelClipboardCheckBox.Checked;
}
private void ClearClipboardTextBox_TextChanged(object sender, EventArgs e)
{
if (clearClipboardTextBox.Text == "" || clearClipboardTextBox.Text == "0")
{
settings.clipboardClearTime = "";
}
else
{
settings.clipboardClearTime = clearClipboardTextBox.Text + 0;
}
}
private void ClearClipboardCheckBox_Click(object sender, EventArgs e)
{
settings.clearClipboardAtClose = clearClipboardCheckBox.Checked;
}
private void TrayMenuCheckBox_Click(object sender, EventArgs e)
{
MainForm main = Owner as MainForm;
if (closeToTrayCheckBox.Checked == false & minimizeToTrayCheckBox.Checked == false & trayMenuCheckBox.Checked == false)
{
main.trayIcon.Visible = false;
}
if (trayMenuCheckBox.Checked == true)
{
main.trayIcon.Visible = true;
}
settings.trayMenu = trayMenuCheckBox.Checked;
}
private void ShortcutKeysCheckBox_Click(object sender, EventArgs e)
{
MainForm main = Owner as MainForm;
settings.shortcutKeys = shortcutKeysCheckBox.Checked;
main.ShortcutKeys(settings.shortcutKeys);
}
private void OpenTxtUnencryptedCheckBox_Click(object sender, EventArgs e)
{
settings.openTxtUnencrypted = openTxtUnencryptedCheckBox.Checked;
}
}
}

File diff suppressed because it is too large Load diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 361 KiB

View file

@ -1,19 +1,79 @@
using System; using Crypto_Notepad.Properties;
using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Threading;
using System.Windows.Forms; using System.Windows.Forms;
namespace Crypto_Notepad namespace Crypto_Notepad
{ {
static class Program static class Program
{ {
[DllImport("user32.dll")]
[return: MarshalAs(UnmanagedType.Bool)]
static extern bool SetForegroundWindow(IntPtr hWnd);
/// <summary> /// <summary>
/// Главная точка входа для приложения. /// The main entry point for the application.
/// </summary> /// </summary>
[STAThread] [STAThread]
static void Main(string[] args) static void Main()
{ {
Application.EnableVisualStyles(); Settings settings = Settings.Default;
Application.SetCompatibleTextRenderingDefault(false); using (Mutex mutex = new Mutex(true, PublicVar.appName, out bool createdNew))
Application.Run(new MainWindow()); {
if (!settings.singleInstance)
{
createdNew = true;
}
if (createdNew)
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new MainForm());
}
else
{
DialogResult dialogResult = MessageBox.Show(
PublicVar.appName + " is already running.\nDo you still want to open a new copy of the app?",
PublicVar.appName, MessageBoxButtons.YesNo, MessageBoxIcon.Warning,
MessageBoxDefaultButton.Button2, MessageBoxOptions.DefaultDesktopOnly);
if (dialogResult == DialogResult.Yes)
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new MainForm());
}
if (dialogResult == DialogResult.No)
{
Process current = Process.GetCurrentProcess();
foreach (Process process in Process.GetProcessesByName(current.ProcessName))
{
if (process.Id != current.Id)
{
SetForegroundWindow(process.MainWindowHandle);
break;
}
}
}
}
}
} }
} }
static class PublicVar
{
public static EncryptedString password = new EncryptedString();
public static bool passwordChanged = false;
public static bool okPressed = false;
public static bool messageBoxCenterParent = false;
public const string appName = "Crypto Notepad";
public static string openFileName;
public static bool metadataCorrupt = false;
}
static class TypedPassword
{
public static string Value { get; set; }
}
} }

View file

@ -7,11 +7,11 @@
// связанные со сборкой. // связанные со сборкой.
[assembly: AssemblyTitle("Crypto Notepad")] [assembly: AssemblyTitle("Crypto Notepad")]
[assembly: AssemblyDescription("Simple editor with encryption features")] [assembly: AssemblyDescription("Simple editor with encryption features")]
[assembly: AssemblyConfiguration("")] [assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyCompany("")] [assembly: AssemblyCompany("Crypto Notepad")]
[assembly: AssemblyProduct("Crypto Notepad")] [assembly: AssemblyProduct("Crypto Notepad")]
[assembly: AssemblyCopyright("Sigmanor")] [assembly: AssemblyCopyright("Sigmanor")]
[assembly: AssemblyTrademark("")] [assembly: AssemblyTrademark("Crypto Notepad")]
[assembly: AssemblyCulture("")] [assembly: AssemblyCulture("")]
// Параметр ComVisible со значением FALSE делает типы в сборке невидимыми // Параметр ComVisible со значением FALSE делает типы в сборке невидимыми
@ -20,7 +20,7 @@
[assembly: ComVisible(false)] [assembly: ComVisible(false)]
// Следующий GUID служит для идентификации библиотеки типов, если этот проект будет видимым для COM // Следующий GUID служит для идентификации библиотеки типов, если этот проект будет видимым для COM
[assembly: Guid("969df047-1cd0-4744-aeed-8d8877b6c909")] [assembly: Guid("969df047-1cd0-4744-deed-8d8877b6c909")]
// Сведения о версии сборки состоят из следующих четырех значений: // Сведения о версии сборки состоят из следующих четырех значений:
// //
@ -32,5 +32,5 @@
// Можно задать все значения или принять номер построения и номер редакции по умолчанию, // Можно задать все значения или принять номер построения и номер редакции по умолчанию,
// используя "*", как показано ниже: // используя "*", как показано ниже:
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.4.1.0")] [assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("0.4.1.0")] [assembly: AssemblyFileVersion("1.7.3.0")]

View file

@ -1,10 +1,10 @@
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// <auto-generated> // <auto-generated>
// Этот код создан программой. // This code was generated by a tool.
// Исполняемая версия:4.0.30319.42000 // Runtime Version:4.0.30319.42000
// //
// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае // Changes to this file may cause incorrect behavior and will be lost if
// повторной генерации кода. // the code is regenerated.
// </auto-generated> // </auto-generated>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
@ -13,13 +13,13 @@ namespace Crypto_Notepad.Properties {
/// <summary> /// <summary>
/// Класс ресурса со строгой типизацией для поиска локализованных строк и т.д. /// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary> /// </summary>
// Этот класс создан автоматически классом StronglyTypedResourceBuilder // This class was auto-generated by the StronglyTypedResourceBuilder
// с помощью такого средства, как ResGen или Visual Studio. // class via a tool like ResGen or Visual Studio.
// Чтобы добавить или удалить член, измените файл .ResX и снова запустите ResGen // To add or remove a member, edit your .ResX file then rerun ResGen
// с параметром /str или перестройте свой проект VS. // with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.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 {
@ -33,7 +33,7 @@ internal Resources() {
} }
/// <summary> /// <summary>
/// Возвращает кэшированный экземпляр ResourceManager, использованный этим классом. /// Returns the cached ResourceManager instance used by this class.
/// </summary> /// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager { internal static global::System.Resources.ResourceManager ResourceManager {
@ -47,8 +47,8 @@ internal Resources() {
} }
/// <summary> /// <summary>
/// Перезаписывает свойство CurrentUICulture текущего потока для всех /// Overrides the current thread's CurrentUICulture property for all
/// обращений к ресурсу с помощью этого класса ресурса со строгой типизацией. /// resource lookups using this strongly typed resource class.
/// </summary> /// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture { internal static global::System.Globalization.CultureInfo Culture {
@ -61,57 +61,217 @@ internal Resources() {
} }
/// <summary> /// <summary>
/// Поиск локализованного ресурса типа System.Drawing.Bitmap. /// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary> /// </summary>
internal static System.Drawing.Bitmap close_b { internal static System.Drawing.Bitmap application {
get { get {
object obj = ResourceManager.GetObject("close_b", resourceCulture); object obj = ResourceManager.GetObject("application", resourceCulture);
return ((System.Drawing.Bitmap)(obj)); return ((System.Drawing.Bitmap)(obj));
} }
} }
/// <summary> /// <summary>
/// Поиск локализованного ресурса типа System.Drawing.Bitmap. /// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary> /// </summary>
internal static System.Drawing.Bitmap close_g { internal static System.Drawing.Bitmap application_blue {
get { get {
object obj = ResourceManager.GetObject("close_g", resourceCulture); object obj = ResourceManager.GetObject("application_blue", resourceCulture);
return ((System.Drawing.Bitmap)(obj)); return ((System.Drawing.Bitmap)(obj));
} }
} }
/// <summary> /// <summary>
/// Поиск локализованного ресурса типа System.Drawing.Bitmap. /// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary> /// </summary>
internal static System.Drawing.Bitmap cut_red { internal static System.Drawing.Bitmap application_dock_180 {
get { get {
object obj = ResourceManager.GetObject("cut_red", resourceCulture); object obj = ResourceManager.GetObject("application-dock-180", resourceCulture);
return ((System.Drawing.Bitmap)(obj)); return ((System.Drawing.Bitmap)(obj));
} }
} }
/// <summary> /// <summary>
/// Поиск локализованного ресурса типа System.Drawing.Bitmap. /// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary> /// </summary>
internal static System.Drawing.Bitmap disk_multiple { internal static System.Drawing.Bitmap applications_blue {
get { get {
object obj = ResourceManager.GetObject("disk_multiple", resourceCulture); object obj = ResourceManager.GetObject("applications_blue", resourceCulture);
return ((System.Drawing.Bitmap)(obj)); return ((System.Drawing.Bitmap)(obj));
} }
} }
/// <summary> /// <summary>
/// Поиск локализованного ресурса типа System.Drawing.Bitmap. /// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary> /// </summary>
internal static System.Drawing.Bitmap diskette { internal static System.Drawing.Bitmap arrow_left {
get { get {
object obj = ResourceManager.GetObject("diskette", resourceCulture); object obj = ResourceManager.GetObject("arrow_left", resourceCulture);
return ((System.Drawing.Bitmap)(obj)); return ((System.Drawing.Bitmap)(obj));
} }
} }
/// <summary> /// <summary>
/// Поиск локализованного ресурса типа System.Drawing.Bitmap. /// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap arrow_right {
get {
object obj = ResourceManager.GetObject("arrow_right", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap big_lock {
get {
object obj = ResourceManager.GetObject("big_lock", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap clipboard {
get {
object obj = ResourceManager.GetObject("clipboard", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap clipboard_minus {
get {
object obj = ResourceManager.GetObject("clipboard_minus", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <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>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap cross_button {
get {
object obj = ResourceManager.GetObject("cross_button", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap disk_minus {
get {
object obj = ResourceManager.GetObject("disk_minus", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap disk_return_black {
get {
object obj = ResourceManager.GetObject("disk_return_black", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap disks_black {
get {
object obj = ResourceManager.GetObject("disks_black", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap document {
get {
object obj = ResourceManager.GetObject("document", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap document_copy {
get {
object obj = ResourceManager.GetObject("document_copy", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap document_minus {
get {
object obj = ResourceManager.GetObject("document_minus", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap document_pencil {
get {
object obj = ResourceManager.GetObject("document_pencil", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap document_plus {
get {
object obj = ResourceManager.GetObject("document_plus", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap document_text {
get {
object obj = ResourceManager.GetObject("document_text", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary> /// </summary>
internal static System.Drawing.Bitmap eye { internal static System.Drawing.Bitmap eye {
get { get {
@ -121,7 +281,7 @@ internal static System.Drawing.Bitmap eye {
} }
/// <summary> /// <summary>
/// Поиск локализованного ресурса типа System.Drawing.Bitmap. /// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary> /// </summary>
internal static System.Drawing.Bitmap eye_half { internal static System.Drawing.Bitmap eye_half {
get { get {
@ -131,91 +291,321 @@ internal static System.Drawing.Bitmap eye_half {
} }
/// <summary> /// <summary>
/// Поиск локализованного ресурса типа System.Drawing.Bitmap. /// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary> /// </summary>
internal static System.Drawing.Bitmap folder_stand { internal static System.Drawing.Bitmap folder_horizontal {
get { get {
object obj = ResourceManager.GetObject("folder_stand", resourceCulture); object obj = ResourceManager.GetObject("folder_horizontal", resourceCulture);
return ((System.Drawing.Bitmap)(obj)); return ((System.Drawing.Bitmap)(obj));
} }
} }
/// <summary> /// <summary>
/// Поиск локализованного ресурса типа System.Drawing.Bitmap. /// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary> /// </summary>
internal static System.Drawing.Bitmap folder_vertical_document { internal static System.Drawing.Bitmap folder_open_document {
get { get {
object obj = ResourceManager.GetObject("folder_vertical_document", resourceCulture); object obj = ResourceManager.GetObject("folder_open_document", resourceCulture);
return ((System.Drawing.Bitmap)(obj)); return ((System.Drawing.Bitmap)(obj));
} }
} }
/// <summary> /// <summary>
/// Поиск локализованного ресурса типа System.Drawing.Bitmap. /// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary> /// </summary>
internal static System.Drawing.Bitmap page_white_add { internal static System.Drawing.Bitmap gear {
get { get {
object obj = ResourceManager.GetObject("page_white_add", resourceCulture); object obj = ResourceManager.GetObject("gear", resourceCulture);
return ((System.Drawing.Bitmap)(obj)); return ((System.Drawing.Bitmap)(obj));
} }
} }
/// <summary> /// <summary>
/// Поиск локализованного ресурса типа System.Drawing.Bitmap. /// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary> /// </summary>
internal static System.Drawing.Bitmap page_white_copy { internal static System.Drawing.Bitmap gnupg_keys {
get { get {
object obj = ResourceManager.GetObject("page_white_copy", resourceCulture); object obj = ResourceManager.GetObject("gnupg_keys", resourceCulture);
return ((System.Drawing.Bitmap)(obj)); return ((System.Drawing.Bitmap)(obj));
} }
} }
/// <summary> /// <summary>
/// Поиск локализованного ресурса типа System.Drawing.Bitmap. /// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary> /// </summary>
internal static System.Drawing.Bitmap page_white_delete { internal static System.Drawing.Bitmap information {
get { get {
object obj = ResourceManager.GetObject("page_white_delete", resourceCulture); object obj = ResourceManager.GetObject("information", resourceCulture);
return ((System.Drawing.Bitmap)(obj)); return ((System.Drawing.Bitmap)(obj));
} }
} }
/// <summary> /// <summary>
/// Поиск локализованного ресурса типа System.Drawing.Bitmap. /// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary> /// </summary>
internal static System.Drawing.Bitmap page_white_key { internal static System.Drawing.Bitmap key {
get { get {
object obj = ResourceManager.GetObject("page_white_key", resourceCulture); object obj = ResourceManager.GetObject("key", resourceCulture);
return ((System.Drawing.Bitmap)(obj)); return ((System.Drawing.Bitmap)(obj));
} }
} }
/// <summary> /// <summary>
/// Поиск локализованного ресурса типа System.Drawing.Bitmap. /// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary> /// </summary>
internal static System.Drawing.Bitmap paste_plain { internal static System.Drawing.Bitmap key_plus {
get { get {
object obj = ResourceManager.GetObject("paste_plain", resourceCulture); object obj = ResourceManager.GetObject("key_plus", resourceCulture);
return ((System.Drawing.Bitmap)(obj)); return ((System.Drawing.Bitmap)(obj));
} }
} }
/// <summary> /// <summary>
/// Поиск локализованного ресурса типа System.Drawing.Bitmap. /// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary> /// </summary>
internal static System.Drawing.Bitmap setting_tools { internal static System.Drawing.Bitmap key_solid {
get { get {
object obj = ResourceManager.GetObject("setting_tools", resourceCulture); object obj = ResourceManager.GetObject("key_solid", resourceCulture);
return ((System.Drawing.Bitmap)(obj)); return ((System.Drawing.Bitmap)(obj));
} }
} }
/// <summary> /// <summary>
/// Поиск локализованного ресурса типа System.Drawing.Bitmap. /// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary> /// </summary>
internal static System.Drawing.Bitmap Warning_icon_hi { internal static System.Drawing.Bitmap lock_pencil {
get { get {
object obj = ResourceManager.GetObject("Warning_icon_hi", resourceCulture); object obj = ResourceManager.GetObject("lock_pencil", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap lock_warning {
get {
object obj = ResourceManager.GetObject("lock_warning", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap magnifier {
get {
object obj = ResourceManager.GetObject("magnifier", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap minus {
get {
object obj = ResourceManager.GetObject("minus", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap notepad_lock {
get {
object obj = ResourceManager.GetObject("notepad_lock", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap old_application_double {
get {
object obj = ResourceManager.GetObject("old_application_double", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <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>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap old_cut_red {
get {
object obj = ResourceManager.GetObject("old_cut_red", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap old_diskette {
get {
object obj = ResourceManager.GetObject("old_diskette", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap old_folder_stand {
get {
object obj = ResourceManager.GetObject("old_folder_stand", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap old_folder_vertical_document {
get {
object obj = ResourceManager.GetObject("old_folder_vertical_document", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap old_lock {
get {
object obj = ResourceManager.GetObject("old_lock", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap old_lock_edit {
get {
object obj = ResourceManager.GetObject("old_lock_edit", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap old_page_white_add {
get {
object obj = ResourceManager.GetObject("old_page_white_add", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap old_page_white_copy {
get {
object obj = ResourceManager.GetObject("old_page_white_copy", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap old_page_white_delete {
get {
object obj = ResourceManager.GetObject("old_page_white_delete", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap old_page_white_key {
get {
object obj = ResourceManager.GetObject("old_page_white_key", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap old_paste_plain {
get {
object obj = ResourceManager.GetObject("old_paste_plain", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap old_setting_tools {
get {
object obj = ResourceManager.GetObject("old_setting_tools", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap scissors {
get {
object obj = ResourceManager.GetObject("scissors", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap selection_input {
get {
object obj = ResourceManager.GetObject("selection_input", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Byte[].
/// </summary>
internal static byte[] Updater {
get {
object obj = ResourceManager.GetObject("Updater", resourceCulture);
return ((byte[])(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap upload_cloud {
get {
object obj = ResourceManager.GetObject("upload_cloud", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap wrap_option {
get {
object obj = ResourceManager.GetObject("wrap_option", resourceCulture);
return ((System.Drawing.Bitmap)(obj)); return ((System.Drawing.Bitmap)(obj));
} }
} }

File diff suppressed because it is too large Load diff

View file

@ -1,10 +1,10 @@
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// <auto-generated> // <auto-generated>
// Этот код создан программой. // This code was generated by a tool.
// Исполняемая версия:4.0.30319.42000 // Runtime Version:4.0.30319.42000
// //
// Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае // Changes to this file may cause incorrect behavior and will be lost if
// повторной генерации кода. // the code is regenerated.
// </auto-generated> // </auto-generated>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
@ -12,7 +12,7 @@ namespace Crypto_Notepad.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "14.0.0.0")] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.8.1.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
@ -26,91 +26,26 @@ public static Settings Default {
[global::System.Configuration.UserScopedSettingAttribute()] [global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))] [global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("0")] [global::System.Configuration.DefaultSettingValueAttribute("Black")]
public int TopPosition { public global::System.Drawing.Color editorForeColor {
get { get {
return ((int)(this["TopPosition"])); return ((global::System.Drawing.Color)(this["editorForeColor"]));
} }
set { set {
this["TopPosition"] = value; this["editorForeColor"] = value;
} }
} }
[global::System.Configuration.UserScopedSettingAttribute()] [global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))] [global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("0")] [global::System.Configuration.DefaultSettingValueAttribute("White")]
public int LeftPosition { public global::System.Drawing.Color editorBackColor {
get { get {
return ((int)(this["LeftPosition"])); return ((global::System.Drawing.Color)(this["editorBackColor"]));
} }
set { set {
this["LeftPosition"] = value; this["editorBackColor"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("Consolas")]
public string RichTextFont {
get {
return ((string)(this["RichTextFont"]));
}
set {
this["RichTextFont"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("228, 228, 228")]
public global::System.Drawing.Color RichForeColor {
get {
return ((global::System.Drawing.Color)(this["RichForeColor"]));
}
set {
this["RichForeColor"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("690")]
public int FormWidth {
get {
return ((int)(this["FormWidth"]));
}
set {
this["FormWidth"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("430")]
public int FormHeight {
get {
return ((int)(this["FormHeight"]));
}
set {
this["FormHeight"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("56, 56, 56")]
public global::System.Drawing.Color RichBackColor {
get {
return ((global::System.Drawing.Color)(this["RichBackColor"]));
}
set {
this["RichBackColor"] = value;
} }
} }
@ -118,12 +53,12 @@ public int FormHeight {
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))] [global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("True")] [global::System.Configuration.DefaultSettingValueAttribute("True")]
public bool MenuWrap { public bool menuWrap {
get { get {
return ((bool)(this["MenuWrap"])); return ((bool)(this["menuWrap"]));
} }
set { set {
this["MenuWrap"] = value; this["menuWrap"] = value;
} }
} }
@ -131,38 +66,12 @@ public bool MenuWrap {
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))] [global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("True")] [global::System.Configuration.DefaultSettingValueAttribute("True")]
public bool RichWrap { public bool editorWrap {
get { get {
return ((bool)(this["RichWrap"])); return ((bool)(this["editorWrap"]));
} }
set { set {
this["RichWrap"] = value; this["editorWrap"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("11")]
public int RichTextSize {
get {
return ((int)(this["RichTextSize"]));
}
set {
this["RichTextSize"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("101, 51, 6")]
public global::System.Drawing.Color HighlightsColor {
get {
return ((global::System.Drawing.Color)(this["HighlightsColor"]));
}
set {
this["HighlightsColor"] = value;
} }
} }
@ -170,12 +79,12 @@ public int RichTextSize {
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))] [global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("False")] [global::System.Configuration.DefaultSettingValueAttribute("False")]
public bool AssociateCheck { public bool explorerAssociate {
get { get {
return ((bool)(this["AssociateCheck"])); return ((bool)(this["explorerAssociate"]));
} }
set { set {
this["AssociateCheck"] = value; this["explorerAssociate"] = value;
} }
} }
@ -195,16 +104,576 @@ public string HashAlgorithm {
[global::System.Configuration.UserScopedSettingAttribute()] [global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))] [global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("192")] [global::System.Configuration.DefaultSettingValueAttribute("256")]
public int KeySize { public string KeySize {
get { get {
return ((int)(this["KeySize"])); return ((string)(this["KeySize"]));
} }
set { set {
this["KeySize"] = value; this["KeySize"] = value;
} }
} }
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("1000")]
public string PasswordIterations {
get {
return ((string)(this["PasswordIterations"]));
}
set {
this["PasswordIterations"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("True")]
public bool toolbarVisible {
get {
return ((bool)(this["toolbarVisible"]));
}
set {
this["toolbarVisible"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("False")]
public bool autoCheckUpdate {
get {
return ((bool)(this["autoCheckUpdate"]));
}
set {
this["autoCheckUpdate"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("False")]
public bool autoLock {
get {
return ((bool)(this["autoLock"]));
}
set {
this["autoLock"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("0, 0")]
public global::System.Drawing.Point windowLocation {
get {
return ((global::System.Drawing.Point)(this["windowLocation"]));
}
set {
this["windowLocation"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("645, 460")]
public global::System.Drawing.Size windowSize {
get {
return ((global::System.Drawing.Size)(this["windowSize"]));
}
set {
this["windowSize"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("Normal")]
public global::System.Windows.Forms.FormWindowState windowState {
get {
return ((global::System.Windows.Forms.FormWindowState)(this["windowState"]));
}
set {
this["windowState"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("False")]
public bool explorerSendTo {
get {
return ((bool)(this["explorerSendTo"]));
}
set {
this["explorerSendTo"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("False")]
public bool explorerIntegrate {
get {
return ((bool)(this["explorerIntegrate"]));
}
set {
this["explorerIntegrate"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("False")]
public bool menuIcons {
get {
return ((bool)(this["menuIcons"]));
}
set {
this["menuIcons"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("Enable")]
public string insertKey {
get {
return ((string)(this["insertKey"]));
}
set {
this["insertKey"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("16777215;16777215;16777215;16777215;16777215;16777215;16777215;16777215;16777215;" +
"16777215;16777215;16777215;16777215;16777215;16777215;16777215")]
public string customColor {
get {
return ((string)(this["customColor"]));
}
set {
this["customColor"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("5")]
public string editorPaddingLeft {
get {
return ((string)(this["editorPaddingLeft"]));
}
set {
this["editorPaddingLeft"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("False")]
public bool editorRightToLeft {
get {
return ((bool)(this["editorRightToLeft"]));
}
set {
this["editorRightToLeft"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("Microsoft Sans Serif, 10pt")]
public global::System.Drawing.Font editorFont {
get {
return ((global::System.Drawing.Font)(this["editorFont"]));
}
set {
this["editorFont"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("True")]
public bool statusPanelVisible {
get {
return ((bool)(this["statusPanelVisible"]));
}
set {
this["statusPanelVisible"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("240, 240, 240")]
public global::System.Drawing.Color statusPanelBackColor {
get {
return ((global::System.Drawing.Color)(this["statusPanelBackColor"]));
}
set {
this["statusPanelBackColor"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("Black")]
public global::System.Drawing.Color statusPanelFontColor {
get {
return ((global::System.Drawing.Color)(this["statusPanelFontColor"]));
}
set {
this["statusPanelFontColor"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("240, 240, 240")]
public global::System.Drawing.Color toolbarBackColor {
get {
return ((global::System.Drawing.Color)(this["toolbarBackColor"]));
}
set {
this["toolbarBackColor"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("False")]
public bool toolbarBorder {
get {
return ((bool)(this["toolbarBorder"]));
}
set {
this["toolbarBorder"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("Black")]
public global::System.Drawing.Color searchPanelForeColor {
get {
return ((global::System.Drawing.Color)(this["searchPanelForeColor"]));
}
set {
this["searchPanelForeColor"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("240, 240, 240")]
public global::System.Drawing.Color searchPanelBackColor {
get {
return ((global::System.Drawing.Color)(this["searchPanelBackColor"]));
}
set {
this["searchPanelBackColor"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("LMB Click")]
public string openLinks {
get {
return ((string)(this["openLinks"]));
}
set {
this["openLinks"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("True")]
public bool mainMenuVisible {
get {
return ((bool)(this["mainMenuVisible"]));
}
set {
this["mainMenuVisible"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("False")]
public bool oldToolbarIcons {
get {
return ((bool)(this["oldToolbarIcons"]));
}
set {
this["oldToolbarIcons"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("False")]
public bool minimizeToTray {
get {
return ((bool)(this["minimizeToTray"]));
}
set {
this["minimizeToTray"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("False")]
public bool closeToTray {
get {
return ((bool)(this["closeToTray"]));
}
set {
this["closeToTray"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("False")]
public bool alwaysOnTop {
get {
return ((bool)(this["alwaysOnTop"]));
}
set {
this["alwaysOnTop"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("FixedSingle")]
public string editorBorder {
get {
return ((string)(this["editorBorder"]));
}
set {
this["editorBorder"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("None")]
public string searchPanelBorder {
get {
return ((string)(this["searchPanelBorder"]));
}
set {
this["searchPanelBorder"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("True")]
public bool toolbarCloseButton {
get {
return ((bool)(this["toolbarCloseButton"]));
}
set {
this["toolbarCloseButton"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("False")]
public bool singleInstance {
get {
return ((bool)(this["singleInstance"]));
}
set {
this["singleInstance"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("True")]
public bool statusPanelLength {
get {
return ((bool)(this["statusPanelLength"]));
}
set {
this["statusPanelLength"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("True")]
public bool statusPanelLines {
get {
return ((bool)(this["statusPanelLines"]));
}
set {
this["statusPanelLines"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("True")]
public bool statusPanelModified {
get {
return ((bool)(this["statusPanelModified"]));
}
set {
this["statusPanelModified"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("True")]
public bool statusPanelSize {
get {
return ((bool)(this["statusPanelSize"]));
}
set {
this["statusPanelSize"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("True")]
public bool encryptionHint {
get {
return ((bool)(this["encryptionHint"]));
}
set {
this["encryptionHint"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("True")]
public bool passwordGeneratorLowercase {
get {
return ((bool)(this["passwordGeneratorLowercase"]));
}
set {
this["passwordGeneratorLowercase"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("True")]
public bool passwordGeneratorUppercase {
get {
return ((bool)(this["passwordGeneratorUppercase"]));
}
set {
this["passwordGeneratorUppercase"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("True")]
public bool passwordGeneratorNumeric {
get {
return ((bool)(this["passwordGeneratorNumeric"]));
}
set {
this["passwordGeneratorNumeric"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("True")]
public bool passwordGeneratorSpecial {
get {
return ((bool)(this["passwordGeneratorSpecial"]));
}
set {
this["passwordGeneratorSpecial"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("40")]
public string passwordGeneratorLength {
get {
return ((string)(this["passwordGeneratorLength"]));
}
set {
this["passwordGeneratorLength"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("10")]
public string passwordGeneratorNumberOfStrings {
get {
return ((string)(this["passwordGeneratorNumberOfStrings"]));
}
set {
this["passwordGeneratorNumberOfStrings"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()] [global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))] [global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@ -221,13 +690,13 @@ public string TheSalt {
[global::System.Configuration.UserScopedSettingAttribute()] [global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))] [global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("2")] [global::System.Configuration.DefaultSettingValueAttribute("False")]
public int PasswordIterations { public bool passwordGeneratorBrackets {
get { get {
return ((int)(this["PasswordIterations"])); return ((bool)(this["passwordGeneratorBrackets"]));
} }
set { set {
this["PasswordIterations"] = value; this["passwordGeneratorBrackets"] = value;
} }
} }
@ -235,25 +704,25 @@ public int PasswordIterations {
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))] [global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("False")] [global::System.Configuration.DefaultSettingValueAttribute("False")]
public bool FirstLaunch { public bool passwordGeneratorAdditional {
get { get {
return ((bool)(this["FirstLaunch"])); return ((bool)(this["passwordGeneratorAdditional"]));
} }
set { set {
this["FirstLaunch"] = value; this["passwordGeneratorAdditional"] = value;
} }
} }
[global::System.Configuration.UserScopedSettingAttribute()] [global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))] [global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("False")] [global::System.Configuration.DefaultSettingValueAttribute("")]
public bool WarningMsg { public string lockTimeout {
get { get {
return ((bool)(this["WarningMsg"])); return ((string)(this["lockTimeout"]));
} }
set { set {
this["WarningMsg"] = value; this["lockTimeout"] = value;
} }
} }
@ -261,12 +730,116 @@ public bool WarningMsg {
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))] [global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("True")] [global::System.Configuration.DefaultSettingValueAttribute("True")]
public bool ShowToolbar { public bool statusPanelReadonly {
get { get {
return ((bool)(this["ShowToolbar"])); return ((bool)(this["statusPanelReadonly"]));
} }
set { set {
this["ShowToolbar"] = value; this["statusPanelReadonly"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("True")]
public bool statusPanelWordWrap {
get {
return ((bool)(this["statusPanelWordWrap"]));
}
set {
this["statusPanelWordWrap"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("")]
public string clipboardClearTime {
get {
return ((string)(this["clipboardClearTime"]));
}
set {
this["clipboardClearTime"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("True")]
public bool statusPanelClipboard {
get {
return ((bool)(this["statusPanelClipboard"]));
}
set {
this["statusPanelClipboard"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("False")]
public bool clearClipboardAtClose {
get {
return ((bool)(this["clearClipboardAtClose"]));
}
set {
this["clearClipboardAtClose"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("True")]
public bool shortcutKeys {
get {
return ((bool)(this["shortcutKeys"]));
}
set {
this["shortcutKeys"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("False")]
public bool openTxtUnencrypted {
get {
return ((bool)(this["openTxtUnencrypted"]));
}
set {
this["openTxtUnencrypted"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("False")]
public bool trayMenu {
get {
return ((bool)(this["trayMenu"]));
}
set {
this["trayMenu"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("False")]
public bool statusPanelPasteboard {
get {
return ((bool)(this["statusPanelPasteboard"]));
}
set {
this["statusPanelPasteboard"] = value;
} }
} }
} }

View file

@ -2,62 +2,194 @@
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="Crypto_Notepad.Properties" GeneratedClassName="Settings"> <SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="Crypto_Notepad.Properties" GeneratedClassName="Settings">
<Profiles /> <Profiles />
<Settings> <Settings>
<Setting Name="TopPosition" Provider="PortableSettingsProvider" Type="System.Int32" Scope="User"> <Setting Name="editorForeColor" Provider="PortableSettingsProvider" Type="System.Drawing.Color" Scope="User">
<Value Profile="(Default)">0</Value> <Value Profile="(Default)">Black</Value>
</Setting> </Setting>
<Setting Name="LeftPosition" Provider="PortableSettingsProvider" Type="System.Int32" Scope="User"> <Setting Name="editorBackColor" Provider="PortableSettingsProvider" Type="System.Drawing.Color" Scope="User">
<Value Profile="(Default)">0</Value> <Value Profile="(Default)">White</Value>
</Setting> </Setting>
<Setting Name="RichTextFont" Provider="PortableSettingsProvider" Type="System.String" Scope="User"> <Setting Name="menuWrap" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">Consolas</Value>
</Setting>
<Setting Name="RichForeColor" Provider="PortableSettingsProvider" Type="System.Drawing.Color" Scope="User">
<Value Profile="(Default)">228, 228, 228</Value>
</Setting>
<Setting Name="FormWidth" Provider="PortableSettingsProvider" Type="System.Int32" Scope="User">
<Value Profile="(Default)">690</Value>
</Setting>
<Setting Name="FormHeight" Provider="PortableSettingsProvider" Type="System.Int32" Scope="User">
<Value Profile="(Default)">430</Value>
</Setting>
<Setting Name="RichBackColor" Provider="PortableSettingsProvider" Type="System.Drawing.Color" Scope="User">
<Value Profile="(Default)">56, 56, 56</Value>
</Setting>
<Setting Name="MenuWrap" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">True</Value> <Value Profile="(Default)">True</Value>
</Setting> </Setting>
<Setting Name="RichWrap" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User"> <Setting Name="editorWrap" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">True</Value> <Value Profile="(Default)">True</Value>
</Setting> </Setting>
<Setting Name="RichTextSize" Provider="PortableSettingsProvider" Type="System.Int32" Scope="User"> <Setting Name="explorerAssociate" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">11</Value>
</Setting>
<Setting Name="HighlightsColor" Provider="PortableSettingsProvider" Type="System.Drawing.Color" Scope="User">
<Value Profile="(Default)">101, 51, 6</Value>
</Setting>
<Setting Name="AssociateCheck" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value> <Value Profile="(Default)">False</Value>
</Setting> </Setting>
<Setting Name="HashAlgorithm" Provider="PortableSettingsProvider" Type="System.String" Scope="User"> <Setting Name="HashAlgorithm" Provider="PortableSettingsProvider" Type="System.String" Scope="User">
<Value Profile="(Default)">SHA1</Value> <Value Profile="(Default)">SHA1</Value>
</Setting> </Setting>
<Setting Name="KeySize" Provider="PortableSettingsProvider" Type="System.Int32" Scope="User"> <Setting Name="KeySize" Provider="PortableSettingsProvider" Type="System.String" Scope="User">
<Value Profile="(Default)">192</Value> <Value Profile="(Default)">256</Value>
</Setting>
<Setting Name="PasswordIterations" Provider="PortableSettingsProvider" Type="System.String" Scope="User">
<Value Profile="(Default)">1000</Value>
</Setting>
<Setting Name="toolbarVisible" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">True</Value>
</Setting>
<Setting Name="autoCheckUpdate" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="autoLock" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="windowLocation" Provider="PortableSettingsProvider" Type="System.Drawing.Point" Scope="User">
<Value Profile="(Default)">0, 0</Value>
</Setting>
<Setting Name="windowSize" Provider="PortableSettingsProvider" Type="System.Drawing.Size" Scope="User">
<Value Profile="(Default)">645, 460</Value>
</Setting>
<Setting Name="windowState" Provider="PortableSettingsProvider" Type="System.Windows.Forms.FormWindowState" Scope="User">
<Value Profile="(Default)">Normal</Value>
</Setting>
<Setting Name="explorerSendTo" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="explorerIntegrate" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="menuIcons" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="insertKey" Provider="PortableSettingsProvider" Type="System.String" Scope="User">
<Value Profile="(Default)">Enable</Value>
</Setting>
<Setting Name="customColor" Provider="PortableSettingsProvider" Type="System.String" Scope="User">
<Value Profile="(Default)">16777215;16777215;16777215;16777215;16777215;16777215;16777215;16777215;16777215;16777215;16777215;16777215;16777215;16777215;16777215;16777215</Value>
</Setting>
<Setting Name="editorPaddingLeft" Provider="PortableSettingsProvider" Type="System.String" Scope="User">
<Value Profile="(Default)">5</Value>
</Setting>
<Setting Name="editorRightToLeft" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="editorFont" Provider="PortableSettingsProvider" Type="System.Drawing.Font" Scope="User">
<Value Profile="(Default)">Microsoft Sans Serif, 10pt</Value>
</Setting>
<Setting Name="statusPanelVisible" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">True</Value>
</Setting>
<Setting Name="statusPanelBackColor" Provider="PortableSettingsProvider" Type="System.Drawing.Color" Scope="User">
<Value Profile="(Default)">240, 240, 240</Value>
</Setting>
<Setting Name="statusPanelFontColor" Provider="PortableSettingsProvider" Type="System.Drawing.Color" Scope="User">
<Value Profile="(Default)">Black</Value>
</Setting>
<Setting Name="toolbarBackColor" Provider="PortableSettingsProvider" Type="System.Drawing.Color" Scope="User">
<Value Profile="(Default)">240, 240, 240</Value>
</Setting>
<Setting Name="toolbarBorder" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="searchPanelForeColor" Provider="PortableSettingsProvider" Type="System.Drawing.Color" Scope="User">
<Value Profile="(Default)">Black</Value>
</Setting>
<Setting Name="searchPanelBackColor" Provider="PortableSettingsProvider" Type="System.Drawing.Color" Scope="User">
<Value Profile="(Default)">240, 240, 240</Value>
</Setting>
<Setting Name="openLinks" Provider="PortableSettingsProvider" Type="System.String" Scope="User">
<Value Profile="(Default)">LMB Click</Value>
</Setting>
<Setting Name="mainMenuVisible" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">True</Value>
</Setting>
<Setting Name="oldToolbarIcons" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="minimizeToTray" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="closeToTray" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="alwaysOnTop" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="editorBorder" Provider="PortableSettingsProvider" Type="System.String" Scope="User">
<Value Profile="(Default)">FixedSingle</Value>
</Setting>
<Setting Name="searchPanelBorder" Provider="PortableSettingsProvider" Type="System.String" Scope="User">
<Value Profile="(Default)">None</Value>
</Setting>
<Setting Name="toolbarCloseButton" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">True</Value>
</Setting>
<Setting Name="singleInstance" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="statusPanelLength" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">True</Value>
</Setting>
<Setting Name="statusPanelLines" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">True</Value>
</Setting>
<Setting Name="statusPanelModified" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">True</Value>
</Setting>
<Setting Name="statusPanelSize" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">True</Value>
</Setting>
<Setting Name="encryptionHint" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">True</Value>
</Setting>
<Setting Name="passwordGeneratorLowercase" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">True</Value>
</Setting>
<Setting Name="passwordGeneratorUppercase" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">True</Value>
</Setting>
<Setting Name="passwordGeneratorNumeric" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">True</Value>
</Setting>
<Setting Name="passwordGeneratorSpecial" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">True</Value>
</Setting>
<Setting Name="passwordGeneratorLength" Provider="PortableSettingsProvider" Type="System.String" Scope="User">
<Value Profile="(Default)">40</Value>
</Setting>
<Setting Name="passwordGeneratorNumberOfStrings" Provider="PortableSettingsProvider" Type="System.String" Scope="User">
<Value Profile="(Default)">10</Value>
</Setting> </Setting>
<Setting Name="TheSalt" Provider="PortableSettingsProvider" Type="System.String" Scope="User"> <Setting Name="TheSalt" Provider="PortableSettingsProvider" Type="System.String" Scope="User">
<Value Profile="(Default)" /> <Value Profile="(Default)" />
</Setting> </Setting>
<Setting Name="PasswordIterations" Provider="PortableSettingsProvider" Type="System.Int32" Scope="User"> <Setting Name="passwordGeneratorBrackets" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">2</Value>
</Setting>
<Setting Name="FirstLaunch" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value> <Value Profile="(Default)">False</Value>
</Setting> </Setting>
<Setting Name="WarningMsg" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User"> <Setting Name="passwordGeneratorAdditional" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value> <Value Profile="(Default)">False</Value>
</Setting> </Setting>
<Setting Name="ShowToolbar" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User"> <Setting Name="lockTimeout" Provider="PortableSettingsProvider" Type="System.String" Scope="User">
<Value Profile="(Default)" />
</Setting>
<Setting Name="statusPanelReadonly" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">True</Value> <Value Profile="(Default)">True</Value>
</Setting> </Setting>
<Setting Name="statusPanelWordWrap" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">True</Value>
</Setting>
<Setting Name="clipboardClearTime" Provider="PortableSettingsProvider" Type="System.String" Scope="User">
<Value Profile="(Default)" />
</Setting>
<Setting Name="statusPanelClipboard" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">True</Value>
</Setting>
<Setting Name="clearClipboardAtClose" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="shortcutKeys" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">True</Value>
</Setting>
<Setting Name="openTxtUnencrypted" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="trayMenu" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
<Setting Name="statusPanelPasteboard" Provider="PortableSettingsProvider" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
</Settings> </Settings>
</SettingsFile> </SettingsFile>

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 626 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 341 B

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

View file

@ -1,426 +0,0 @@
namespace Crypto_Notepad
{
partial class SettingsForm
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.BackgroundColorLabel = new System.Windows.Forms.Label();
this.colorDialog1 = new System.Windows.Forms.ColorDialog();
this.saveSettingsButton = new System.Windows.Forms.Button();
this.fontLabel = new System.Windows.Forms.Label();
this.tabControl1 = new System.Windows.Forms.TabControl();
this.tabPage1 = new System.Windows.Forms.TabPage();
this.panel3 = new System.Windows.Forms.Panel();
this.label3 = new System.Windows.Forms.Label();
this.comboBox2 = new System.Windows.Forms.ComboBox();
this.label2 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.panel2 = new System.Windows.Forms.Panel();
this.panel1 = new System.Windows.Forms.Panel();
this.comboBox1 = new System.Windows.Forms.ComboBox();
this.tabPage2 = new System.Windows.Forms.TabPage();
this.textBox2 = new System.Windows.Forms.TextBox();
this.label7 = new System.Windows.Forms.Label();
this.comboBox4 = new System.Windows.Forms.ComboBox();
this.textBox1 = new System.Windows.Forms.TextBox();
this.comboBox3 = new System.Windows.Forms.ComboBox();
this.label6 = new System.Windows.Forms.Label();
this.label5 = new System.Windows.Forms.Label();
this.label4 = new System.Windows.Forms.Label();
this.tabPage3 = new System.Windows.Forms.TabPage();
this.checkBox2 = new System.Windows.Forms.CheckBox();
this.checkBox1 = new System.Windows.Forms.CheckBox();
this.button1 = new System.Windows.Forms.Button();
this.checkBox3 = new System.Windows.Forms.CheckBox();
this.tabControl1.SuspendLayout();
this.tabPage1.SuspendLayout();
this.tabPage2.SuspendLayout();
this.tabPage3.SuspendLayout();
this.SuspendLayout();
//
// BackgroundColorLabel
//
this.BackgroundColorLabel.AutoSize = true;
this.BackgroundColorLabel.Location = new System.Drawing.Point(7, 86);
this.BackgroundColorLabel.Name = "BackgroundColorLabel";
this.BackgroundColorLabel.Size = new System.Drawing.Size(58, 13);
this.BackgroundColorLabel.TabIndex = 0;
this.BackgroundColorLabel.Text = "Font Color:";
//
// colorDialog1
//
this.colorDialog1.AnyColor = true;
this.colorDialog1.FullOpen = true;
//
// saveSettingsButton
//
this.saveSettingsButton.Location = new System.Drawing.Point(183, 225);
this.saveSettingsButton.Name = "saveSettingsButton";
this.saveSettingsButton.Size = new System.Drawing.Size(75, 23);
this.saveSettingsButton.TabIndex = 4;
this.saveSettingsButton.Text = "Save";
this.saveSettingsButton.UseVisualStyleBackColor = true;
this.saveSettingsButton.Click += new System.EventHandler(this.saveSettingsButton_Click);
//
// fontLabel
//
this.fontLabel.AutoSize = true;
this.fontLabel.Location = new System.Drawing.Point(7, 18);
this.fontLabel.Name = "fontLabel";
this.fontLabel.Size = new System.Drawing.Size(62, 13);
this.fontLabel.TabIndex = 1;
this.fontLabel.Text = "Font Name:";
//
// tabControl1
//
this.tabControl1.Controls.Add(this.tabPage1);
this.tabControl1.Controls.Add(this.tabPage2);
this.tabControl1.Controls.Add(this.tabPage3);
this.tabControl1.Location = new System.Drawing.Point(2, 2);
this.tabControl1.Name = "tabControl1";
this.tabControl1.SelectedIndex = 0;
this.tabControl1.Size = new System.Drawing.Size(260, 218);
this.tabControl1.TabIndex = 4;
this.tabControl1.SelectedIndexChanged += new System.EventHandler(this.tabControl1_SelectedIndexChanged);
//
// tabPage1
//
this.tabPage1.Controls.Add(this.panel3);
this.tabPage1.Controls.Add(this.label3);
this.tabPage1.Controls.Add(this.comboBox2);
this.tabPage1.Controls.Add(this.label2);
this.tabPage1.Controls.Add(this.label1);
this.tabPage1.Controls.Add(this.panel2);
this.tabPage1.Controls.Add(this.panel1);
this.tabPage1.Controls.Add(this.comboBox1);
this.tabPage1.Controls.Add(this.fontLabel);
this.tabPage1.Controls.Add(this.BackgroundColorLabel);
this.tabPage1.Location = new System.Drawing.Point(4, 22);
this.tabPage1.Name = "tabPage1";
this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
this.tabPage1.Size = new System.Drawing.Size(252, 192);
this.tabPage1.TabIndex = 0;
this.tabPage1.Text = "Fonts and Colors";
this.tabPage1.UseVisualStyleBackColor = true;
//
// panel3
//
this.panel3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel3.Cursor = System.Windows.Forms.Cursors.Hand;
this.panel3.Location = new System.Drawing.Point(136, 151);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(100, 21);
this.panel3.TabIndex = 12;
this.panel3.Click += new System.EventHandler(this.panel3_Click);
//
// label3
//
this.label3.AutoSize = true;
this.label3.Location = new System.Drawing.Point(7, 154);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(83, 13);
this.label3.TabIndex = 11;
this.label3.Text = "Highlights Color:";
//
// comboBox2
//
this.comboBox2.FormattingEnabled = true;
this.comboBox2.Items.AddRange(new object[] {
"8",
"9",
"10",
"11",
"12",
"14",
"16",
"18",
"20",
"22",
"24",
"26",
"28",
"36",
"48",
"72"});
this.comboBox2.Location = new System.Drawing.Point(136, 49);
this.comboBox2.Name = "comboBox2";
this.comboBox2.Size = new System.Drawing.Size(100, 21);
this.comboBox2.TabIndex = 6;
//
// label2
//
this.label2.AutoSize = true;
this.label2.Location = new System.Drawing.Point(7, 120);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(95, 13);
this.label2.TabIndex = 10;
this.label2.Text = "Background Color:";
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(7, 52);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(54, 13);
this.label1.TabIndex = 9;
this.label1.Text = "Font Size:";
//
// panel2
//
this.panel2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel2.Cursor = System.Windows.Forms.Cursors.Hand;
this.panel2.Location = new System.Drawing.Point(136, 117);
this.panel2.Name = "panel2";
this.panel2.Size = new System.Drawing.Size(100, 21);
this.panel2.TabIndex = 8;
this.panel2.Click += new System.EventHandler(this.panel2_Click);
//
// panel1
//
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.panel1.Cursor = System.Windows.Forms.Cursors.Hand;
this.panel1.Location = new System.Drawing.Point(136, 83);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(100, 21);
this.panel1.TabIndex = 7;
this.panel1.Click += new System.EventHandler(this.panel1_Click_1);
//
// comboBox1
//
this.comboBox1.FormattingEnabled = true;
this.comboBox1.Location = new System.Drawing.Point(136, 15);
this.comboBox1.Name = "comboBox1";
this.comboBox1.Size = new System.Drawing.Size(100, 21);
this.comboBox1.TabIndex = 5;
//
// tabPage2
//
this.tabPage2.Controls.Add(this.textBox2);
this.tabPage2.Controls.Add(this.label7);
this.tabPage2.Controls.Add(this.comboBox4);
this.tabPage2.Controls.Add(this.textBox1);
this.tabPage2.Controls.Add(this.comboBox3);
this.tabPage2.Controls.Add(this.label6);
this.tabPage2.Controls.Add(this.label5);
this.tabPage2.Controls.Add(this.label4);
this.tabPage2.Location = new System.Drawing.Point(4, 22);
this.tabPage2.Name = "tabPage2";
this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
this.tabPage2.Size = new System.Drawing.Size(252, 192);
this.tabPage2.TabIndex = 1;
this.tabPage2.Text = "Encrypt/Decrypt";
this.tabPage2.UseVisualStyleBackColor = true;
//
// textBox2
//
this.textBox2.Location = new System.Drawing.Point(136, 117);
this.textBox2.Name = "textBox2";
this.textBox2.Size = new System.Drawing.Size(100, 20);
this.textBox2.TabIndex = 7;
//
// label7
//
this.label7.AutoSize = true;
this.label7.Location = new System.Drawing.Point(7, 120);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(102, 13);
this.label7.TabIndex = 6;
this.label7.Text = "Password Iterations:";
//
// comboBox4
//
this.comboBox4.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBox4.FormattingEnabled = true;
this.comboBox4.Items.AddRange(new object[] {
"SHA1",
"MD5"});
this.comboBox4.Location = new System.Drawing.Point(136, 15);
this.comboBox4.Name = "comboBox4";
this.comboBox4.Size = new System.Drawing.Size(100, 21);
this.comboBox4.TabIndex = 5;
//
// textBox1
//
this.textBox1.Location = new System.Drawing.Point(136, 83);
this.textBox1.Margin = new System.Windows.Forms.Padding(10, 3, 3, 3);
this.textBox1.Name = "textBox1";
this.textBox1.Size = new System.Drawing.Size(100, 20);
this.textBox1.TabIndex = 4;
//
// comboBox3
//
this.comboBox3.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.comboBox3.FormattingEnabled = true;
this.comboBox3.Items.AddRange(new object[] {
"128",
"192",
"256"});
this.comboBox3.Location = new System.Drawing.Point(136, 49);
this.comboBox3.Name = "comboBox3";
this.comboBox3.Size = new System.Drawing.Size(100, 21);
this.comboBox3.TabIndex = 3;
//
// label6
//
this.label6.AutoSize = true;
this.label6.Location = new System.Drawing.Point(7, 86);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(50, 13);
this.label6.TabIndex = 2;
this.label6.Text = "The Salt:";
//
// label5
//
this.label5.AutoSize = true;
this.label5.Location = new System.Drawing.Point(7, 52);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(51, 13);
this.label5.TabIndex = 1;
this.label5.Text = "Key Size:";
//
// label4
//
this.label4.AutoSize = true;
this.label4.Location = new System.Drawing.Point(7, 18);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(84, 13);
this.label4.TabIndex = 0;
this.label4.Text = "Hash Algorithm: ";
//
// tabPage3
//
this.tabPage3.Controls.Add(this.checkBox3);
this.tabPage3.Controls.Add(this.checkBox2);
this.tabPage3.Controls.Add(this.checkBox1);
this.tabPage3.Location = new System.Drawing.Point(4, 22);
this.tabPage3.Name = "tabPage3";
this.tabPage3.Padding = new System.Windows.Forms.Padding(3);
this.tabPage3.Size = new System.Drawing.Size(252, 192);
this.tabPage3.TabIndex = 2;
this.tabPage3.Text = "Application";
this.tabPage3.UseVisualStyleBackColor = true;
//
// checkBox2
//
this.checkBox2.AutoSize = true;
this.checkBox2.Enabled = false;
this.checkBox2.Location = new System.Drawing.Point(6, 64);
this.checkBox2.Name = "checkBox2";
this.checkBox2.Size = new System.Drawing.Size(117, 17);
this.checkBox2.TabIndex = 1;
this.checkBox2.Text = "Auto check update";
this.checkBox2.UseVisualStyleBackColor = true;
//
// checkBox1
//
this.checkBox1.AutoSize = true;
this.checkBox1.Location = new System.Drawing.Point(7, 18);
this.checkBox1.Name = "checkBox1";
this.checkBox1.Size = new System.Drawing.Size(179, 17);
this.checkBox1.TabIndex = 0;
this.checkBox1.Text = "Associate with enp file extension";
this.checkBox1.UseVisualStyleBackColor = true;
//
// button1
//
this.button1.Location = new System.Drawing.Point(6, 225);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(98, 23);
this.button1.TabIndex = 5;
this.button1.Text = "Reset to defaults";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// checkBox3
//
this.checkBox3.AutoSize = true;
this.checkBox3.Location = new System.Drawing.Point(7, 41);
this.checkBox3.Name = "checkBox3";
this.checkBox3.Size = new System.Drawing.Size(92, 17);
this.checkBox3.TabIndex = 2;
this.checkBox3.Text = "Show Toolbar";
this.checkBox3.UseVisualStyleBackColor = true;
//
// SettingsForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(263, 254);
this.Controls.Add(this.button1);
this.Controls.Add(this.tabControl1);
this.Controls.Add(this.saveSettingsButton);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "SettingsForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Settings";
this.TopMost = true;
this.Load += new System.EventHandler(this.SettingsForm_Load);
this.tabControl1.ResumeLayout(false);
this.tabPage1.ResumeLayout(false);
this.tabPage1.PerformLayout();
this.tabPage2.ResumeLayout(false);
this.tabPage2.PerformLayout();
this.tabPage3.ResumeLayout(false);
this.tabPage3.PerformLayout();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.Label BackgroundColorLabel;
private System.Windows.Forms.Button saveSettingsButton;
private System.Windows.Forms.Label fontLabel;
private System.Windows.Forms.TabControl tabControl1;
private System.Windows.Forms.TabPage tabPage1;
private System.Windows.Forms.TabPage tabPage2;
private System.Windows.Forms.TabPage tabPage3;
private System.Windows.Forms.CheckBox checkBox1;
private System.Windows.Forms.CheckBox checkBox2;
private System.Windows.Forms.ComboBox comboBox1;
private System.Windows.Forms.ComboBox comboBox2;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Panel panel2;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Panel panel3;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.ColorDialog colorDialog1;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.ComboBox comboBox3;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.ComboBox comboBox4;
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.CheckBox checkBox3;
}
}

View file

@ -1,183 +0,0 @@
using Microsoft.Win32;
using System;
using System.Drawing;
using System.IO;
using System.Media;
using System.Reflection;
using System.Windows.Forms;
namespace Crypto_Notepad
{
public partial class SettingsForm : Form
{
Properties.Settings ps = Properties.Settings.Default;
MainWindow ma = new MainWindow();
public SettingsForm()
{
InitializeComponent();
}
private void SettingsForm_Load(object sender, EventArgs e)
{
foreach (FontFamily fonts in FontFamily.Families)
{
comboBox1.Items.Add(fonts.Name);
}
comboBox1.Text = ps.RichTextFont;
comboBox2.Text = ps.RichTextSize.ToString();
comboBox4.Text = ps.HashAlgorithm;
comboBox3.Text = ps.KeySize.ToString();
textBox1.Text = ps.TheSalt;
textBox2.Text = ps.PasswordIterations.ToString();
checkBox1.Checked = ps.AssociateCheck;
checkBox3.Checked = ps.ShowToolbar;
panel1.BackColor = ps.RichForeColor;
panel2.BackColor = ps.RichBackColor;
panel3.BackColor = ps.HighlightsColor;
}
private void saveSettingsButton_Click(object sender, EventArgs e)
{
SetSettings("Save");
}
public static void AssociateExtension(string applicationExecutablePath, string extension)
{
try
{
RegistryKey key = Registry.CurrentUser.OpenSubKey("Software\\Classes", true);
key.CreateSubKey("." + extension).SetValue(string.Empty, extension + "_auto_file");
key = key.CreateSubKey(extension + "_auto_file");
key.CreateSubKey("DefaultIcon").SetValue(string.Empty, Path.GetDirectoryName(Application.ExecutablePath) + "\\Crypto Notepad.exe" + ",0");
key = key.CreateSubKey("Shell");
key.SetValue(string.Empty, "Open");
key = key.CreateSubKey("Open");
key.CreateSubKey("Command").SetValue(string.Empty, "\"" + applicationExecutablePath + "\" \"%1\"");
key.CreateSubKey("ddeexec\\Topic").SetValue(string.Empty, "System");
}
catch (Exception)
{
}
}
public static void DissociateExtension(string applicationExecutablePath, string extension)
{
try
{
RegistryKey key = Registry.CurrentUser.OpenSubKey("Software\\Classes", true);
key.DeleteSubKeyTree(extension + "_auto_file");
key.DeleteSubKeyTree("." + extension);
}
catch (Exception)
{
}
}
private void panel1_Click_1(object sender, EventArgs e)
{
colorDialog1.Color = panel1.BackColor;
using (new CenterWinDialog(this))
{
colorDialog1.ShowDialog();
}
panel1.BackColor = colorDialog1.Color;
}
private void panel2_Click(object sender, EventArgs e)
{
colorDialog1.Color = panel2.BackColor;
using (new CenterWinDialog(this))
{
colorDialog1.ShowDialog();
}
panel2.BackColor = colorDialog1.Color;
}
private void panel3_Click(object sender, EventArgs e)
{
colorDialog1.Color = panel3.BackColor;
using (new CenterWinDialog(this))
{
colorDialog1.ShowDialog();
}
panel3.BackColor = colorDialog1.Color;
}
private void tabControl1_SelectedIndexChanged(object sender, EventArgs e)
{
if ((tabControl1.SelectedTab == tabControl1.TabPages["tabPage2"]) && (ps.WarningMsg == false))
{
SystemSounds.Beep.Play();
WarningMsgBox w = new WarningMsgBox();
w.ShowDialog(this);
}
}
private void button1_Click(object sender, EventArgs e)
{
using (new CenterWinDialog(this))
{
DialogResult result = MessageBox.Show("Reset to defaults?", "", MessageBoxButtons.YesNo, MessageBoxIcon.Error);
if (result == DialogResult.Yes)
{
SetSettings("Default");
}
}
}
private void SetSettings(string value)
{
if (value == "Save")
{
if (checkBox1.Checked == true)
{
AssociateExtension(Assembly.GetEntryAssembly().Location, "enp");
}
if (checkBox1.Checked == false)
{
DissociateExtension(Assembly.GetEntryAssembly().Location, "enp");
}
ps.RichForeColor = panel1.BackColor;
ps.RichBackColor = panel2.BackColor;
ps.HighlightsColor = panel3.BackColor;
ps.RichTextFont = comboBox1.Text;
ps.RichTextSize = Convert.ToInt32(comboBox2.Text.ToString());
ps.AssociateCheck = checkBox1.Checked;
ps.HashAlgorithm = comboBox4.Text;
ps.KeySize = Convert.ToInt32(comboBox3.Text.ToString());
ps.TheSalt = textBox1.Text;
ps.PasswordIterations = Convert.ToInt32(textBox2.Text.ToString());
ps.ShowToolbar = checkBox3.Checked;
ps.Save();
MainWindow.settingsChanged = true;
this.Hide();
}
if (value == "Default")
{
checkBox1.Checked = false;
panel1.BackColor = Color.FromArgb(228, 228, 228);
panel2.BackColor = Color.FromArgb(56, 56, 56);
panel3.BackColor = Color.FromArgb(101, 51, 6);
comboBox1.Text = "Consolas";
comboBox2.Text = 11.ToString();
checkBox1.Checked = false;
comboBox4.Text = "SHA1";
comboBox3.Text = 192.ToString();
textBox2.Text = 2.ToString();
checkBox3.Checked = true;
ps.ShowToolbar = true;
}
}
}
}

View file

@ -1,119 +0,0 @@
namespace Crypto_Notepad
{
partial class WarningMsgBox
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.button1 = new System.Windows.Forms.Button();
this.panel1 = new System.Windows.Forms.Panel();
this.label1 = new System.Windows.Forms.Label();
this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.checkBox1 = new System.Windows.Forms.CheckBox();
this.panel1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.SuspendLayout();
//
// button1
//
this.button1.Location = new System.Drawing.Point(209, 98);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(75, 23);
this.button1.TabIndex = 0;
this.button1.Text = "OK";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// panel1
//
this.panel1.BackColor = System.Drawing.Color.White;
this.panel1.Controls.Add(this.label1);
this.panel1.Controls.Add(this.pictureBox1);
this.panel1.Location = new System.Drawing.Point(0, 0);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(294, 87);
this.panel1.TabIndex = 1;
//
// label1
//
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
this.label1.Location = new System.Drawing.Point(84, 7);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(206, 69);
this.label1.TabIndex = 1;
this.label1.Text = "If you change settings in this tab, decrypt the previously encrypted files will n" +
"ot be possible.";
//
// pictureBox1
//
this.pictureBox1.Image = global::Crypto_Notepad.Properties.Resources.Warning_icon_hi;
this.pictureBox1.Location = new System.Drawing.Point(7, 7);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(71, 69);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
this.pictureBox1.TabIndex = 0;
this.pictureBox1.TabStop = false;
//
// checkBox1
//
this.checkBox1.AutoSize = true;
this.checkBox1.Location = new System.Drawing.Point(12, 101);
this.checkBox1.Name = "checkBox1";
this.checkBox1.Size = new System.Drawing.Size(172, 17);
this.checkBox1.TabIndex = 2;
this.checkBox1.Text = "Don\'t show this message again";
this.checkBox1.UseVisualStyleBackColor = true;
//
// WarningMsgBox
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(294, 130);
this.Controls.Add(this.checkBox1);
this.Controls.Add(this.panel1);
this.Controls.Add(this.button1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "WarningMsgBox";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "Warning";
this.panel1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.CheckBox checkBox1;
private System.Windows.Forms.PictureBox pictureBox1;
private System.Windows.Forms.Label label1;
}
}

View file

@ -1,25 +0,0 @@
using System;
using System.Windows.Forms;
namespace Crypto_Notepad
{
public partial class WarningMsgBox : Form
{
Properties.Settings ps = Properties.Settings.Default;
public WarningMsgBox()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
if (checkBox1.Checked == true)
{
ps.WarningMsg = true;
ps.Save();
}
this.Close();
}
}
}

View file

@ -1,120 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 97 KiB

View file

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Costura.Fody" version="4.1.0" targetFramework="net472" />
<package id="Fody" version="6.0.6" targetFramework="net461" developmentDependency="true" />
<package id="PasswordGenerator" version="2.0.5" targetFramework="net461" />
</packages>

BIN
Crypto-Notepad-Update.zip Normal file

Binary file not shown.

View file

@ -1,6 +1,6 @@
The MIT License (MIT) The MIT License (MIT)
Copyright (c) 2015 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
@ -19,4 +19,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE. SOFTWARE.

13
PULL_REQUEST_TEMPLATE.md Normal file
View file

@ -0,0 +1,13 @@
# Pull Request Information
## Summary
Summary description of all changes.
* First
* Second
* Third
## Changes and Descriptions
Detailed description of each change.
## Additional context
Add any other context or screenshots about the pull request here.

View file

@ -1,3 +1,53 @@
# Crypto Notepad [![SWUbanner](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner-direct-single.svg)](https://stand-with-ukraine.pp.ua/)
This app is not yet complete, and not recommended to encrypt important files. # 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)
[![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)
[![documentation](https://img.shields.io/badge/documentation-wiki-yellowgreen.svg?color=F09C29)](https://github.com/Crypto-Notepad/Crypto-Notepad/wiki/Documentation)
Notepad-like simple text editor for Windows, where files are saved and loaded encrypted with AES algorithms.
[![screenshot](https://i.imgur.com/rqfKzNX.gif)](https://github.com/Crypto-Notepad/Crypto-Notepad/wiki/Documentation#screenshots)
## Features
* All the features of the default Windows Notepad
* Associate own file type with application
* Integrate with windows context menu
* Сustomizable encryption options
* Built-in password generator
* Detecting links in editor
* Drag and Drop support
* Сustomizable interface
* Pasteboard function
* Autoclear clipboard
* Autolock editor
* Rich settings
* 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
* Windows 7 SP1 and higher
* .NET Framework 4.6.1 and higher
## Build
App was created in Visual Studio Community, you can run the *.sln file and simply build a project
## Contributing
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:

1
version.txt Normal file
View file

@ -0,0 +1 @@
1.7.3.0