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); }
protected void ActivityStepped(PActivity activity) { PRoot root = Canvas.Root; if (root.PaintInvalid || root.ChildPaintInvalid) { PNodeList cameraChildren = Canvas.Camera.ChildrenReference; foreach (PNode each in cameraChildren) { if (each is PHandle) { PHandle handle = (PHandle)each; handle.RelocateHandle(); } } } }
public HandleEventHandler(PHandle handle) { this.handle = handle; }