1
0
mirror of synced 2024-11-28 09:20:57 +01:00

Dispose of the search window iif the object editor is closed

This commit is contained in:
KillzXGaming 2019-07-31 17:48:31 -04:00
parent c83d7e7f1e
commit f376f16dcc
4 changed files with 11 additions and 2 deletions

View File

@ -178,6 +178,8 @@ namespace Toolbox.Library.Forms
if (viewport != null)
viewport.FormClosing();
if (ObjectTree != null)
ObjectTree.FormClosing();
}

View File

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