internal void RemoveInstance(AngledThing angledThing) { if (SelectedInstance == angledThing) { SetSelectedInstance(null); } if (HoverShape == angledThing) { HoverShape = null; } ThePanel.RemoveInstance(angledThing); TV.BuildTree(this, ThePanel.TheSet); Redraw(true); }