protected override void OnDragEnter(DragEventArgs de) { this.forwardOnDrag = true; WizardPageDesigner wizPageDesigner = this.GetSelectedWizardPageDesigner(); if (wizPageDesigner != null) { wizPageDesigner.OnDragEnterInternal(de); } }
protected override IComponent[] CreateToolCore(ToolboxItem tool, int x, int y, int width, int height, bool hasLocation, bool hasSize) { WizardPageDesigner pageDes = GetSelectedWizardPageDesigner(); if (pageDes != null) { ParentControlDesigner.InvokeCreateTool(pageDes, tool); } return(null); }
protected override void OnGiveFeedback(GiveFeedbackEventArgs e) { if (this.forwardOnDrag) { WizardPageDesigner wizPageDesigner = this.GetSelectedWizardPageDesigner(); if (wizPageDesigner != null) { wizPageDesigner.OnGiveFeedbackInternal(e); } } else { base.OnGiveFeedback(e); } }
protected override void OnDragLeave(EventArgs e) { if (this.forwardOnDrag) { WizardPageDesigner wizPageDesigner = this.GetSelectedWizardPageDesigner(); if (wizPageDesigner != null) { wizPageDesigner.OnDragLeaveInternal(e); } } else { base.OnDragLeave(e); } this.forwardOnDrag = false; }
protected override void OnDragDrop(DragEventArgs de) { if (forwardOnDrag) { WizardPageDesigner wizPageDesigner = GetSelectedWizardPageDesigner(); if (wizPageDesigner != null) { wizPageDesigner.OnDragDropInternal(de); } } else { base.OnDragDrop(de); } forwardOnDrag = false; }
protected override void OnDragOver(DragEventArgs de) { if (this.forwardOnDrag) { var control = this.WizardControl; Point pt = control.PointToClient(new Point(de.X, de.Y)); if (!control.DisplayRectangle.Contains(pt)) { de.Effect = DragDropEffects.None; } else { WizardPageDesigner wizPageDesigner = this.GetSelectedWizardPageDesigner(); if (wizPageDesigner != null) { wizPageDesigner.OnDragOverInternal(de); } } } else { base.OnDragOver(de); } }
public WizardPageDesignerActionList(WizardPageDesigner pageDesigner) : base(pageDesigner.Component) { wizardPageDesigner = pageDesigner; base.AutoShow = true; }