Inheritance: System.EventArgs
コード例 #1
0
        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);
            }
        }
コード例 #2
0
ファイル: Context.cs プロジェクト: FreeMiles/OpenNI
 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);
     }
 }