Changed: clean-up

This commit is contained in:
Ray 2020-08-28 23:25:49 +01:00
parent d97959f53c
commit d6d4fd024d
3 changed files with 8 additions and 48 deletions

6
FindForm.Designer.cs generated
View File

@ -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
//

View File

@ -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;
}

View File

@ -26,52 +26,6 @@ namespace bzit.bomg
this.StartPosition = FormStartPosition.WindowsDefaultLocation;
}
//protected void threadWorker1_DoWork(object sender, DoWorkEventArgs e)
//{
// if (threadWorker.CancellationPending)
// {
// return;
// }
// List<TreeNode> nodeList = parentForm.treeView1.GetBookmarkNodeList();
// ThreadControl.SetValue(progressBar1, 0, nodeList.Count);
// for (int i=0; i<nodeList.Count; i++)
// {
// if (threadWorker.CancellationPending)
// {
// return;
// }
// ThreadControl.SetValue(progressBar1, (i + 1));
// BookmarkItemViewModel viewModel = (BookmarkItemViewModel)nodeList[i].Tag;
// BookmarkItemModel model = viewModel.ToModel();
// bool rv = model.UpdateFavicon();
// if (rv)
// {
// if (parentForm.treeView1.InvokeRequired)
// {
// parentForm.treeView1.Invoke(new MethodInvoker(() => {
// 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);