Inheritance: System.Windows.Forms.UserControl
コード例 #1
0
ファイル: PageCollection.cs プロジェクト: zhuangyy/Motion
 /// <summary>
 /// Constructor requires the  wizard that owns this collection
 /// </summary>
 /// <param name="parent">Wizard</param>
 public PageCollection(Wizard parent)
     : base()
 {
     vParent = parent;
 }
コード例 #2
0
ファイル: PageCollection.cs プロジェクト: unixcrh/Motion
 /// <summary>
 /// Constructor requires the  wizard that owns this collection
 /// </summary>
 /// <param name="parent">Wizard</param>
 public PageCollection(Wizard parent) : base()
 {
     vParent = parent;
 }
コード例 #3
0
ファイル: WizardPage.cs プロジェクト: zhuangyy/Motion
 /// <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
ファイル: WizardPage.cs プロジェクト: zhuangyy/Motion
 /// <summary>
 /// Fires the CloseFromBack Event
 /// </summary>
 /// <param name="wiz">Wizard to pass into the sender argument</param>
 /// <returns>Index of Page that the event handlers would like to see next</returns>
 public int OnCloseFromBack(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 (CloseFromBack != null)
         CloseFromBack(wiz, e);
     //And then tell whomever called me what the prefered page is
     return e.PageIndex;
 }
コード例 #5
0
ファイル: WizardPage.cs プロジェクト: zhuangyy/Motion
 /// <summary>
 /// Fires the showFromBack event
 /// </summary>
 /// <param name="wiz">sender</param>
 public void OnShowFromBack(Wizard wiz)
 {
     if (ShowFromBack != null)
         ShowFromBack(wiz, EventArgs.Empty);
 }