public void AddHandles() { PHandle h1 = new PHandle(new AngleHandleLocator(this, AngleHandleLocator.HandleNum.HandleOne)); h1.HandleDrag = new HandleDragDelegate(DragHandleOneHandler); AddChild(h1); PHandle h2 = new PHandle(new AngleHandleLocator(this, AngleHandleLocator.HandleNum.HandleTwo)); h2.HandleDrag = new HandleDragDelegate(DragHandleTwoHandler); AddChild(h2); }
/// <summary> /// Constructs a new HandleDragEventHandler. /// </summary> /// <param name="handle"> /// The node that this event handler will handle drag events for. /// </param> public HandleDragEventHandler(PHandle handle) { this.handle = handle; }