Exemplo n.º 1
0
			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);
			}
Exemplo n.º 2
0
			/// <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;
			}
Exemplo n.º 3
0
 /// <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;
 }