CortanaSwitch.View.Control.NodeBase.NodeBase C# (CSharp) Method

NodeBase() public method

public NodeBase ( ) : System
return System
        public NodeBase()
        {
            this.CanDrag = true;
            this.DragStarting += (s, e) =>
            {
                e.Data.RequestedOperation = DataPackageOperation.Move;
                e.Data.SetData("NodeId", NodeId);
                Point relativePos = e.GetPosition(this);
                e.Data.SetData("ClickPosX",relativePos.X);
                e.Data.SetData("ClickPosY",relativePos.Y);
                e.Data.SetData("DragType", (int)DiagramDragType.NodeMove);
            };

            this.NodeLinked += (s, e) =>
            {

            };
        }