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);