예제 #1
0
파일: Wizard.cs 프로젝트: sunpander/VSDT
        /// <summary>
        /// Creates a new instance of the <see cref="Wizard"/> class.
        /// </summary>
        public Wizard()
        {
            // call required by designer
            this.InitializeComponent();

            // reset control style to improove rendering (reduce flicker)
            base.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            base.SetStyle(ControlStyles.DoubleBuffer, true);
            base.SetStyle(ControlStyles.ResizeRedraw, true);
            base.SetStyle(ControlStyles.UserPaint, true);

            // reset dock style
            base.Dock = DockStyle.Fill;

            // init pages collection
            this.pages = new WizardPagesCollection(this);
        }
예제 #2
0
        /// <summary>
        /// Creates a new instance of the <see cref="Wizard"/> class.
        /// </summary>
        public Wizard()
        {
            // call required by designer
            this.InitializeComponent();

            // reset control style to improove rendering (reduce flicker)
            base.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            base.SetStyle(ControlStyles.DoubleBuffer, true);
            base.SetStyle(ControlStyles.ResizeRedraw, true);
            base.SetStyle(ControlStyles.UserPaint, true);

            // reset dock style
            base.Dock = DockStyle.Fill;

            // init pages collection
            this.pages = new WizardPagesCollection(this);
        }