From 755cc48242e4d4dbc752079918430dd5c676e372 Mon Sep 17 00:00:00 2001 From: Alexander Date: Fri, 28 Dec 2018 13:11:02 +0200 Subject: [PATCH] Added if DEBUG directive for MainVariablesToolStripMenuItem --- Crypto Notepad/MainForm.Designer.cs | 2 +- Crypto Notepad/MainForm.cs | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Crypto Notepad/MainForm.Designer.cs b/Crypto Notepad/MainForm.Designer.cs index 13cd94b..02fe873 100644 --- a/Crypto Notepad/MainForm.Designer.cs +++ b/Crypto Notepad/MainForm.Designer.cs @@ -444,7 +444,7 @@ public void InitializeComponent() // MainVariablesToolStripMenuItem // this.MainVariablesToolStripMenuItem.Name = "MainVariablesToolStripMenuItem"; - this.MainVariablesToolStripMenuItem.Size = new System.Drawing.Size(180, 22); + this.MainVariablesToolStripMenuItem.Size = new System.Drawing.Size(147, 22); this.MainVariablesToolStripMenuItem.Text = "Main variables"; this.MainVariablesToolStripMenuItem.Click += new System.EventHandler(this.MainVariablesToolStripMenuItem_Click); // diff --git a/Crypto Notepad/MainForm.cs b/Crypto Notepad/MainForm.cs index e05e8cd..2973ecb 100644 --- a/Crypto Notepad/MainForm.cs +++ b/Crypto Notepad/MainForm.cs @@ -1380,6 +1380,7 @@ private void ChkMatchWholeWord_CheckedChanged(object sender, EventArgs e) /*Debug Menu*/ private void MainVariablesToolStripMenuItem_Click(object sender, EventArgs e) { +#if DEBUG Debug.WriteLine("\ncurrentFilename: " + currentFilename); Debug.WriteLine("encryptionKey: " + PublicVar.encryptionKey.Get()); Debug.WriteLine("TypedPassword: " + TypedPassword.Value); @@ -1390,8 +1391,9 @@ private void MainVariablesToolStripMenuItem_Click(object sender, EventArgs e) Debug.WriteLine("settingsChanged: " + PublicVar.settingsChanged); Debug.WriteLine("okPressed: " + PublicVar.okPressed); Debug.WriteLine("CustomRTB.Modified: " + CustomRTB.Modified); +#endif } /*Debug Menu*/ } -} \ No newline at end of file + } \ No newline at end of file