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; }
public void DeletePileAndControl(PileControl inPileControl) { Workspace.Instance.RemovePile(inPileControl.Pile); stackPanel.Children.Remove(inPileControl); }