コード例 #1
0
		/// <summary>
		/// Fires the CloseFromNextEvent
		/// </summary>
		/// <param name="wiz">Sender</param>
		public int OnCloseFromNext(Wizard wiz)
		{	
			//Event args thinks that the next pgae will be the one before this one
			PageEventArgs e = new PageEventArgs(wiz.PageIndex +1, wiz.Pages);
			//Tell anybody who listens
			if (CloseFromNext != null)
				CloseFromNext(wiz, e);
			//And then tell whomever called me what the prefered page is
			return e.PageIndex;
		}
コード例 #2
0
 /// <summary>
 /// Constructor requires the  wizard that owns this collection
 /// </summary>
 /// <param name="parent">Wizard</param>
 public PageCollection(Wizard parent)
 {
     vParent = parent;
 }
コード例 #3
0
		/// <summary>
		/// Fires the showFromNext event
		/// </summary>
		/// <param name="wiz">Sender</param>
		public void OnShowFromNext(Wizard wiz)
		{
			if (ShowFromNext != null)
				ShowFromNext(wiz, EventArgs.Empty);
		}
コード例 #4
0
		/// <summary>
		/// Fires the showFromBack event
		/// </summary>
		/// <param name="wiz">sender</param>
		public void OnShowFromBack(Wizard wiz)
		{
			if (ShowFromBack != null)
				ShowFromBack(wiz, EventArgs.Empty);
		}
コード例 #5
0
ファイル: NewFileCtrl.cs プロジェクト: jugglingcats/XEditNet
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(NewFileCtrl));
     this.wizard1 = new Gui.Wizard.Wizard();
     this.pageWizardSelect = new Gui.Wizard.WizardPage();
     this.treeView1 = new System.Windows.Forms.TreeView();
     this.label1 = new System.Windows.Forms.Label();
     this.header1 = new Gui.Wizard.Header();
     this.wizard1.SuspendLayout();
     this.pageWizardSelect.SuspendLayout();
     this.SuspendLayout();
     //
     // wizard1
     //
     this.wizard1.CloneOnFinish = true;
     this.wizard1.Controls.Add(this.pageWizardSelect);
     this.wizard1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.wizard1.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.wizard1.Location = new System.Drawing.Point(0, 0);
     this.wizard1.Name = "wizard1";
     this.wizard1.Pages.AddRange(new Gui.Wizard.WizardPage[] {
                                                                 this.pageWizardSelect});
     this.wizard1.Size = new System.Drawing.Size(488, 475);
     this.wizard1.TabIndex = 0;
     this.wizard1.FinishSelected += new System.EventHandler(this.WizardFinishSelected);
     //
     // pageWizardSelect
     //
     this.pageWizardSelect.Controls.Add(this.treeView1);
     this.pageWizardSelect.Controls.Add(this.label1);
     this.pageWizardSelect.Controls.Add(this.header1);
     this.pageWizardSelect.Dock = System.Windows.Forms.DockStyle.Fill;
     this.pageWizardSelect.IsFinishPage = false;
     this.pageWizardSelect.Location = new System.Drawing.Point(0, 0);
     this.pageWizardSelect.Name = "pageWizardSelect";
     this.pageWizardSelect.Size = new System.Drawing.Size(488, 427);
     this.pageWizardSelect.TabIndex = 1;
     this.pageWizardSelect.ShowFromBack += new System.EventHandler(this.FirstPageRedisplayed);
     this.pageWizardSelect.CloseFromNext += new Gui.Wizard.PageEventHandler(this.ProfileSelected);
     //
     // treeView1
     //
     this.treeView1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
         | System.Windows.Forms.AnchorStyles.Left)
         | System.Windows.Forms.AnchorStyles.Right)));
     this.treeView1.HideSelection = false;
     this.treeView1.ImageIndex = -1;
     this.treeView1.Location = new System.Drawing.Point(8, 96);
     this.treeView1.Name = "treeView1";
     this.treeView1.Scrollable = false;
     this.treeView1.SelectedImageIndex = -1;
     this.treeView1.Size = new System.Drawing.Size(472, 320);
     this.treeView1.TabIndex = 2;
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(8, 72);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(100, 16);
     this.label1.TabIndex = 1;
     this.label1.Text = "&Wizards:";
     //
     // header1
     //
     this.header1.BackColor = System.Drawing.SystemColors.Control;
     this.header1.CausesValidation = false;
     this.header1.Description = "The list below shows the types of document currently registered with XEditNet";
     this.header1.Dock = System.Windows.Forms.DockStyle.Top;
     this.header1.Image = ((System.Drawing.Image)(resources.GetObject("header1.Image")));
     this.header1.Location = new System.Drawing.Point(0, 0);
     this.header1.Name = "header1";
     this.header1.Size = new System.Drawing.Size(488, 64);
     this.header1.TabIndex = 0;
     this.header1.Title = "Select a Wizard";
     //
     // NewFileCtrl
     //
     this.Controls.Add(this.wizard1);
     this.Name = "NewFileCtrl";
     this.Size = new System.Drawing.Size(488, 475);
     this.wizard1.ResumeLayout(false);
     this.pageWizardSelect.ResumeLayout(false);
     this.ResumeLayout(false);
 }
