IDropReceiver FindDropReceiver() { UiElement ui = _pointerDataProvider.UnderCursorUiElement; IDropReceiver result = ui as IDropReceiver; if (result != null) { return(result); } TileObject to = _pointerDataProvider.UnderCursorTileObject; result = to as IDropReceiver; return(result); }
IDragable FindDragable() { UiElement ui = _pointerDataProvider.UnderCursorUiElement; IDragable result = ui as IDragable; if (result != null) { return(result); } TileObject to = _pointerDataProvider.UnderCursorTileObject; result = to as IDragable; return(result); }