protected override void OnGiveFeedback(GiveFeedbackEventArgs e) { MultiPanePageDesigner aDsgn_Sel = GetSelectedPageDesigner(); if (aDsgn_Sel != null) { aDsgn_Sel.InternalOnGiveFeedback(e); } }
protected override void OnDragLeave(EventArgs theArgs) { MultiPanePageDesigner aDsgn_Sel = GetSelectedPageDesigner(); if (aDsgn_Sel != null) { aDsgn_Sel.InternalOnDragLeave(theArgs); } }
protected override void OnDragDrop(DragEventArgs theDragEvents) { MultiPanePageDesigner dsgnSel = GetSelectedPageDesigner(); if (dsgnSel != null) { dsgnSel.InternalOnDragDrop(theDragEvents); } }
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); }
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); } } }