コード例 #6
0
ファイル: PageCollection.cs プロジェクト: tmcqueen2/GSharp
 /// <summary>
 /// Constructor requires the  wizard that owns this collection
 /// </summary>
 /// <param name="parent">Wizard</param>
 public PageCollection(Wizard parent)
 {
     vParent = parent;
 }
コード例 #7
0
ファイル: WizardPage.cs プロジェクト: steve-stanton/backsight
 /// <param name="wiz">Sender</param>
 public void OnFinish(Wizard wiz)
 {
     if (Finish != null)
         if (_IsFinishPage)
             Finish(wiz, EventArgs.Empty);
 }
コード例 #8
0
ファイル: NewFileCtrl.cs プロジェクト: jugglingcats/XEditNet
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(NewFileCtrl));
     this.wizard1          = new Gui.Wizard.Wizard();
     this.pageWizardSelect = new Gui.Wizard.WizardPage();
     this.treeView1        = new System.Windows.Forms.TreeView();
     this.label1           = new System.Windows.Forms.Label();
     this.header1          = new Gui.Wizard.Header();
     this.wizard1.SuspendLayout();
     this.pageWizardSelect.SuspendLayout();
     this.SuspendLayout();
     //
     // wizard1
     //
     this.wizard1.CloneOnFinish = true;
     this.wizard1.Controls.Add(this.pageWizardSelect);
     this.wizard1.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.wizard1.Font     = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
     this.wizard1.Location = new System.Drawing.Point(0, 0);
     this.wizard1.Name     = "wizard1";
     this.wizard1.Pages.AddRange(new Gui.Wizard.WizardPage[] {
         this.pageWizardSelect
     });
     this.wizard1.Size            = new System.Drawing.Size(488, 475);
     this.wizard1.TabIndex        = 0;
     this.wizard1.FinishSelected += new System.EventHandler(this.WizardFinishSelected);
     //
     // pageWizardSelect
     //
     this.pageWizardSelect.Controls.Add(this.treeView1);
     this.pageWizardSelect.Controls.Add(this.label1);
     this.pageWizardSelect.Controls.Add(this.header1);
     this.pageWizardSelect.Dock           = System.Windows.Forms.DockStyle.Fill;
     this.pageWizardSelect.IsFinishPage   = false;
     this.pageWizardSelect.Location       = new System.Drawing.Point(0, 0);
     this.pageWizardSelect.Name           = "pageWizardSelect";
     this.pageWizardSelect.Size           = new System.Drawing.Size(488, 427);
     this.pageWizardSelect.TabIndex       = 1;
     this.pageWizardSelect.ShowFromBack  += new System.EventHandler(this.FirstPageRedisplayed);
     this.pageWizardSelect.CloseFromNext += new Gui.Wizard.PageEventHandler(this.ProfileSelected);
     //
     // treeView1
     //
     this.treeView1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                    | System.Windows.Forms.AnchorStyles.Left)
                                                                   | System.Windows.Forms.AnchorStyles.Right)));
     this.treeView1.HideSelection      = false;
     this.treeView1.ImageIndex         = -1;
     this.treeView1.Location           = new System.Drawing.Point(8, 96);
     this.treeView1.Name               = "treeView1";
     this.treeView1.Scrollable         = false;
     this.treeView1.SelectedImageIndex = -1;
     this.treeView1.Size               = new System.Drawing.Size(472, 320);
     this.treeView1.TabIndex           = 2;
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(8, 72);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(100, 16);
     this.label1.TabIndex = 1;
     this.label1.Text     = "&Wizards:";
     //
     // header1
     //
     this.header1.BackColor        = System.Drawing.SystemColors.Control;
     this.header1.CausesValidation = false;
     this.header1.Description      = "The list below shows the types of document currently registered with XEditNet";
     this.header1.Dock             = System.Windows.Forms.DockStyle.Top;
     this.header1.Image            = ((System.Drawing.Image)(resources.GetObject("header1.Image")));
     this.header1.Location         = new System.Drawing.Point(0, 0);
     this.header1.Name             = "header1";
     this.header1.Size             = new System.Drawing.Size(488, 64);
     this.header1.TabIndex         = 0;
     this.header1.Title            = "Select a Wizard";
     //
     // NewFileCtrl
     //
     this.Controls.Add(this.wizard1);
     this.Name = "NewFileCtrl";
     this.Size = new System.Drawing.Size(488, 475);
     this.wizard1.ResumeLayout(false);
     this.pageWizardSelect.ResumeLayout(false);
     this.ResumeLayout(false);
 }