Dispose of the search window iif the object editor is closed
This commit is contained in:
parent
c83d7e7f1e
commit
f376f16dcc
@ -178,6 +178,8 @@ namespace Toolbox.Library.Forms
|
||||
if (viewport != null)
|
||||
viewport.FormClosing();
|
||||
|
||||
|
||||
|
||||
if (ObjectTree != null)
|
||||
ObjectTree.FormClosing();
|
||||
}
|
||||
|
@ -230,6 +230,12 @@ namespace Toolbox.Library.Forms
|
||||
|
||||
public void FormClosing()
|
||||
{
|
||||
if (searchForm != null)
|
||||
{
|
||||
searchForm.Close();
|
||||
searchForm.Dispose();
|
||||
}
|
||||
|
||||
foreach (var control in stPanel2.Controls)
|
||||
{
|
||||
if (control is STUserControl)
|
||||
@ -519,10 +525,11 @@ namespace Toolbox.Library.Forms
|
||||
}
|
||||
}
|
||||
|
||||
private SearchNodeForm searchForm;
|
||||
private void searchFormToolStrip_Click(object sender, EventArgs e)
|
||||
{
|
||||
SearchNodeForm form = new SearchNodeForm(treeViewCustom1);
|
||||
form.Show(this);
|
||||
searchForm = new SearchNodeForm(treeViewCustom1);
|
||||
searchForm.Show(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user