コード例 #1
0
        protected override void OnGiveFeedback(GiveFeedbackEventArgs e)
        {
            MultiPanePageDesigner aDsgn_Sel = GetSelectedPageDesigner();

            if (aDsgn_Sel != null)
            {
                aDsgn_Sel.InternalOnGiveFeedback(e);
            }
        }
コード例 #2
0
        protected override void OnDragLeave(EventArgs theArgs)
        {
            MultiPanePageDesigner aDsgn_Sel = GetSelectedPageDesigner();

            if (aDsgn_Sel != null)
            {
                aDsgn_Sel.InternalOnDragLeave(theArgs);
            }
        }
コード例 #3
0
        protected override void OnDragDrop(DragEventArgs theDragEvents)
        {
            MultiPanePageDesigner dsgnSel = GetSelectedPageDesigner();

            if (dsgnSel != null)
            {
                dsgnSel.InternalOnDragDrop(theDragEvents);
            }
        }
コード例 #4
0
        private MultiPanePageDesigner GetSelectedPageDesigner()
        {
            Page multiPanePage = selectedPage;

            if (multiPanePage == null)
            {
                return(null);
            }
            MultiPanePageDesigner designer = null;
            IDesignerHost         srv      = (IDesignerHost)GetService(typeof(IDesignerHost));

            if (srv != null)
            {
                designer = (MultiPanePageDesigner)srv.GetDesigner(multiPanePage);
            }
            return(designer);
        }
コード例 #5
0
        protected override void OnDragOver(DragEventArgs theDragEvents)
        {
            MultiLayerPanel aCtl = DesignedControl;
            Point           pt   = aCtl.PointToClient(new Point(theDragEvents.X, theDragEvents.Y));

            if (!aCtl.DisplayRectangle.Contains(pt))
            {
                theDragEvents.Effect = DragDropEffects.None;
            }
            else
            {
                MultiPanePageDesigner aDsgn_Sel = GetSelectedPageDesigner();
                if (aDsgn_Sel != null)
                {
                    aDsgn_Sel.InternalOnDragOver(theDragEvents);
                }
            }
        }