Ejemplo n.º 1
0
        public static bool IsDragging(DrawingLayer s)
        {
            if (JustdidLeftClick(s))
            {
                DraggingLayer = s;
            }

            if (DraggingLayer.Equals(s))
            {
                if (!IsLeftClickingNow())
                {
                    DraggingLayer = new DrawingLayer("WhiteSpace", new Rectangle(0, 0, 0, 0));
                }
            }
            if (DraggingLayer == s)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }