Source/Design/WizardPageDesigner.cs

(开头部分) 4KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Text;
using System.Windows.Forms.Design;
using System.ComponentModel.Design;
using System.ComponentModel;

namespace DevComponents.DotNetBar.Design
{
    /// <summary>
    /// Represents Windows Forms Designer for WizardPage.
    /// </summary>
    public class WizardPageDesigner : ScrollableControlDesigner
    {
        #region Internal Implementation
        public override DesignerVerbCollection Verbs
        {
            get
            {
                DesignerVerb[] verbs = null;
                verbs = new DesignerVerb[]
					{
						new DesignerVerb("Create Inner Page", new EventHandler(CreateInnerPage)),
						new DesignerVerb("Create Welcome Page", new EventHandler(CreateWelcomePage)),
						new DesignerVerb("Create Outer Page", new EventHandler(CreateOuterPage)),
                        new DesignerVerb("Delete Page", new EventHandler(DeletePage)),
                        new DesignerVerb("Next Page", new EventHandler(NextPage)),
                        new DesignerVerb("Previous Page", new EventHandler(PreviousPage)),
                        new DesignerVerb("Goto Page/Change Order", new EventHandler(GotoPage))
                    };
                return new DesignerVerbCollection(verbs);
            }
        }

        public override SelectionRules SelectionRules
		{
			get{return SelectionRules.Locked;}
        }

        private Wizard GetWizard()
        {
            WizardPage page = this.Control as WizardPage;
            return page.Parent as Wizard;
        }

        private void GotoPage(object sender, EventArgs e)
        {
            IComponentChangeService cc = this.GetService(typeof(IComponentChangeService)) as IComponentChangeService;
            ISelectionService ss = this.GetService(typeof(ISelectionService)) as ISelectionService;
            WizardDesigner.GotoPage(this.GetWizard(), cc, ss);
        }


        private void CreateInnerPage(object sender, EventArgs e)
        {
            IDesignerHost dh = this.GetService(typeof(IDesignerHost)) as IDesignerHost;
            IComponentChangeService cc = this.GetService(typeof(IComponentChangeService)) as IComponentChangeService;
            ISelectionService ss = this.GetService(typeof(ISelectionService)) as ISelectionService;

            Wizard w = GetWizard();
            WizardDesigner.CreatePage(w, true, dh, cc, ss, w.ButtonStyle);
后面还有 43 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。