mirror of
https://github.com/Crypto-Notepad/Crypto-Notepad.git
synced 2026-03-11 08:55:25 +00:00
Fixed bug with file name when creating the new file
This commit is contained in:
parent
0582e34e1b
commit
52c9adc044
2 changed files with 22 additions and 21 deletions
42
Crypto Notepad/MainForm.Designer.cs
generated
42
Crypto Notepad/MainForm.Designer.cs
generated
|
|
@ -119,13 +119,13 @@ public void InitializeComponent()
|
||||||
this.fileLockedPanel = new System.Windows.Forms.Panel();
|
this.fileLockedPanel = new System.Windows.Forms.Panel();
|
||||||
this.fileLockedCloseButton = new System.Windows.Forms.Button();
|
this.fileLockedCloseButton = new System.Windows.Forms.Button();
|
||||||
this.fileLockedOkButton = 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.fileLockedShowKey = new System.Windows.Forms.PictureBox();
|
||||||
this.fileLockedLabel = new System.Windows.Forms.Label();
|
this.fileLockedLabel = new System.Windows.Forms.Label();
|
||||||
this.toolTip = new System.Windows.Forms.ToolTip(this.components);
|
this.toolTip = new System.Windows.Forms.ToolTip(this.components);
|
||||||
this.richTextBoxPanel = new System.Windows.Forms.Panel();
|
this.richTextBoxPanel = new System.Windows.Forms.Panel();
|
||||||
this.richTextBox = new Crypto_Notepad.ExRichTextBox();
|
|
||||||
this.statusPanelTimer = new System.Windows.Forms.Timer(this.components);
|
this.statusPanelTimer = new System.Windows.Forms.Timer(this.components);
|
||||||
|
this.fileLockedKeyTextBox = new System.Windows.Forms.PlaceholderTextBox();
|
||||||
|
this.richTextBox = new Crypto_Notepad.ExRichTextBox();
|
||||||
this.mainMenu.SuspendLayout();
|
this.mainMenu.SuspendLayout();
|
||||||
this.contextMenu.SuspendLayout();
|
this.contextMenu.SuspendLayout();
|
||||||
this.searchPanel.SuspendLayout();
|
this.searchPanel.SuspendLayout();
|
||||||
|
|
@ -1124,20 +1124,6 @@ public void InitializeComponent()
|
||||||
this.fileLockedOkButton.UseVisualStyleBackColor = true;
|
this.fileLockedOkButton.UseVisualStyleBackColor = true;
|
||||||
this.fileLockedOkButton.Click += new System.EventHandler(this.FileLockedOkButton_Click);
|
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 = "Encryption key";
|
|
||||||
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
|
// fileLockedShowKey
|
||||||
//
|
//
|
||||||
this.fileLockedShowKey.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
this.fileLockedShowKey.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
|
||||||
|
|
@ -1180,6 +1166,25 @@ public void InitializeComponent()
|
||||||
this.richTextBoxPanel.Size = new System.Drawing.Size(504, 186);
|
this.richTextBoxPanel.Size = new System.Drawing.Size(504, 186);
|
||||||
this.richTextBoxPanel.TabIndex = 21;
|
this.richTextBoxPanel.TabIndex = 21;
|
||||||
//
|
//
|
||||||
|
// statusPanelTimer
|
||||||
|
//
|
||||||
|
this.statusPanelTimer.Interval = 1;
|
||||||
|
this.statusPanelTimer.Tick += new System.EventHandler(this.StatusPanelTimer_Tick);
|
||||||
|
//
|
||||||
|
// fileLockedKeyTextBox
|
||||||
|
//
|
||||||
|
this.fileLockedKeyTextBox.Location = new System.Drawing.Point(6, 34);
|
||||||
|
this.fileLockedKeyTextBox.Name = "fileLockedKeyTextBox";
|
||||||
|
this.fileLockedKeyTextBox.Placeholder = "Encryption key";
|
||||||
|
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
|
// richTextBox
|
||||||
//
|
//
|
||||||
this.richTextBox.AcceptsTab = true;
|
this.richTextBox.AcceptsTab = true;
|
||||||
|
|
@ -1200,11 +1205,6 @@ public void InitializeComponent()
|
||||||
this.richTextBox.TextChanged += new System.EventHandler(this.RichTextBox_TextChanged);
|
this.richTextBox.TextChanged += new System.EventHandler(this.RichTextBox_TextChanged);
|
||||||
this.richTextBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.RichTextBox_KeyDown);
|
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);
|
|
||||||
//
|
|
||||||
// MainForm
|
// MainForm
|
||||||
//
|
//
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
|
|
|
||||||
|
|
@ -1051,6 +1051,7 @@ private void NewMainMenu_Click(object sender, EventArgs e)
|
||||||
|
|
||||||
if (!PublicVar.okPressed)
|
if (!PublicVar.okPressed)
|
||||||
{
|
{
|
||||||
|
PublicVar.openFileName = "";
|
||||||
if (!string.IsNullOrEmpty(filePath))
|
if (!string.IsNullOrEmpty(filePath))
|
||||||
{
|
{
|
||||||
PublicVar.openFileName = Path.GetFileName(filePath);
|
PublicVar.openFileName = Path.GetFileName(filePath);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue