private void EventFactory_DeleteObject(object sender, Midget.Events.Object.MultiObjectEventArgs e) { foreach (IObject3D obj in e.Objects) { MidgetTreeNode node = FindNode(obj); // if the node hasn't already been deleted if (node != null) { node.Remove(); } } }
public void RemoveNode(MidgetTreeNode node) { node.Remove(); }