From d6d4fd024d4656fcb9eaf57c8f6974e5c91c7558 Mon Sep 17 00:00:00 2001 From: Ray Date: Fri, 28 Aug 2020 23:25:49 +0100 Subject: [PATCH] Changed: clean-up --- FindForm.Designer.cs | 6 ++++++ FindForm.cs | 4 ++-- UpdateIconsForm.cs | 46 -------------------------------------------- 3 files changed, 8 insertions(+), 48 deletions(-) diff --git a/FindForm.Designer.cs b/FindForm.Designer.cs index 448db17..22f649f 100644 --- a/FindForm.Designer.cs +++ b/FindForm.Designer.cs @@ -59,6 +59,9 @@ namespace bzit.bomg this.button1.Size = new System.Drawing.Size(108, 32); this.button1.TabIndex = 1; this.button1.Click += new System.EventHandler(this.button1_Click); + this.button1.DoubleClick += new System.EventHandler(this.button1_Click); + this.button1.MouseClick += new System.Windows.Forms.MouseEventHandler(this.button1_Click); + this.button1.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.button1_Click); // // button2 // @@ -74,6 +77,9 @@ namespace bzit.bomg this.button2.Size = new System.Drawing.Size(108, 32); this.button2.TabIndex = 2; this.button2.Click += new System.EventHandler(this.button2_Click); + this.button2.DoubleClick += new System.EventHandler(this.button2_Click); + this.button2.MouseClick += new System.Windows.Forms.MouseEventHandler(this.button2_Click); + this.button2.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.button2_Click); // // horizontalSeparator1 // diff --git a/FindForm.cs b/FindForm.cs index 083e90c..140b089 100644 --- a/FindForm.cs +++ b/FindForm.cs @@ -47,7 +47,7 @@ namespace bzit.bomg return; } - if (string.IsNullOrEmpty(textBox1.Text)) + if (string.IsNullOrWhiteSpace(textBox1.Text)) { return; } @@ -68,7 +68,7 @@ namespace bzit.bomg return; } - if (string.IsNullOrEmpty(textBox1.Text)) + if (string.IsNullOrWhiteSpace(textBox1.Text)) { return; } diff --git a/UpdateIconsForm.cs b/UpdateIconsForm.cs index 46dde3b..754e195 100644 --- a/UpdateIconsForm.cs +++ b/UpdateIconsForm.cs @@ -26,52 +26,6 @@ namespace bzit.bomg this.StartPosition = FormStartPosition.WindowsDefaultLocation; } - //protected void threadWorker1_DoWork(object sender, DoWorkEventArgs e) - //{ - // if (threadWorker.CancellationPending) - // { - // return; - // } - - // List nodeList = parentForm.treeView1.GetBookmarkNodeList(); - - // ThreadControl.SetValue(progressBar1, 0, nodeList.Count); - - // for (int i=0; i { - // parentForm.treeView1.UpdateItem(nodeList[i], model.ToViewModel()); - // })); - // } - // else - // { - // parentForm.treeView1.UpdateItem(nodeList[i], model.ToViewModel()); - // } - // } - // } - //} - - //protected void threadWorker1_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) - //{ - // this.IsBusy = false; - - // ThreadControl.SetText(button1, "&Update"); - //} - protected override void OnClosing(CancelEventArgs e) { base.OnClosing(e);