Example #1
0
 protected override void OnGiveFeedback(GiveFeedbackEventArgs e)
 {
     if (this.forwardDragEventsToPage)
     {
         WizardPageDesigner currentWizardPageDesigner = this.GetCurrentWizardPageDesigner();
         if (currentWizardPageDesigner != null)
         {
             currentWizardPageDesigner.OnGiveFeedbackInternal(e);
         }
     }
     else
     {
         base.OnGiveFeedback(e);
     }
 }
Example #2
0
 protected override void OnDragLeave(EventArgs e)
 {
     if (this.forwardDragEventsToPage)
     {
         this.forwardDragEventsToPage = false;
         WizardPageDesigner currentWizardPageDesigner = this.GetCurrentWizardPageDesigner();
         if (currentWizardPageDesigner != null)
         {
             currentWizardPageDesigner.OnDragLeaveInternal(e);
         }
     }
     else
     {
         base.OnDragLeave(e);
     }
 }
Example #3
0
 protected override void OnDragDrop(DragEventArgs de)
 {
     if (this.forwardDragEventsToPage)
     {
         this.forwardDragEventsToPage = false;
         WizardPageDesigner currentWizardPageDesigner = this.GetCurrentWizardPageDesigner();
         if (currentWizardPageDesigner != null)
         {
             currentWizardPageDesigner.OnDragDropInternal(de);
         }
     }
     else
     {
         de.Effect = DragDropEffects.None;
     }
 }
Example #4
0
        protected override void OnDragOver(DragEventArgs de)
        {
            Wizard wizard = (Wizard)Control;

            if (wizard.WizardPages.Count <= 0)
            {
                de.Effect = DragDropEffects.None;
            }
            else
            {
                WizardPage         page = wizard.WizardPages[wizard.CurrentPageIndex];
                WizardPageDesigner wizardPageDesigner = this.GetWizardPageDesigner(page);
                if (!page.ClientRectangle.Contains(page.PointToClient(new Point(de.X, de.Y))))
                {
                    if (!this.forwardDragEventsToPage)
                    {
                        de.Effect = DragDropEffects.None;
                    }
                    else
                    {
                        this.forwardDragEventsToPage = false;
                        wizardPageDesigner.OnDragLeaveInternal(EventArgs.Empty);
                        base.OnDragEnter(de);
                    }
                }
                else
                {
                    if (!this.forwardDragEventsToPage)
                    {
                        base.OnDragLeave(EventArgs.Empty);
                        wizardPageDesigner.OnDragEnterInternal(de);
                        this.forwardDragEventsToPage = true;
                    }
                    else
                    {
                        wizardPageDesigner.OnDragOverInternal(de);
                    }
                }
            }
        }