private void NodeCreationCallback(IntPtr pContext, IntPtr hCreatedNode, IntPtr pCookie) { EventHandler <NodeCreatedEventArgs> handlers = this.nodeCreated; if (handlers != null) { ProductionNode createdNode = Context.CreateProductionNodeFromNative(hCreatedNode); NodeCreatedEventArgs args = new NodeCreatedEventArgs(createdNode); handlers(this, args); } }
public static ProductionNode FromNative(IntPtr nodeHandle) { return(Context.CreateProductionNodeFromNative(nodeHandle)); }