Example #1
0
        private void Pile_OnDragPileStarted(PileControl inPile)
        {
            mDraggedPile = inPile;

            mDragPreviousCursor = Cursor;
            Cursor = Cursors.Hand;

            // Update dragging state of all piles
            foreach (PileControl pile in PileControls)
            {
                pile.DragState = (pile == mDraggedPile) ? PileControl.EDragState.IsBeingDragged : PileControl.EDragState.IsNotBeingDragged;
            }


            mDragging = true;
        }
Example #2
0
 public void DeletePileAndControl(PileControl inPileControl)
 {
     Workspace.Instance.RemovePile(inPileControl.Pile);
     stackPanel.Children.Remove(inPileControl);
 }