예제 #1
0
        protected override void OnDragEnter(DragEventArgs de)
        {
            this.forwardOnDrag = true;
            WizardPageDesigner wizPageDesigner = this.GetSelectedWizardPageDesigner();

            if (wizPageDesigner != null)
            {
                wizPageDesigner.OnDragEnterInternal(de);
            }
        }
예제 #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);
        }
예제 #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);
     }
 }
예제 #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;
 }
예제 #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;
 }
예제 #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);
     }
 }
예제 #7
0
 public WizardPageDesignerActionList(WizardPageDesigner pageDesigner)
     : base(pageDesigner.Component)
 {
     wizardPageDesigner = pageDesigner;
     base.AutoShow      = true;
 }