Exemplo n.º 1
0
        protected override void OnDragEnter(DragEventArgs de)
        {
            this.forwardOnDrag = true;
            WizardPageDesigner wizPageDesigner = this.GetSelectedWizardPageDesigner();

            if (wizPageDesigner != null)
            {
                wizPageDesigner.OnDragEnterInternal(de);
            }
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
 protected override void OnGiveFeedback(GiveFeedbackEventArgs e)
 {
     if (this.forwardOnDrag)
     {
         WizardPageDesigner wizPageDesigner = this.GetSelectedWizardPageDesigner();
         if (wizPageDesigner != null)
         {
             wizPageDesigner.OnGiveFeedbackInternal(e);
         }
     }
     else
     {
         base.OnGiveFeedback(e);
     }
 }
Exemplo n.º 4
0
 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;
 }
Exemplo n.º 5
0
 protected override void OnDragDrop(DragEventArgs de)
 {
     if (forwardOnDrag)
     {
         WizardPageDesigner wizPageDesigner = GetSelectedWizardPageDesigner();
         if (wizPageDesigner != null)
         {
             wizPageDesigner.OnDragDropInternal(de);
         }
     }
     else
     {
         base.OnDragDrop(de);
     }
     forwardOnDrag = false;
 }
Exemplo n.º 6
0
 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);
     }
 }
Exemplo n.º 7
0
 public WizardPageDesignerActionList(WizardPageDesigner pageDesigner)
     : base(pageDesigner.Component)
 {
     wizardPageDesigner = pageDesigner;
     base.AutoShow      = true;
 }