void m_oModel_NodeUnloaded(object sender, NodeUnloadedEventArgs e) { MethodInvoker MethodBody = delegate() { TreeNode oUnloadedNode = FindNodeWithTag(e.Node); if (oUnloadedNode != null) { ConfigureTreeNodeDisplay(oUnloadedNode); AddChildTreeNodes(oUnloadedNode); } }; if (c_tvView.IsHandleCreated) { c_tvView.Invoke(MethodBody); } }
void m_oModel_NodeUnloaded(object sender, NodeUnloadedEventArgs e) { MethodInvoker MethodBody = delegate() { TreeNode oUnloadedNode = FindNodeWithTag(e.Node); if (oUnloadedNode != null) { ConfigureTreeNodeDisplay(oUnloadedNode); AddChildTreeNodes(oUnloadedNode); } }; if (c_tvView.IsHandleCreated) c_tvView.Invoke(MethodBody); }