mirror of
https://github.com/Crypto-Notepad/Crypto-Notepad.git
synced 2026-03-11 08:55:25 +00:00
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.
This commit is contained in:
parent
2635269c39
commit
3e1ef07105
16 changed files with 1155 additions and 950 deletions
|
|
@ -12,7 +12,7 @@
|
|||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/></startup>
|
||||
<userSettings>
|
||||
<Crypto_Notepad.Properties.Settings>
|
||||
<setting name="editroForeColor" serializeAs="String">
|
||||
<setting name="editorForeColor" serializeAs="String">
|
||||
<value>Black</value>
|
||||
</setting>
|
||||
<setting name="editorBackColor" serializeAs="String">
|
||||
|
|
@ -195,6 +195,9 @@
|
|||
<setting name="openTxtUnencrypted" serializeAs="String">
|
||||
<value>False</value>
|
||||
</setting>
|
||||
<setting name="trayMenu" serializeAs="String">
|
||||
<value>False</value>
|
||||
</setting>
|
||||
</Crypto_Notepad.Properties.Settings>
|
||||
</userSettings>
|
||||
</configuration>
|
||||
|
|
|
|||
|
|
@ -199,6 +199,8 @@
|
|||
<None Include="App.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Resources\application.png" />
|
||||
<None Include="Resources\application-dock-180.png" />
|
||||
<None Include="Resources\Updater.exe" />
|
||||
<Content Include="Notepad_Lock.ico" />
|
||||
</ItemGroup>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
using Microsoft.Win32;
|
||||
using System;
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Windows.Forms;
|
||||
|
||||
|
|
@ -17,6 +19,12 @@ public static void AppendLine(this TextBox source, string value)
|
|||
source.AppendText("\r\n" + value);
|
||||
}
|
||||
|
||||
public static bool IsOnScreen(Form form)
|
||||
{
|
||||
Rectangle formRectangle = new Rectangle(form.Left, form.Top, form.Width, form.Height);
|
||||
return Screen.AllScreens.Any(s => s.WorkingArea.IntersectsWith(formRectangle));
|
||||
}
|
||||
|
||||
public static void Times(this int count, Action action)
|
||||
{
|
||||
for (int i = 0; i < count; i++)
|
||||
|
|
|
|||
124
Crypto Notepad/Forms/MainForm.Designer.cs
generated
124
Crypto Notepad/Forms/MainForm.Designer.cs
generated
|
|
@ -121,20 +121,24 @@ public void InitializeComponent()
|
|||
this.statusPanelClipboardProgressBar = new System.Windows.Forms.ToolStripProgressBar();
|
||||
this.trayIcon = new System.Windows.Forms.NotifyIcon(this.components);
|
||||
this.trayMenu = new System.Windows.Forms.ContextMenuStrip(this.components);
|
||||
this.showTrayMenu = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.settingsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.resetWindowLocationTrayMenu = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.showWindowTrayMenu = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.hideWindowTrayMenu = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
|
||||
this.exitTrayMenu = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.fileLockedPanel = new System.Windows.Forms.Panel();
|
||||
this.fileLockedCloseButton = new System.Windows.Forms.Button();
|
||||
this.fileLockedOkButton = new System.Windows.Forms.Button();
|
||||
this.fileLockedKeyTextBox = new System.Windows.Forms.PlaceholderTextBox();
|
||||
this.fileLockedShowKey = new System.Windows.Forms.PictureBox();
|
||||
this.fileLockedLabel = new System.Windows.Forms.Label();
|
||||
this.toolTip = new System.Windows.Forms.ToolTip(this.components);
|
||||
this.richTextBoxPanel = new System.Windows.Forms.Panel();
|
||||
this.richTextBox = new Crypto_Notepad.ExRichTextBox();
|
||||
this.statusPanelTimer = new System.Windows.Forms.Timer(this.components);
|
||||
this.lockTimer = new System.Windows.Forms.Timer(this.components);
|
||||
this.clipboardTimer = new System.Windows.Forms.Timer(this.components);
|
||||
this.fileLockedKeyTextBox = new System.Windows.Forms.PlaceholderTextBox();
|
||||
this.richTextBox = new Crypto_Notepad.ExRichTextBox();
|
||||
this.mainMenu.SuspendLayout();
|
||||
this.contextMenu.SuspendLayout();
|
||||
this.searchPanel.SuspendLayout();
|
||||
|
|
@ -1146,24 +1150,58 @@ public void InitializeComponent()
|
|||
// trayMenu
|
||||
//
|
||||
this.trayMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.showTrayMenu,
|
||||
this.settingsToolStripMenuItem,
|
||||
this.resetWindowLocationTrayMenu,
|
||||
this.showWindowTrayMenu,
|
||||
this.hideWindowTrayMenu,
|
||||
this.toolStripSeparator1,
|
||||
this.exitTrayMenu});
|
||||
this.trayMenu.Name = "mnuTray";
|
||||
this.trayMenu.Size = new System.Drawing.Size(104, 48);
|
||||
this.trayMenu.Size = new System.Drawing.Size(199, 120);
|
||||
this.trayMenu.Opening += new System.ComponentModel.CancelEventHandler(this.TrayMenu_Opening);
|
||||
//
|
||||
// showTrayMenu
|
||||
// settingsToolStripMenuItem
|
||||
//
|
||||
this.showTrayMenu.Image = global::Crypto_Notepad.Properties.Resources.application_blue;
|
||||
this.showTrayMenu.Name = "showTrayMenu";
|
||||
this.showTrayMenu.Size = new System.Drawing.Size(103, 22);
|
||||
this.showTrayMenu.Text = "Show";
|
||||
this.showTrayMenu.Click += new System.EventHandler(this.ShowTrayMenu_Click);
|
||||
this.settingsToolStripMenuItem.Image = global::Crypto_Notepad.Properties.Resources.gear;
|
||||
this.settingsToolStripMenuItem.Name = "settingsToolStripMenuItem";
|
||||
this.settingsToolStripMenuItem.Size = new System.Drawing.Size(198, 22);
|
||||
this.settingsToolStripMenuItem.Text = "Settings";
|
||||
this.settingsToolStripMenuItem.Click += new System.EventHandler(this.SettingsToolStripMenuItem_Click);
|
||||
//
|
||||
// resetWindowLocationTrayMenu
|
||||
//
|
||||
this.resetWindowLocationTrayMenu.Image = global::Crypto_Notepad.Properties.Resources.application_dock_180;
|
||||
this.resetWindowLocationTrayMenu.Name = "resetWindowLocationTrayMenu";
|
||||
this.resetWindowLocationTrayMenu.Size = new System.Drawing.Size(198, 22);
|
||||
this.resetWindowLocationTrayMenu.Text = "Reset Window Location";
|
||||
this.resetWindowLocationTrayMenu.Click += new System.EventHandler(this.ResetWindowLocationTrayMenu_Click);
|
||||
//
|
||||
// showWindowTrayMenu
|
||||
//
|
||||
this.showWindowTrayMenu.Image = global::Crypto_Notepad.Properties.Resources.application_blue;
|
||||
this.showWindowTrayMenu.Name = "showWindowTrayMenu";
|
||||
this.showWindowTrayMenu.Size = new System.Drawing.Size(198, 22);
|
||||
this.showWindowTrayMenu.Text = "Show Window";
|
||||
this.showWindowTrayMenu.Click += new System.EventHandler(this.ShowWindowTrayMenu_Click);
|
||||
//
|
||||
// hideWindowTrayMenu
|
||||
//
|
||||
this.hideWindowTrayMenu.Image = global::Crypto_Notepad.Properties.Resources.application;
|
||||
this.hideWindowTrayMenu.Name = "hideWindowTrayMenu";
|
||||
this.hideWindowTrayMenu.Size = new System.Drawing.Size(198, 22);
|
||||
this.hideWindowTrayMenu.Text = "Hide Window";
|
||||
this.hideWindowTrayMenu.Click += new System.EventHandler(this.HideWindowTrayMenu_Click);
|
||||
//
|
||||
// toolStripSeparator1
|
||||
//
|
||||
this.toolStripSeparator1.Name = "toolStripSeparator1";
|
||||
this.toolStripSeparator1.Size = new System.Drawing.Size(195, 6);
|
||||
//
|
||||
// exitTrayMenu
|
||||
//
|
||||
this.exitTrayMenu.Image = global::Crypto_Notepad.Properties.Resources.cross_button;
|
||||
this.exitTrayMenu.Name = "exitTrayMenu";
|
||||
this.exitTrayMenu.Size = new System.Drawing.Size(103, 22);
|
||||
this.exitTrayMenu.Size = new System.Drawing.Size(198, 22);
|
||||
this.exitTrayMenu.Text = "Exit";
|
||||
this.exitTrayMenu.Click += new System.EventHandler(this.ExitTrayMenu_Click);
|
||||
//
|
||||
|
|
@ -1218,6 +1256,20 @@ public void InitializeComponent()
|
|||
this.fileLockedOkButton.UseVisualStyleBackColor = true;
|
||||
this.fileLockedOkButton.Click += new System.EventHandler(this.FileLockedOkButton_Click);
|
||||
//
|
||||
// fileLockedKeyTextBox
|
||||
//
|
||||
this.fileLockedKeyTextBox.Location = new System.Drawing.Point(6, 34);
|
||||
this.fileLockedKeyTextBox.Name = "fileLockedKeyTextBox";
|
||||
this.fileLockedKeyTextBox.Placeholder = "Password";
|
||||
this.fileLockedKeyTextBox.PlaceholderActiveForeColor = System.Drawing.Color.DarkGray;
|
||||
this.fileLockedKeyTextBox.PlaceholderFont = new System.Drawing.Font("Segoe UI", 8.25F);
|
||||
this.fileLockedKeyTextBox.PlaceholderForeColor = System.Drawing.Color.DarkGray;
|
||||
this.fileLockedKeyTextBox.Size = new System.Drawing.Size(231, 22);
|
||||
this.fileLockedKeyTextBox.TabIndex = 8;
|
||||
this.fileLockedKeyTextBox.UseSystemPasswordChar = true;
|
||||
this.fileLockedKeyTextBox.TextChanged += new System.EventHandler(this.FileLockedKeyTextBox_TextChanged);
|
||||
this.fileLockedKeyTextBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FileLockedKeyTextBox_KeyDown);
|
||||
//
|
||||
// fileLockedShowKey
|
||||
//
|
||||
this.fileLockedShowKey.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
|
|
@ -1261,34 +1313,6 @@ public void InitializeComponent()
|
|||
this.richTextBoxPanel.Size = new System.Drawing.Size(544, 226);
|
||||
this.richTextBoxPanel.TabIndex = 21;
|
||||
//
|
||||
// statusPanelTimer
|
||||
//
|
||||
this.statusPanelTimer.Interval = 1;
|
||||
this.statusPanelTimer.Tick += new System.EventHandler(this.StatusPanelTimer_Tick);
|
||||
//
|
||||
// lockTimer
|
||||
//
|
||||
this.lockTimer.Tick += new System.EventHandler(this.LockTimer_Tick);
|
||||
//
|
||||
// clipboardTimer
|
||||
//
|
||||
this.clipboardTimer.Interval = 50;
|
||||
this.clipboardTimer.Tick += new System.EventHandler(this.ClipboardTimer_Tick);
|
||||
//
|
||||
// fileLockedKeyTextBox
|
||||
//
|
||||
this.fileLockedKeyTextBox.Location = new System.Drawing.Point(6, 34);
|
||||
this.fileLockedKeyTextBox.Name = "fileLockedKeyTextBox";
|
||||
this.fileLockedKeyTextBox.Placeholder = "Password";
|
||||
this.fileLockedKeyTextBox.PlaceholderActiveForeColor = System.Drawing.Color.DarkGray;
|
||||
this.fileLockedKeyTextBox.PlaceholderFont = new System.Drawing.Font("Segoe UI", 8.25F);
|
||||
this.fileLockedKeyTextBox.PlaceholderForeColor = System.Drawing.Color.DarkGray;
|
||||
this.fileLockedKeyTextBox.Size = new System.Drawing.Size(231, 22);
|
||||
this.fileLockedKeyTextBox.TabIndex = 8;
|
||||
this.fileLockedKeyTextBox.UseSystemPasswordChar = true;
|
||||
this.fileLockedKeyTextBox.TextChanged += new System.EventHandler(this.FileLockedKeyTextBox_TextChanged);
|
||||
this.fileLockedKeyTextBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FileLockedKeyTextBox_KeyDown);
|
||||
//
|
||||
// richTextBox
|
||||
//
|
||||
this.richTextBox.AcceptsTab = true;
|
||||
|
|
@ -1309,6 +1333,20 @@ public void InitializeComponent()
|
|||
this.richTextBox.TextChanged += new System.EventHandler(this.RichTextBox_TextChanged);
|
||||
this.richTextBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.RichTextBox_KeyDown);
|
||||
//
|
||||
// statusPanelTimer
|
||||
//
|
||||
this.statusPanelTimer.Interval = 1;
|
||||
this.statusPanelTimer.Tick += new System.EventHandler(this.StatusPanelTimer_Tick);
|
||||
//
|
||||
// lockTimer
|
||||
//
|
||||
this.lockTimer.Tick += new System.EventHandler(this.LockTimer_Tick);
|
||||
//
|
||||
// clipboardTimer
|
||||
//
|
||||
this.clipboardTimer.Interval = 50;
|
||||
this.clipboardTimer.Tick += new System.EventHandler(this.ClipboardTimer_Tick);
|
||||
//
|
||||
// MainForm
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
|
|
@ -1447,7 +1485,7 @@ public void InitializeComponent()
|
|||
protected internal System.Windows.Forms.PictureBox alwaysOnTopToolbarButton;
|
||||
protected internal System.Windows.Forms.ToolTip toolTip;
|
||||
protected internal System.Windows.Forms.ContextMenuStrip trayMenu;
|
||||
protected internal System.Windows.Forms.ToolStripMenuItem showTrayMenu;
|
||||
protected internal System.Windows.Forms.ToolStripMenuItem showWindowTrayMenu;
|
||||
protected internal System.Windows.Forms.ToolStripMenuItem exitTrayMenu;
|
||||
protected internal System.Windows.Forms.PlaceholderTextBox fileLockedKeyTextBox;
|
||||
protected internal System.Windows.Forms.Panel richTextBoxPanel;
|
||||
|
|
@ -1473,5 +1511,9 @@ public void InitializeComponent()
|
|||
private System.Windows.Forms.ToolStripMenuItem clearClipboardMainMenu;
|
||||
private System.Windows.Forms.ToolStripMenuItem tryToDecryptMainMenu;
|
||||
private System.Windows.Forms.PictureBox tryToDecryptToolbarButton;
|
||||
private System.Windows.Forms.ToolStripMenuItem settingsToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
|
||||
private System.Windows.Forms.ToolStripMenuItem resetWindowLocationTrayMenu;
|
||||
private System.Windows.Forms.ToolStripMenuItem hideWindowTrayMenu;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
using Crypto_Notepad.Properties;
|
||||
using Microsoft.Win32;
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.Diagnostics;
|
||||
|
|
@ -23,6 +24,7 @@ public partial class MainForm : Form
|
|||
bool cancelPressed = false;
|
||||
int findPos = 0;
|
||||
int caretPos;
|
||||
FormWindowState currentWindowState;
|
||||
public MainForm()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
|
@ -46,6 +48,17 @@ protected override void WndProc(ref Message m)
|
|||
{
|
||||
richTextBox.Visible = true;
|
||||
}
|
||||
|
||||
switch (m.Msg)
|
||||
{
|
||||
case WM_SYSCOMMAND:
|
||||
int command = m.WParam.ToInt32() & 0xfff0;
|
||||
if (command == SC_MINIMIZE)
|
||||
{
|
||||
currentWindowState = WindowState;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
catch (OverflowException)
|
||||
{
|
||||
|
|
@ -217,7 +230,7 @@ private void SendTo()
|
|||
|
||||
private async void ContextMenuEncryptReplace()
|
||||
{
|
||||
DialogResult res = MessageBox.Show(this, "This action will delete the source file and replace it with encrypted version. File must be in UTF-8 Encoding.", PublicVar.appName,
|
||||
DialogResult res = MessageBox.Show(this, "This action will delete the source file and replace it with encrypted version. File must be in UTF-8 Encoding.", PublicVar.appName,
|
||||
MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
|
||||
if (res == DialogResult.Cancel)
|
||||
{
|
||||
|
|
@ -233,7 +246,7 @@ private async void ContextMenuEncryptReplace()
|
|||
enterPasswordForm.ShowDialog();
|
||||
File.Delete(args[1]);
|
||||
string unencryptedText = richTextBox.Text;
|
||||
string encryptedText = await AES.Encrypt(richTextBox.Text, TypedPassword.Value, null, settings.HashAlgorithm, Convert.ToInt32(settings.PasswordIterations),
|
||||
string encryptedText = await AES.Encrypt(richTextBox.Text, TypedPassword.Value, null, settings.HashAlgorithm, Convert.ToInt32(settings.PasswordIterations),
|
||||
Convert.ToInt32(settings.KeySize));
|
||||
using (StreamWriter writer = new StreamWriter(newFileName))
|
||||
{
|
||||
|
|
@ -564,8 +577,12 @@ private void LoadSettings()
|
|||
{
|
||||
Location = settings.windowLocation;
|
||||
}
|
||||
if (!Methods.IsOnScreen(this))
|
||||
{
|
||||
Location = new Point(1, 1);
|
||||
}
|
||||
|
||||
Size = settings.windowSize;
|
||||
WindowState = settings.windowState;
|
||||
if (settings.toolbarBorder)
|
||||
{
|
||||
toolbarPanel.BorderStyle = BorderStyle.FixedSingle;
|
||||
|
|
@ -576,7 +593,7 @@ private void LoadSettings()
|
|||
}
|
||||
TopMost = settings.alwaysOnTop;
|
||||
alwaysOnTopMainMenu.Checked = settings.alwaysOnTop;
|
||||
if (settings.closeToTray | settings.minimizeToTray)
|
||||
if (settings.closeToTray | settings.minimizeToTray | settings.trayMenu)
|
||||
{
|
||||
trayIcon.Visible = true;
|
||||
}
|
||||
|
|
@ -597,7 +614,7 @@ private void LoadSettings()
|
|||
statusPanelReadonlyLabel.Visible = settings.statusPanelReadonly;
|
||||
statusPanelWordwrapLabel.Visible = settings.statusPanelWordWrap;
|
||||
richTextBox.WordWrap = settings.editorWrap;
|
||||
richTextBox.ForeColor = settings.editroForeColor;
|
||||
richTextBox.ForeColor = settings.editorForeColor;
|
||||
richTextBox.BackColor = settings.editorBackColor;
|
||||
richTextBox.Font = settings.editorFont;
|
||||
BackColor = settings.editorBackColor;
|
||||
|
|
@ -610,6 +627,24 @@ private void LoadSettings()
|
|||
searchFindNextButton.ForeColor = settings.searchPanelForeColor;
|
||||
searchCloseButton.ForeColor = settings.searchPanelForeColor;
|
||||
searchPanel.CellBorderStyle = (TableLayoutPanelCellBorderStyle)Enum.Parse(typeof(TableLayoutPanelCellBorderStyle), settings.searchPanelBorder);
|
||||
|
||||
RegistryKey explorerAssociate = Registry.CurrentUser.OpenSubKey(@"Software\Classes\.cnp\", true);
|
||||
if (settings.explorerAssociate && explorerAssociate == null)
|
||||
{
|
||||
Methods.AssociateExtension(Assembly.GetEntryAssembly().Location, "cnp");
|
||||
}
|
||||
|
||||
RegistryKey explorerIntegrate = Registry.CurrentUser.OpenSubKey(@"Software\Classes\*\shell\Crypto Notepad\", true);
|
||||
if (settings.explorerIntegrate && explorerIntegrate == null)
|
||||
{
|
||||
Methods.MenuIntegrate("enable");
|
||||
}
|
||||
|
||||
string shortcutPath = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + @"\Microsoft\Windows\SendTo\Crypto Notepad.lnk";
|
||||
if (settings.explorerSendTo && !File.Exists(shortcutPath))
|
||||
{
|
||||
Methods.SendToShortcut();
|
||||
}
|
||||
}
|
||||
|
||||
public void MenuIcons(bool menuIcons)
|
||||
|
|
@ -656,7 +691,7 @@ public void MenuIcons(bool menuIcons)
|
|||
dropDownItem.Image = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected internal void ShortcutKeys(bool shortcutKeys)
|
||||
|
|
@ -800,12 +835,9 @@ private void StatusPanel_VisibleChanged(object sender, EventArgs e)
|
|||
|
||||
private void MainForm_Resize(object sender, EventArgs e)
|
||||
{
|
||||
if (settings.minimizeToTray)
|
||||
if (WindowState == FormWindowState.Minimized & settings.minimizeToTray)
|
||||
{
|
||||
if (WindowState == FormWindowState.Minimized)
|
||||
{
|
||||
Hide();
|
||||
}
|
||||
Hide();
|
||||
}
|
||||
if (WindowState == FormWindowState.Minimized & settings.autoLock & !string.IsNullOrEmpty(PublicVar.password.Get()))
|
||||
{
|
||||
|
|
@ -922,7 +954,7 @@ private void MainWindow_FormClosing(object sender, FormClosingEventArgs e)
|
|||
using (StreamWriter writer = new StreamWriter(filePath))
|
||||
{
|
||||
string encryptedText = richTextBox.Text;
|
||||
Task.Run(async () => { encryptedText = await AES.Encrypt(encryptedText, PublicVar.password.Get(), null, settings.HashAlgorithm,
|
||||
Task.Run(async () => { encryptedText = await AES.Encrypt(encryptedText, PublicVar.password.Get(), null, settings.HashAlgorithm,
|
||||
Convert.ToInt32(settings.PasswordIterations), Convert.ToInt32(settings.KeySize)); }).Wait();
|
||||
writer.Write(encryptedText);
|
||||
writer.Close();
|
||||
|
|
@ -970,6 +1002,7 @@ private void MainForm_Shown(object sender, EventArgs e)
|
|||
}
|
||||
}
|
||||
}
|
||||
WindowState = settings.windowState;
|
||||
}
|
||||
|
||||
private async void MainWindow_Load(object sender, EventArgs e)
|
||||
|
|
@ -1127,7 +1160,7 @@ private void StatusPanelLabel_Click(object sender, EventArgs e)
|
|||
string exePath = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location) + @"\";
|
||||
using (new CenterWinDialog(this))
|
||||
{
|
||||
DialogResult res = MessageBox.Show(this, "New version is available. Install it now?", PublicVar.appName,
|
||||
DialogResult res = MessageBox.Show(this, "New version is available. Install it now?", PublicVar.appName,
|
||||
MessageBoxButtons.YesNo, MessageBoxIcon.Information);
|
||||
if (res == DialogResult.Yes)
|
||||
{
|
||||
|
|
@ -1239,7 +1272,7 @@ private async void SaveMainMenu_Click(object sender, EventArgs e)
|
|||
UseWaitCursor = true;
|
||||
using (StreamWriter writer = new StreamWriter(filePath))
|
||||
{
|
||||
writer.Write(await AES.Encrypt(richTextBox.Text, PublicVar.password.Get(), null, settings.HashAlgorithm,
|
||||
writer.Write(await AES.Encrypt(richTextBox.Text, PublicVar.password.Get(), null, settings.HashAlgorithm,
|
||||
Convert.ToInt32(settings.PasswordIterations), Convert.ToInt32(settings.KeySize)));
|
||||
writer.Close();
|
||||
}
|
||||
|
|
@ -1356,7 +1389,7 @@ private void DeleteFileToolStripMenuItem_Click(object sender, EventArgs e)
|
|||
PublicVar.messageBoxCenterParent = true;
|
||||
using (new CenterWinDialog(this))
|
||||
{
|
||||
if (MessageBox.Show(this, "Delete file: " + "\"" + filePath + "\"" + " ?", PublicVar.appName,
|
||||
if (MessageBox.Show(this, "Delete file: " + "\"" + filePath + "\"" + " ?", PublicVar.appName,
|
||||
MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
|
||||
{
|
||||
File.Delete(filePath);
|
||||
|
|
@ -2099,23 +2132,68 @@ private void FileLockedCloseButton_MouseLeave(object sender, EventArgs e)
|
|||
|
||||
|
||||
#region Tray
|
||||
private void ResetWindowLocationTrayMenu_Click(object sender, EventArgs e)
|
||||
{
|
||||
Location = new Point(1, 1);
|
||||
}
|
||||
private void SettingsToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
SettingsForm settingsForm = new SettingsForm
|
||||
{
|
||||
Owner = this,
|
||||
StartPosition = FormStartPosition.CenterScreen
|
||||
};
|
||||
settingsForm.ShowDialog();
|
||||
}
|
||||
private void TrayIcon_MouseDoubleClick(object sender, MouseEventArgs e)
|
||||
{
|
||||
if (e.Button == MouseButtons.Left)
|
||||
{
|
||||
Show();
|
||||
WindowState = FormWindowState.Normal;
|
||||
if (!Visible)
|
||||
{
|
||||
Show();
|
||||
WindowState = currentWindowState;
|
||||
}
|
||||
}
|
||||
}
|
||||
private void ShowTrayMenu_Click(object sender, EventArgs e)
|
||||
private void HideWindowTrayMenu_Click(object sender, EventArgs e)
|
||||
{
|
||||
Show();
|
||||
WindowState = FormWindowState.Normal;
|
||||
currentWindowState = WindowState;
|
||||
WindowState = FormWindowState.Minimized;
|
||||
Hide();
|
||||
}
|
||||
private void ShowWindowTrayMenu_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (!Visible)
|
||||
{
|
||||
Show();
|
||||
WindowState = currentWindowState;
|
||||
}
|
||||
}
|
||||
private void ExitTrayMenu_Click(object sender, EventArgs e)
|
||||
{
|
||||
Application.Exit();
|
||||
}
|
||||
private void TrayMenu_Opening(object sender, CancelEventArgs e)
|
||||
{
|
||||
if (Visible)
|
||||
{
|
||||
showWindowTrayMenu.Enabled = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
showWindowTrayMenu.Enabled = true;
|
||||
}
|
||||
|
||||
if (!Visible)
|
||||
{
|
||||
hideWindowTrayMenu.Enabled = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
hideWindowTrayMenu.Enabled = true;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
|
|
@ -2137,8 +2215,11 @@ private void VariablesMainMenu_Click(object sender, EventArgs e)
|
|||
Debug.WriteLine("metadataCorrupt: " + PublicVar.metadataCorrupt);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -6477,7 +6477,7 @@
|
|||
<value>1059, 17</value>
|
||||
</metadata>
|
||||
<metadata name="clipboardTimer.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>1163, 17</value>
|
||||
<value>17, 56</value>
|
||||
</metadata>
|
||||
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>99</value>
|
||||
|
|
|
|||
418
Crypto Notepad/Forms/SettingsForm.Designer.cs
generated
418
Crypto Notepad/Forms/SettingsForm.Designer.cs
generated
|
|
@ -34,21 +34,22 @@ private void InitializeComponent()
|
|||
this.colorDialog = new System.Windows.Forms.ColorDialog();
|
||||
this.settingsTabControl = new System.Windows.Forms.TabControl();
|
||||
this.generalTabPage = new System.Windows.Forms.TabPage();
|
||||
this.autoLockGroupBox = new System.Windows.Forms.GroupBox();
|
||||
this.autoLockMinutesLabel = new System.Windows.Forms.Label();
|
||||
this.autoLockOnMinimizeCheckBox = new System.Windows.Forms.CheckBox();
|
||||
this.lockTimeoutLabel = new System.Windows.Forms.Label();
|
||||
this.integrationGroupBox = new System.Windows.Forms.GroupBox();
|
||||
this.integrateCheckBox = new System.Windows.Forms.CheckBox();
|
||||
this.associateCheckBox = new System.Windows.Forms.CheckBox();
|
||||
this.sendToCheckBox = new System.Windows.Forms.CheckBox();
|
||||
this.applicationGroupBox = new System.Windows.Forms.GroupBox();
|
||||
this.trayMenuCheckBox = new System.Windows.Forms.CheckBox();
|
||||
this.openTxtUnencryptedCheckBox = new System.Windows.Forms.CheckBox();
|
||||
this.clearClipboardCheckBox = new System.Windows.Forms.CheckBox();
|
||||
this.autoCheckUpdatesCheckBox = new System.Windows.Forms.CheckBox();
|
||||
this.singleInstanceCheckBox = new System.Windows.Forms.CheckBox();
|
||||
this.closeToTrayCheckBox = new System.Windows.Forms.CheckBox();
|
||||
this.minimizeToTrayCheckBox = new System.Windows.Forms.CheckBox();
|
||||
this.autoLockGroupBox = new System.Windows.Forms.GroupBox();
|
||||
this.autoLockMinutesLabel = new System.Windows.Forms.Label();
|
||||
this.autoLockOnMinimizeCheckBox = new System.Windows.Forms.CheckBox();
|
||||
this.lockTimeoutTextBox = new System.Windows.Forms.PlaceholderTextBox();
|
||||
this.lockTimeoutLabel = new System.Windows.Forms.Label();
|
||||
this.interfaceTabPage = new System.Windows.Forms.TabPage();
|
||||
this.statusPanelGroupBox = new System.Windows.Forms.GroupBox();
|
||||
this.statusPanelLabelsGroupBox = new System.Windows.Forms.GroupBox();
|
||||
|
|
@ -64,17 +65,6 @@ private void InitializeComponent()
|
|||
this.statusPanelFontColorLabel = new System.Windows.Forms.Label();
|
||||
this.statusPanelBackColor = new System.Windows.Forms.Panel();
|
||||
this.statusPanelFontColor = new System.Windows.Forms.Panel();
|
||||
this.mainMenuGroupBox = new System.Windows.Forms.GroupBox();
|
||||
this.shortcutKeysCheckBox = new System.Windows.Forms.CheckBox();
|
||||
this.mainMenuCheckBox = new System.Windows.Forms.CheckBox();
|
||||
this.menuIconsCheckBox = new System.Windows.Forms.CheckBox();
|
||||
this.toolbarGroupBox = new System.Windows.Forms.GroupBox();
|
||||
this.toolbarCloseButtonCheckBox = new System.Windows.Forms.CheckBox();
|
||||
this.toolbarBorderCheckBox = new System.Windows.Forms.CheckBox();
|
||||
this.toolbarOldIconsCheckBox = new System.Windows.Forms.CheckBox();
|
||||
this.toolbarBackColorLabel = new System.Windows.Forms.Label();
|
||||
this.toolbarBackColor = new System.Windows.Forms.Panel();
|
||||
this.toolbarVisibleCheckBox = new System.Windows.Forms.CheckBox();
|
||||
this.searchPanelGroupBox = new System.Windows.Forms.GroupBox();
|
||||
this.searchBorderComboBox = new System.Windows.Forms.ComboBox();
|
||||
this.searchBackColorLabel = new System.Windows.Forms.Label();
|
||||
|
|
@ -82,6 +72,17 @@ private void InitializeComponent()
|
|||
this.searchFontColorLabel = new System.Windows.Forms.Label();
|
||||
this.searchFontColor = new System.Windows.Forms.Panel();
|
||||
this.searchBackColor = new System.Windows.Forms.Panel();
|
||||
this.toolbarGroupBox = new System.Windows.Forms.GroupBox();
|
||||
this.toolbarCloseButtonCheckBox = new System.Windows.Forms.CheckBox();
|
||||
this.toolbarBorderCheckBox = new System.Windows.Forms.CheckBox();
|
||||
this.toolbarOldIconsCheckBox = new System.Windows.Forms.CheckBox();
|
||||
this.toolbarBackColorLabel = new System.Windows.Forms.Label();
|
||||
this.toolbarBackColor = new System.Windows.Forms.Panel();
|
||||
this.toolbarVisibleCheckBox = new System.Windows.Forms.CheckBox();
|
||||
this.mainMenuGroupBox = new System.Windows.Forms.GroupBox();
|
||||
this.shortcutKeysCheckBox = new System.Windows.Forms.CheckBox();
|
||||
this.mainMenuCheckBox = new System.Windows.Forms.CheckBox();
|
||||
this.menuIconsCheckBox = new System.Windows.Forms.CheckBox();
|
||||
this.editorTabPage = new System.Windows.Forms.TabPage();
|
||||
this.clearClipboardTextBox = new System.Windows.Forms.TextBox();
|
||||
this.clearClipboardLabel = new System.Windows.Forms.Label();
|
||||
|
|
@ -109,18 +110,18 @@ private void InitializeComponent()
|
|||
this.settingsNavigation = new System.Windows.Forms.ListBox();
|
||||
this.fontDialog = new System.Windows.Forms.FontDialog();
|
||||
this.settingsToolTip = new System.Windows.Forms.ToolTip(this.components);
|
||||
this.openTxtUnencryptedCheckBox = new System.Windows.Forms.CheckBox();
|
||||
this.lockTimeoutTextBox = new System.Windows.Forms.PlaceholderTextBox();
|
||||
this.settingsTabControl.SuspendLayout();
|
||||
this.generalTabPage.SuspendLayout();
|
||||
this.autoLockGroupBox.SuspendLayout();
|
||||
this.integrationGroupBox.SuspendLayout();
|
||||
this.applicationGroupBox.SuspendLayout();
|
||||
this.autoLockGroupBox.SuspendLayout();
|
||||
this.interfaceTabPage.SuspendLayout();
|
||||
this.statusPanelGroupBox.SuspendLayout();
|
||||
this.statusPanelLabelsGroupBox.SuspendLayout();
|
||||
this.mainMenuGroupBox.SuspendLayout();
|
||||
this.toolbarGroupBox.SuspendLayout();
|
||||
this.searchPanelGroupBox.SuspendLayout();
|
||||
this.toolbarGroupBox.SuspendLayout();
|
||||
this.mainMenuGroupBox.SuspendLayout();
|
||||
this.editorTabPage.SuspendLayout();
|
||||
this.encryptionTabPage.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
|
|
@ -168,6 +169,49 @@ private void InitializeComponent()
|
|||
this.generalTabPage.TabIndex = 2;
|
||||
this.generalTabPage.Text = "gen";
|
||||
//
|
||||
// autoLockGroupBox
|
||||
//
|
||||
this.autoLockGroupBox.Controls.Add(this.autoLockMinutesLabel);
|
||||
this.autoLockGroupBox.Controls.Add(this.autoLockOnMinimizeCheckBox);
|
||||
this.autoLockGroupBox.Controls.Add(this.lockTimeoutTextBox);
|
||||
this.autoLockGroupBox.Controls.Add(this.lockTimeoutLabel);
|
||||
this.autoLockGroupBox.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.autoLockGroupBox.Location = new System.Drawing.Point(6, 230);
|
||||
this.autoLockGroupBox.Name = "autoLockGroupBox";
|
||||
this.autoLockGroupBox.Size = new System.Drawing.Size(312, 75);
|
||||
this.autoLockGroupBox.TabIndex = 3;
|
||||
this.autoLockGroupBox.TabStop = false;
|
||||
this.autoLockGroupBox.Text = "Auto lock";
|
||||
//
|
||||
// autoLockMinutesLabel
|
||||
//
|
||||
this.autoLockMinutesLabel.AutoSize = true;
|
||||
this.autoLockMinutesLabel.Location = new System.Drawing.Point(184, 48);
|
||||
this.autoLockMinutesLabel.Name = "autoLockMinutesLabel";
|
||||
this.autoLockMinutesLabel.Size = new System.Drawing.Size(50, 15);
|
||||
this.autoLockMinutesLabel.TabIndex = 0;
|
||||
this.autoLockMinutesLabel.Text = "minutes";
|
||||
//
|
||||
// autoLockOnMinimizeCheckBox
|
||||
//
|
||||
this.autoLockOnMinimizeCheckBox.AutoSize = true;
|
||||
this.autoLockOnMinimizeCheckBox.Location = new System.Drawing.Point(6, 22);
|
||||
this.autoLockOnMinimizeCheckBox.Name = "autoLockOnMinimizeCheckBox";
|
||||
this.autoLockOnMinimizeCheckBox.Size = new System.Drawing.Size(146, 19);
|
||||
this.autoLockOnMinimizeCheckBox.TabIndex = 7;
|
||||
this.autoLockOnMinimizeCheckBox.Text = "Auto lock on minimize";
|
||||
this.autoLockOnMinimizeCheckBox.UseVisualStyleBackColor = true;
|
||||
this.autoLockOnMinimizeCheckBox.Click += new System.EventHandler(this.AutoLockOnMinimizeCheckBox_Click);
|
||||
//
|
||||
// lockTimeoutLabel
|
||||
//
|
||||
this.lockTimeoutLabel.AutoSize = true;
|
||||
this.lockTimeoutLabel.Location = new System.Drawing.Point(3, 48);
|
||||
this.lockTimeoutLabel.Name = "lockTimeoutLabel";
|
||||
this.lockTimeoutLabel.Size = new System.Drawing.Size(125, 15);
|
||||
this.lockTimeoutLabel.TabIndex = 7;
|
||||
this.lockTimeoutLabel.Text = "If the app is inactive in";
|
||||
//
|
||||
// integrationGroupBox
|
||||
//
|
||||
this.integrationGroupBox.Controls.Add(this.integrateCheckBox);
|
||||
|
|
@ -216,6 +260,7 @@ private void InitializeComponent()
|
|||
//
|
||||
// applicationGroupBox
|
||||
//
|
||||
this.applicationGroupBox.Controls.Add(this.trayMenuCheckBox);
|
||||
this.applicationGroupBox.Controls.Add(this.openTxtUnencryptedCheckBox);
|
||||
this.applicationGroupBox.Controls.Add(this.clearClipboardCheckBox);
|
||||
this.applicationGroupBox.Controls.Add(this.autoCheckUpdatesCheckBox);
|
||||
|
|
@ -230,10 +275,32 @@ private void InitializeComponent()
|
|||
this.applicationGroupBox.TabStop = false;
|
||||
this.applicationGroupBox.Text = "Application";
|
||||
//
|
||||
// trayMenuCheckBox
|
||||
//
|
||||
this.trayMenuCheckBox.AutoSize = true;
|
||||
this.trayMenuCheckBox.Location = new System.Drawing.Point(6, 72);
|
||||
this.trayMenuCheckBox.Name = "trayMenuCheckBox";
|
||||
this.trayMenuCheckBox.Size = new System.Drawing.Size(81, 19);
|
||||
this.trayMenuCheckBox.TabIndex = 10;
|
||||
this.trayMenuCheckBox.Text = "Tray menu";
|
||||
this.trayMenuCheckBox.UseVisualStyleBackColor = true;
|
||||
this.trayMenuCheckBox.Click += new System.EventHandler(this.TrayMenuCheckBox_Click);
|
||||
//
|
||||
// openTxtUnencryptedCheckBox
|
||||
//
|
||||
this.openTxtUnencryptedCheckBox.AutoSize = true;
|
||||
this.openTxtUnencryptedCheckBox.Location = new System.Drawing.Point(6, 97);
|
||||
this.openTxtUnencryptedCheckBox.Name = "openTxtUnencryptedCheckBox";
|
||||
this.openTxtUnencryptedCheckBox.Size = new System.Drawing.Size(254, 19);
|
||||
this.openTxtUnencryptedCheckBox.TabIndex = 9;
|
||||
this.openTxtUnencryptedCheckBox.Text = "Open all files except *.cnp like unencrypted";
|
||||
this.openTxtUnencryptedCheckBox.UseVisualStyleBackColor = true;
|
||||
this.openTxtUnencryptedCheckBox.Click += new System.EventHandler(this.OpenTxtUnencryptedCheckBox_Click);
|
||||
//
|
||||
// clearClipboardCheckBox
|
||||
//
|
||||
this.clearClipboardCheckBox.AutoSize = true;
|
||||
this.clearClipboardCheckBox.Location = new System.Drawing.Point(6, 97);
|
||||
this.clearClipboardCheckBox.Location = new System.Drawing.Point(124, 72);
|
||||
this.clearClipboardCheckBox.Name = "clearClipboardCheckBox";
|
||||
this.clearClipboardCheckBox.Size = new System.Drawing.Size(168, 19);
|
||||
this.clearClipboardCheckBox.TabIndex = 4;
|
||||
|
|
@ -285,62 +352,6 @@ private void InitializeComponent()
|
|||
this.minimizeToTrayCheckBox.UseVisualStyleBackColor = true;
|
||||
this.minimizeToTrayCheckBox.Click += new System.EventHandler(this.MinimizeToTrayCheckBox_Click);
|
||||
//
|
||||
// autoLockGroupBox
|
||||
//
|
||||
this.autoLockGroupBox.Controls.Add(this.autoLockMinutesLabel);
|
||||
this.autoLockGroupBox.Controls.Add(this.autoLockOnMinimizeCheckBox);
|
||||
this.autoLockGroupBox.Controls.Add(this.lockTimeoutTextBox);
|
||||
this.autoLockGroupBox.Controls.Add(this.lockTimeoutLabel);
|
||||
this.autoLockGroupBox.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.autoLockGroupBox.Location = new System.Drawing.Point(6, 230);
|
||||
this.autoLockGroupBox.Name = "autoLockGroupBox";
|
||||
this.autoLockGroupBox.Size = new System.Drawing.Size(312, 75);
|
||||
this.autoLockGroupBox.TabIndex = 3;
|
||||
this.autoLockGroupBox.TabStop = false;
|
||||
this.autoLockGroupBox.Text = "Auto lock";
|
||||
//
|
||||
// autoLockMinutesLabel
|
||||
//
|
||||
this.autoLockMinutesLabel.AutoSize = true;
|
||||
this.autoLockMinutesLabel.Location = new System.Drawing.Point(184, 48);
|
||||
this.autoLockMinutesLabel.Name = "autoLockMinutesLabel";
|
||||
this.autoLockMinutesLabel.Size = new System.Drawing.Size(50, 15);
|
||||
this.autoLockMinutesLabel.TabIndex = 0;
|
||||
this.autoLockMinutesLabel.Text = "minutes";
|
||||
//
|
||||
// autoLockOnMinimizeCheckBox
|
||||
//
|
||||
this.autoLockOnMinimizeCheckBox.AutoSize = true;
|
||||
this.autoLockOnMinimizeCheckBox.Location = new System.Drawing.Point(6, 22);
|
||||
this.autoLockOnMinimizeCheckBox.Name = "autoLockOnMinimizeCheckBox";
|
||||
this.autoLockOnMinimizeCheckBox.Size = new System.Drawing.Size(146, 19);
|
||||
this.autoLockOnMinimizeCheckBox.TabIndex = 7;
|
||||
this.autoLockOnMinimizeCheckBox.Text = "Auto lock on minimize";
|
||||
this.autoLockOnMinimizeCheckBox.UseVisualStyleBackColor = true;
|
||||
this.autoLockOnMinimizeCheckBox.Click += new System.EventHandler(this.AutoLockOnMinimizeCheckBox_Click);
|
||||
//
|
||||
// lockTimeoutTextBox
|
||||
//
|
||||
this.lockTimeoutTextBox.Location = new System.Drawing.Point(134, 45);
|
||||
this.lockTimeoutTextBox.Name = "lockTimeoutTextBox";
|
||||
this.lockTimeoutTextBox.Placeholder = "";
|
||||
this.lockTimeoutTextBox.PlaceholderActiveForeColor = System.Drawing.Color.DarkGray;
|
||||
this.lockTimeoutTextBox.PlaceholderFont = new System.Drawing.Font("Segoe UI", 8.25F);
|
||||
this.lockTimeoutTextBox.PlaceholderForeColor = System.Drawing.Color.DarkGray;
|
||||
this.lockTimeoutTextBox.Size = new System.Drawing.Size(44, 23);
|
||||
this.lockTimeoutTextBox.TabIndex = 8;
|
||||
this.lockTimeoutTextBox.TextChanged += new System.EventHandler(this.LockTimeoutTextBox_TextChanged);
|
||||
this.lockTimeoutTextBox.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.LockTimeoutTextBox_KeyPress);
|
||||
//
|
||||
// lockTimeoutLabel
|
||||
//
|
||||
this.lockTimeoutLabel.AutoSize = true;
|
||||
this.lockTimeoutLabel.Location = new System.Drawing.Point(3, 48);
|
||||
this.lockTimeoutLabel.Name = "lockTimeoutLabel";
|
||||
this.lockTimeoutLabel.Size = new System.Drawing.Size(125, 15);
|
||||
this.lockTimeoutLabel.TabIndex = 7;
|
||||
this.lockTimeoutLabel.Text = "If the app is inactive in";
|
||||
//
|
||||
// interfaceTabPage
|
||||
//
|
||||
this.interfaceTabPage.AutoScroll = true;
|
||||
|
|
@ -368,7 +379,7 @@ private void InitializeComponent()
|
|||
this.statusPanelGroupBox.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.statusPanelGroupBox.Location = new System.Drawing.Point(6, 263);
|
||||
this.statusPanelGroupBox.Name = "statusPanelGroupBox";
|
||||
this.statusPanelGroupBox.Size = new System.Drawing.Size(298, 180);
|
||||
this.statusPanelGroupBox.Size = new System.Drawing.Size(295, 180);
|
||||
this.statusPanelGroupBox.TabIndex = 4;
|
||||
this.statusPanelGroupBox.TabStop = false;
|
||||
this.statusPanelGroupBox.Text = "Status Panel";
|
||||
|
|
@ -517,51 +528,83 @@ private void InitializeComponent()
|
|||
this.statusPanelFontColor.TabIndex = 3;
|
||||
this.statusPanelFontColor.Click += new System.EventHandler(this.StatusPanelFontColor_Click);
|
||||
//
|
||||
// mainMenuGroupBox
|
||||
// searchPanelGroupBox
|
||||
//
|
||||
this.mainMenuGroupBox.Controls.Add(this.shortcutKeysCheckBox);
|
||||
this.mainMenuGroupBox.Controls.Add(this.mainMenuCheckBox);
|
||||
this.mainMenuGroupBox.Controls.Add(this.menuIconsCheckBox);
|
||||
this.mainMenuGroupBox.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.mainMenuGroupBox.Location = new System.Drawing.Point(6, 6);
|
||||
this.mainMenuGroupBox.Name = "mainMenuGroupBox";
|
||||
this.mainMenuGroupBox.Size = new System.Drawing.Size(298, 49);
|
||||
this.mainMenuGroupBox.TabIndex = 1;
|
||||
this.mainMenuGroupBox.TabStop = false;
|
||||
this.mainMenuGroupBox.Text = "Main menu";
|
||||
this.searchPanelGroupBox.Controls.Add(this.searchBorderComboBox);
|
||||
this.searchPanelGroupBox.Controls.Add(this.searchBackColorLabel);
|
||||
this.searchPanelGroupBox.Controls.Add(this.searchBorderLabel);
|
||||
this.searchPanelGroupBox.Controls.Add(this.searchFontColorLabel);
|
||||
this.searchPanelGroupBox.Controls.Add(this.searchFontColor);
|
||||
this.searchPanelGroupBox.Controls.Add(this.searchBackColor);
|
||||
this.searchPanelGroupBox.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.searchPanelGroupBox.Location = new System.Drawing.Point(6, 153);
|
||||
this.searchPanelGroupBox.Name = "searchPanelGroupBox";
|
||||
this.searchPanelGroupBox.Size = new System.Drawing.Size(295, 110);
|
||||
this.searchPanelGroupBox.TabIndex = 3;
|
||||
this.searchPanelGroupBox.TabStop = false;
|
||||
this.searchPanelGroupBox.Text = "Search Panel";
|
||||
//
|
||||
// shortcutKeysCheckBox
|
||||
// searchBorderComboBox
|
||||
//
|
||||
this.shortcutKeysCheckBox.AutoSize = true;
|
||||
this.shortcutKeysCheckBox.Location = new System.Drawing.Point(166, 22);
|
||||
this.shortcutKeysCheckBox.Name = "shortcutKeysCheckBox";
|
||||
this.shortcutKeysCheckBox.Size = new System.Drawing.Size(97, 19);
|
||||
this.shortcutKeysCheckBox.TabIndex = 3;
|
||||
this.shortcutKeysCheckBox.Text = "Shortcut keys";
|
||||
this.shortcutKeysCheckBox.UseVisualStyleBackColor = true;
|
||||
this.shortcutKeysCheckBox.Click += new System.EventHandler(this.ShortcutKeysCheckBox_Click);
|
||||
this.searchBorderComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.searchBorderComboBox.FormattingEnabled = true;
|
||||
this.searchBorderComboBox.Items.AddRange(new object[] {
|
||||
"None",
|
||||
"Single"});
|
||||
this.searchBorderComboBox.Location = new System.Drawing.Point(145, 74);
|
||||
this.searchBorderComboBox.Name = "searchBorderComboBox";
|
||||
this.searchBorderComboBox.Size = new System.Drawing.Size(141, 23);
|
||||
this.searchBorderComboBox.TabIndex = 7;
|
||||
this.searchBorderComboBox.DropDownClosed += new System.EventHandler(this.SearchBorderComboBox_DropDownClosed);
|
||||
//
|
||||
// mainMenuCheckBox
|
||||
// searchBackColorLabel
|
||||
//
|
||||
this.mainMenuCheckBox.AutoSize = true;
|
||||
this.mainMenuCheckBox.Location = new System.Drawing.Point(6, 22);
|
||||
this.mainMenuCheckBox.Name = "mainMenuCheckBox";
|
||||
this.mainMenuCheckBox.Size = new System.Drawing.Size(60, 19);
|
||||
this.mainMenuCheckBox.TabIndex = 1;
|
||||
this.mainMenuCheckBox.Text = "Visible";
|
||||
this.mainMenuCheckBox.UseVisualStyleBackColor = true;
|
||||
this.mainMenuCheckBox.Click += new System.EventHandler(this.MainMenuCheckBox_Click);
|
||||
this.searchBackColorLabel.Location = new System.Drawing.Point(6, 16);
|
||||
this.searchBackColorLabel.Name = "searchBackColorLabel";
|
||||
this.searchBackColorLabel.Size = new System.Drawing.Size(120, 23);
|
||||
this.searchBackColorLabel.TabIndex = 0;
|
||||
this.searchBackColorLabel.Text = "Background color";
|
||||
this.searchBackColorLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
//
|
||||
// menuIconsCheckBox
|
||||
// searchBorderLabel
|
||||
//
|
||||
this.menuIconsCheckBox.AutoSize = true;
|
||||
this.menuIconsCheckBox.Location = new System.Drawing.Point(72, 22);
|
||||
this.menuIconsCheckBox.Name = "menuIconsCheckBox";
|
||||
this.menuIconsCheckBox.Size = new System.Drawing.Size(88, 19);
|
||||
this.menuIconsCheckBox.TabIndex = 2;
|
||||
this.menuIconsCheckBox.Text = "Menu icons";
|
||||
this.menuIconsCheckBox.UseVisualStyleBackColor = true;
|
||||
this.menuIconsCheckBox.Click += new System.EventHandler(this.MenuIconsCheckBox_Click);
|
||||
this.searchBorderLabel.AutoSize = true;
|
||||
this.searchBorderLabel.Location = new System.Drawing.Point(6, 77);
|
||||
this.searchBorderLabel.Name = "searchBorderLabel";
|
||||
this.searchBorderLabel.Size = new System.Drawing.Size(42, 15);
|
||||
this.searchBorderLabel.TabIndex = 4;
|
||||
this.searchBorderLabel.Text = "Border";
|
||||
//
|
||||
// searchFontColorLabel
|
||||
//
|
||||
this.searchFontColorLabel.Location = new System.Drawing.Point(6, 45);
|
||||
this.searchFontColorLabel.Name = "searchFontColorLabel";
|
||||
this.searchFontColorLabel.Size = new System.Drawing.Size(87, 23);
|
||||
this.searchFontColorLabel.TabIndex = 1;
|
||||
this.searchFontColorLabel.Text = "Font color";
|
||||
this.searchFontColorLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
//
|
||||
// searchFontColor
|
||||
//
|
||||
this.searchFontColor.BackColor = System.Drawing.Color.Black;
|
||||
this.searchFontColor.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.searchFontColor.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.searchFontColor.Location = new System.Drawing.Point(145, 45);
|
||||
this.searchFontColor.Name = "searchFontColor";
|
||||
this.searchFontColor.Size = new System.Drawing.Size(141, 23);
|
||||
this.searchFontColor.TabIndex = 3;
|
||||
this.searchFontColor.Click += new System.EventHandler(this.SearchFontColor_Click);
|
||||
//
|
||||
// searchBackColor
|
||||
//
|
||||
this.searchBackColor.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(240)))), ((int)(((byte)(240)))));
|
||||
this.searchBackColor.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.searchBackColor.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.searchBackColor.Location = new System.Drawing.Point(145, 16);
|
||||
this.searchBackColor.Name = "searchBackColor";
|
||||
this.searchBackColor.Size = new System.Drawing.Size(141, 23);
|
||||
this.searchBackColor.TabIndex = 2;
|
||||
this.searchBackColor.Click += new System.EventHandler(this.SearchBackColor_Click);
|
||||
//
|
||||
// toolbarGroupBox
|
||||
//
|
||||
|
|
@ -574,7 +617,7 @@ private void InitializeComponent()
|
|||
this.toolbarGroupBox.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.toolbarGroupBox.Location = new System.Drawing.Point(6, 55);
|
||||
this.toolbarGroupBox.Name = "toolbarGroupBox";
|
||||
this.toolbarGroupBox.Size = new System.Drawing.Size(298, 98);
|
||||
this.toolbarGroupBox.Size = new System.Drawing.Size(295, 98);
|
||||
this.toolbarGroupBox.TabIndex = 2;
|
||||
this.toolbarGroupBox.TabStop = false;
|
||||
this.toolbarGroupBox.Text = "Toolbar";
|
||||
|
|
@ -643,83 +686,51 @@ private void InitializeComponent()
|
|||
this.toolbarVisibleCheckBox.UseVisualStyleBackColor = true;
|
||||
this.toolbarVisibleCheckBox.Click += new System.EventHandler(this.ToolbarVisibleCheckBox_Click);
|
||||
//
|
||||
// searchPanelGroupBox
|
||||
// mainMenuGroupBox
|
||||
//
|
||||
this.searchPanelGroupBox.Controls.Add(this.searchBorderComboBox);
|
||||
this.searchPanelGroupBox.Controls.Add(this.searchBackColorLabel);
|
||||
this.searchPanelGroupBox.Controls.Add(this.searchBorderLabel);
|
||||
this.searchPanelGroupBox.Controls.Add(this.searchFontColorLabel);
|
||||
this.searchPanelGroupBox.Controls.Add(this.searchFontColor);
|
||||
this.searchPanelGroupBox.Controls.Add(this.searchBackColor);
|
||||
this.searchPanelGroupBox.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.searchPanelGroupBox.Location = new System.Drawing.Point(6, 153);
|
||||
this.searchPanelGroupBox.Name = "searchPanelGroupBox";
|
||||
this.searchPanelGroupBox.Size = new System.Drawing.Size(298, 110);
|
||||
this.searchPanelGroupBox.TabIndex = 3;
|
||||
this.searchPanelGroupBox.TabStop = false;
|
||||
this.searchPanelGroupBox.Text = "Search Panel";
|
||||
this.mainMenuGroupBox.Controls.Add(this.shortcutKeysCheckBox);
|
||||
this.mainMenuGroupBox.Controls.Add(this.mainMenuCheckBox);
|
||||
this.mainMenuGroupBox.Controls.Add(this.menuIconsCheckBox);
|
||||
this.mainMenuGroupBox.Dock = System.Windows.Forms.DockStyle.Top;
|
||||
this.mainMenuGroupBox.Location = new System.Drawing.Point(6, 6);
|
||||
this.mainMenuGroupBox.Name = "mainMenuGroupBox";
|
||||
this.mainMenuGroupBox.Size = new System.Drawing.Size(295, 49);
|
||||
this.mainMenuGroupBox.TabIndex = 1;
|
||||
this.mainMenuGroupBox.TabStop = false;
|
||||
this.mainMenuGroupBox.Text = "Main menu";
|
||||
//
|
||||
// searchBorderComboBox
|
||||
// shortcutKeysCheckBox
|
||||
//
|
||||
this.searchBorderComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
||||
this.searchBorderComboBox.FormattingEnabled = true;
|
||||
this.searchBorderComboBox.Items.AddRange(new object[] {
|
||||
"None",
|
||||
"Single"});
|
||||
this.searchBorderComboBox.Location = new System.Drawing.Point(145, 74);
|
||||
this.searchBorderComboBox.Name = "searchBorderComboBox";
|
||||
this.searchBorderComboBox.Size = new System.Drawing.Size(141, 23);
|
||||
this.searchBorderComboBox.TabIndex = 7;
|
||||
this.searchBorderComboBox.DropDownClosed += new System.EventHandler(this.SearchBorderComboBox_DropDownClosed);
|
||||
this.shortcutKeysCheckBox.AutoSize = true;
|
||||
this.shortcutKeysCheckBox.Location = new System.Drawing.Point(166, 22);
|
||||
this.shortcutKeysCheckBox.Name = "shortcutKeysCheckBox";
|
||||
this.shortcutKeysCheckBox.Size = new System.Drawing.Size(97, 19);
|
||||
this.shortcutKeysCheckBox.TabIndex = 3;
|
||||
this.shortcutKeysCheckBox.Text = "Shortcut keys";
|
||||
this.shortcutKeysCheckBox.UseVisualStyleBackColor = true;
|
||||
this.shortcutKeysCheckBox.Click += new System.EventHandler(this.ShortcutKeysCheckBox_Click);
|
||||
//
|
||||
// searchBackColorLabel
|
||||
// mainMenuCheckBox
|
||||
//
|
||||
this.searchBackColorLabel.Location = new System.Drawing.Point(6, 16);
|
||||
this.searchBackColorLabel.Name = "searchBackColorLabel";
|
||||
this.searchBackColorLabel.Size = new System.Drawing.Size(120, 23);
|
||||
this.searchBackColorLabel.TabIndex = 0;
|
||||
this.searchBackColorLabel.Text = "Background color";
|
||||
this.searchBackColorLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
this.mainMenuCheckBox.AutoSize = true;
|
||||
this.mainMenuCheckBox.Location = new System.Drawing.Point(6, 22);
|
||||
this.mainMenuCheckBox.Name = "mainMenuCheckBox";
|
||||
this.mainMenuCheckBox.Size = new System.Drawing.Size(60, 19);
|
||||
this.mainMenuCheckBox.TabIndex = 1;
|
||||
this.mainMenuCheckBox.Text = "Visible";
|
||||
this.mainMenuCheckBox.UseVisualStyleBackColor = true;
|
||||
this.mainMenuCheckBox.Click += new System.EventHandler(this.MainMenuCheckBox_Click);
|
||||
//
|
||||
// searchBorderLabel
|
||||
// menuIconsCheckBox
|
||||
//
|
||||
this.searchBorderLabel.AutoSize = true;
|
||||
this.searchBorderLabel.Location = new System.Drawing.Point(6, 77);
|
||||
this.searchBorderLabel.Name = "searchBorderLabel";
|
||||
this.searchBorderLabel.Size = new System.Drawing.Size(42, 15);
|
||||
this.searchBorderLabel.TabIndex = 4;
|
||||
this.searchBorderLabel.Text = "Border";
|
||||
//
|
||||
// searchFontColorLabel
|
||||
//
|
||||
this.searchFontColorLabel.Location = new System.Drawing.Point(6, 45);
|
||||
this.searchFontColorLabel.Name = "searchFontColorLabel";
|
||||
this.searchFontColorLabel.Size = new System.Drawing.Size(87, 23);
|
||||
this.searchFontColorLabel.TabIndex = 1;
|
||||
this.searchFontColorLabel.Text = "Font color";
|
||||
this.searchFontColorLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
|
||||
//
|
||||
// searchFontColor
|
||||
//
|
||||
this.searchFontColor.BackColor = System.Drawing.Color.Black;
|
||||
this.searchFontColor.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.searchFontColor.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.searchFontColor.Location = new System.Drawing.Point(145, 45);
|
||||
this.searchFontColor.Name = "searchFontColor";
|
||||
this.searchFontColor.Size = new System.Drawing.Size(141, 23);
|
||||
this.searchFontColor.TabIndex = 3;
|
||||
this.searchFontColor.Click += new System.EventHandler(this.SearchFontColor_Click);
|
||||
//
|
||||
// searchBackColor
|
||||
//
|
||||
this.searchBackColor.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(240)))), ((int)(((byte)(240)))));
|
||||
this.searchBackColor.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||
this.searchBackColor.Cursor = System.Windows.Forms.Cursors.Hand;
|
||||
this.searchBackColor.Location = new System.Drawing.Point(145, 16);
|
||||
this.searchBackColor.Name = "searchBackColor";
|
||||
this.searchBackColor.Size = new System.Drawing.Size(141, 23);
|
||||
this.searchBackColor.TabIndex = 2;
|
||||
this.searchBackColor.Click += new System.EventHandler(this.SearchBackColor_Click);
|
||||
this.menuIconsCheckBox.AutoSize = true;
|
||||
this.menuIconsCheckBox.Location = new System.Drawing.Point(72, 22);
|
||||
this.menuIconsCheckBox.Name = "menuIconsCheckBox";
|
||||
this.menuIconsCheckBox.Size = new System.Drawing.Size(88, 19);
|
||||
this.menuIconsCheckBox.TabIndex = 2;
|
||||
this.menuIconsCheckBox.Text = "Menu icons";
|
||||
this.menuIconsCheckBox.UseVisualStyleBackColor = true;
|
||||
this.menuIconsCheckBox.Click += new System.EventHandler(this.MenuIconsCheckBox_Click);
|
||||
//
|
||||
// editorTabPage
|
||||
//
|
||||
|
|
@ -1037,16 +1048,18 @@ private void InitializeComponent()
|
|||
this.fontDialog.ShowEffects = false;
|
||||
this.fontDialog.Apply += new System.EventHandler(this.FontDialog_Apply);
|
||||
//
|
||||
// openTxtUnencryptedCheckBox
|
||||
// lockTimeoutTextBox
|
||||
//
|
||||
this.openTxtUnencryptedCheckBox.AutoSize = true;
|
||||
this.openTxtUnencryptedCheckBox.Location = new System.Drawing.Point(6, 72);
|
||||
this.openTxtUnencryptedCheckBox.Name = "openTxtUnencryptedCheckBox";
|
||||
this.openTxtUnencryptedCheckBox.Size = new System.Drawing.Size(254, 19);
|
||||
this.openTxtUnencryptedCheckBox.TabIndex = 9;
|
||||
this.openTxtUnencryptedCheckBox.Text = "Open all files except *.cnp like unencrypted";
|
||||
this.openTxtUnencryptedCheckBox.UseVisualStyleBackColor = true;
|
||||
this.openTxtUnencryptedCheckBox.Click += new System.EventHandler(this.OpenTxtUnencryptedCheckBox_Click);
|
||||
this.lockTimeoutTextBox.Location = new System.Drawing.Point(134, 45);
|
||||
this.lockTimeoutTextBox.Name = "lockTimeoutTextBox";
|
||||
this.lockTimeoutTextBox.Placeholder = "";
|
||||
this.lockTimeoutTextBox.PlaceholderActiveForeColor = System.Drawing.Color.DarkGray;
|
||||
this.lockTimeoutTextBox.PlaceholderFont = new System.Drawing.Font("Segoe UI", 8.25F);
|
||||
this.lockTimeoutTextBox.PlaceholderForeColor = System.Drawing.Color.DarkGray;
|
||||
this.lockTimeoutTextBox.Size = new System.Drawing.Size(44, 23);
|
||||
this.lockTimeoutTextBox.TabIndex = 8;
|
||||
this.lockTimeoutTextBox.TextChanged += new System.EventHandler(this.LockTimeoutTextBox_TextChanged);
|
||||
this.lockTimeoutTextBox.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.LockTimeoutTextBox_KeyPress);
|
||||
//
|
||||
// SettingsForm
|
||||
//
|
||||
|
|
@ -1067,23 +1080,23 @@ private void InitializeComponent()
|
|||
this.Load += new System.EventHandler(this.SettingsForm_Load);
|
||||
this.settingsTabControl.ResumeLayout(false);
|
||||
this.generalTabPage.ResumeLayout(false);
|
||||
this.autoLockGroupBox.ResumeLayout(false);
|
||||
this.autoLockGroupBox.PerformLayout();
|
||||
this.integrationGroupBox.ResumeLayout(false);
|
||||
this.integrationGroupBox.PerformLayout();
|
||||
this.applicationGroupBox.ResumeLayout(false);
|
||||
this.applicationGroupBox.PerformLayout();
|
||||
this.autoLockGroupBox.ResumeLayout(false);
|
||||
this.autoLockGroupBox.PerformLayout();
|
||||
this.interfaceTabPage.ResumeLayout(false);
|
||||
this.statusPanelGroupBox.ResumeLayout(false);
|
||||
this.statusPanelGroupBox.PerformLayout();
|
||||
this.statusPanelLabelsGroupBox.ResumeLayout(false);
|
||||
this.statusPanelLabelsGroupBox.PerformLayout();
|
||||
this.mainMenuGroupBox.ResumeLayout(false);
|
||||
this.mainMenuGroupBox.PerformLayout();
|
||||
this.toolbarGroupBox.ResumeLayout(false);
|
||||
this.toolbarGroupBox.PerformLayout();
|
||||
this.searchPanelGroupBox.ResumeLayout(false);
|
||||
this.searchPanelGroupBox.PerformLayout();
|
||||
this.toolbarGroupBox.ResumeLayout(false);
|
||||
this.toolbarGroupBox.PerformLayout();
|
||||
this.mainMenuGroupBox.ResumeLayout(false);
|
||||
this.mainMenuGroupBox.PerformLayout();
|
||||
this.editorTabPage.ResumeLayout(false);
|
||||
this.editorTabPage.PerformLayout();
|
||||
this.encryptionTabPage.ResumeLayout(false);
|
||||
|
|
@ -1174,5 +1187,6 @@ private void InitializeComponent()
|
|||
private System.Windows.Forms.CheckBox clearClipboardCheckBox;
|
||||
private System.Windows.Forms.CheckBox shortcutKeysCheckBox;
|
||||
private System.Windows.Forms.CheckBox openTxtUnencryptedCheckBox;
|
||||
private System.Windows.Forms.CheckBox trayMenuCheckBox;
|
||||
}
|
||||
}
|
||||
|
|
@ -18,7 +18,7 @@ public SettingsForm()
|
|||
#region Methods
|
||||
private void LoadSettings()
|
||||
{
|
||||
editorFontColor.BackColor = settings.editroForeColor;
|
||||
editorFontColor.BackColor = settings.editorForeColor;
|
||||
editorBackColor.BackColor = settings.editorBackColor;
|
||||
editorInsertKeyComboBox.Text = settings.insertKey;
|
||||
if (settings.clipboardClearTime != "")
|
||||
|
|
@ -40,6 +40,7 @@ private void LoadSettings()
|
|||
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;
|
||||
|
|
@ -151,7 +152,7 @@ private void EditorFontColor_Click(object sender, EventArgs e)
|
|||
MainForm main = Owner as MainForm;
|
||||
main.richTextBox.ForeColor = colorDialog.Color;
|
||||
main.richTextBox.SetInnerMargins(Convert.ToInt32(settings.editorPaddingLeft), 0, 0, 0);
|
||||
settings.editroForeColor = colorDialog.Color;
|
||||
settings.editorForeColor = colorDialog.Color;
|
||||
editorFontColor.BackColor = colorDialog.Color;
|
||||
}
|
||||
}
|
||||
|
|
@ -493,7 +494,7 @@ private void PasswordIterationsTextBox_TextChanged(object sender, EventArgs e)
|
|||
private void MinimizeToTrayCheckBox_Click(object sender, EventArgs e)
|
||||
{
|
||||
MainForm main = Owner as MainForm;
|
||||
if (closeToTrayCheckBox.Checked == false & minimizeToTrayCheckBox.Checked == false)
|
||||
if (closeToTrayCheckBox.Checked == false & minimizeToTrayCheckBox.Checked == false & trayMenuCheckBox.Checked == false)
|
||||
{
|
||||
main.trayIcon.Visible = false;
|
||||
}
|
||||
|
|
@ -507,7 +508,7 @@ private void MinimizeToTrayCheckBox_Click(object sender, EventArgs e)
|
|||
private void CloseToTrayCheckBox_Click(object sender, EventArgs e)
|
||||
{
|
||||
MainForm main = Owner as MainForm;
|
||||
if (closeToTrayCheckBox.Checked == false & minimizeToTrayCheckBox.Checked ==false )
|
||||
if (closeToTrayCheckBox.Checked == false & minimizeToTrayCheckBox.Checked == false & trayMenuCheckBox.Checked == false)
|
||||
{
|
||||
main.trayIcon.Visible = false;
|
||||
}
|
||||
|
|
@ -615,6 +616,20 @@ 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;
|
||||
|
|
@ -625,7 +640,8 @@ private void ShortcutKeysCheckBox_Click(object sender, EventArgs e)
|
|||
private void OpenTxtUnencryptedCheckBox_Click(object sender, EventArgs e)
|
||||
{
|
||||
settings.openTxtUnencrypted = openTxtUnencryptedCheckBox.Checked;
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -126,9 +126,6 @@
|
|||
<data name="encryptionHintLabel.Text" xml:space="preserve">
|
||||
<value>For the best balance of performance && security is recommended to use SHA512 Hash / 256 Key size / above 2000000 Password iterations. But caution, if you change this parameters you will not able to decrypt previously encrypted files with old parameters.</value>
|
||||
</data>
|
||||
<metadata name="settingsToolTip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>240, 17</value>
|
||||
</metadata>
|
||||
<metadata name="fontDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>131, 17</value>
|
||||
</metadata>
|
||||
|
|
|
|||
|
|
@ -33,4 +33,4 @@
|
|||
// используя "*", как показано ниже:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.6.8.0")]
|
||||
[assembly: AssemblyFileVersion("1.6.9.0")]
|
||||
|
|
|
|||
20
Crypto Notepad/Properties/Resources.Designer.cs
generated
20
Crypto Notepad/Properties/Resources.Designer.cs
generated
|
|
@ -60,6 +60,16 @@ internal Resources() {
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap application {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("application", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
|
|
@ -70,6 +80,16 @@ internal static System.Drawing.Bitmap application_blue {
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap application_dock_180 {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("application-dock-180", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
21
Crypto Notepad/Properties/Settings.Designer.cs
generated
21
Crypto Notepad/Properties/Settings.Designer.cs
generated
|
|
@ -12,7 +12,7 @@ namespace Crypto_Notepad.Properties {
|
|||
|
||||
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.6.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 {
|
||||
|
||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||
|
|
@ -27,12 +27,12 @@ public static Settings Default {
|
|||
[global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("Black")]
|
||||
public global::System.Drawing.Color editroForeColor {
|
||||
public global::System.Drawing.Color editorForeColor {
|
||||
get {
|
||||
return ((global::System.Drawing.Color)(this["editroForeColor"]));
|
||||
return ((global::System.Drawing.Color)(this["editorForeColor"]));
|
||||
}
|
||||
set {
|
||||
this["editroForeColor"] = value;
|
||||
this["editorForeColor"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -816,5 +816,18 @@ public bool openTxtUnencrypted {
|
|||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="Crypto_Notepad.Properties" GeneratedClassName="Settings">
|
||||
<Profiles />
|
||||
<Settings>
|
||||
<Setting Name="editroForeColor" Provider="PortableSettingsProvider" Type="System.Drawing.Color" Scope="User">
|
||||
<Setting Name="editorForeColor" Provider="PortableSettingsProvider" Type="System.Drawing.Color" Scope="User">
|
||||
<Value Profile="(Default)">Black</Value>
|
||||
</Setting>
|
||||
<Setting Name="editorBackColor" Provider="PortableSettingsProvider" Type="System.Drawing.Color" Scope="User">
|
||||
|
|
@ -185,5 +185,8 @@
|
|||
<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>
|
||||
</Settings>
|
||||
</SettingsFile>
|
||||
BIN
Crypto Notepad/Resources/application-dock-180.png
Normal file
BIN
Crypto Notepad/Resources/application-dock-180.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 626 B |
BIN
Crypto Notepad/Resources/application.png
Normal file
BIN
Crypto Notepad/Resources/application.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 341 B |
Loading…
Reference in a new issue