Beispiel #1
0
        private void DraggingMessage(PointerState po, string tokenid)
        {
            if (Dragging == null)
            {
                return;
            }

            Token.AddNew(new EventTokenTriggerToolDragging
            {
                TokenID        = tokenid,
                Name           = Dragging.Name,
                ToolButtonType = Dragging.GetType(),
                Pointer        = po,
                Sender         = this,
            });
            if (tokenid == TokenIdFinished || tokenid == TokenIdCancelling)
            {
                Dragging = null;
                Status["IsEnableSelectingBox"].ValueB = true;
            }
            else
            {
                Status["IsEnableSelectingBox"].ValueB = false;
            }
        }
Beispiel #2
0
 public void OnPointerPressed(PointerState po)
 {
     if (Dragging == null)
     {
         var tar = checkSelect(po);
         if (tar != null)
         {
             Dragging = tar;
             DraggingMessage(po, TokenIdCreating);
         }
     }
 }