Esempio n. 1
0
        /// <summary>
        /// Initializes a new instance of the Wizard class
        /// </summary>
        public Wizard()
        {
            this.InitializeComponent();

            // default props
            this._title       = "My Wizard";
            this._map         = new WizardNavigationMap();
            this._currentPage = null;
            this._pagesUsed   = new WizardPageDescriptorList();
            this._pageHistory = new Stack();
            this._propertyBag = new Hashtable();

            // the initial layout is cancel only
            this.SetButtonStyle(new WizardButtonStyle(WizardButtons.Help, false, false));
            this.SetButtonStyle(new WizardButtonStyle(WizardButtons.Back, false, false));
            this.SetButtonStyle(new WizardButtonStyle(WizardButtons.Next, false, false));
            this.SetButtonStyle(new WizardButtonStyle(WizardButtons.Cancel, true, true));

            // wire up to the wizard button events
            this._buttonHelp.Click   += new EventHandler(this.OnWizardButtonClicked);
            this._buttonBack.Click   += new EventHandler(this.OnWizardButtonClicked);
            this._buttonNext.Click   += new EventHandler(this.OnWizardButtonClicked);
            this._buttonCancel.Click += new EventHandler(this.OnWizardButtonClicked);
        }
Esempio n. 2
0
		/// <summary>
		/// Initializes a new instance of the Wizard class
		/// </summary>
		public Wizard()
		{
			this.InitializeComponent();
			
			// default props
			this._title = "My Wizard";
			this._map = new WizardNavigationMap();
			this._currentPage = null;
			this._pagesUsed = new WizardPageDescriptorList();
			this._pageHistory = new Stack();
			this._propertyBag = new Hashtable();

			// the initial layout is cancel only
			this.SetButtonStyle(new WizardButtonStyle(WizardButtons.Help, false, false));
			this.SetButtonStyle(new WizardButtonStyle(WizardButtons.Back, false, false));
			this.SetButtonStyle(new WizardButtonStyle(WizardButtons.Next, false, false));
			this.SetButtonStyle(new WizardButtonStyle(WizardButtons.Cancel, true, true));
			
			// wire up to the wizard button events
			this._buttonHelp.Click += new EventHandler(this.OnWizardButtonClicked);
			this._buttonBack.Click += new EventHandler(this.OnWizardButtonClicked);
			this._buttonNext.Click += new EventHandler(this.OnWizardButtonClicked);
			this._buttonCancel.Click += new EventHandler(this.OnWizardButtonClicked);
		}