當前位置: 首頁>>代碼示例>>C#>>正文


C# WebControls.Wizard類代碼示例

本文整理匯總了C#中System.Web.UI.WebControls.Wizard的典型用法代碼示例。如果您正苦於以下問題:C# Wizard類的具體用法?C# Wizard怎麽用?C# Wizard使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


Wizard類屬於System.Web.UI.WebControls命名空間,在下文中一共展示了Wizard類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: WizardStepCollection_DefaultProperty

		public void WizardStepCollection_DefaultProperty ()
		{
			Wizard w = new Wizard();
			Assert.AreEqual (typeof (WizardStepCollection), w.WizardSteps.GetType (), "WizardStepCollection");
			Assert.AreEqual (0,w.WizardSteps.Count, "Count");
			Assert.AreEqual (false, w.WizardSteps.IsReadOnly, "IsReadOnly");
			Assert.AreEqual (false, w.WizardSteps.IsSynchronized, "IsSynchronized");
			Assert.AreEqual (w.WizardSteps, w.WizardSteps.SyncRoot, "SyncRoot");
		}
開發者ID:Profit0004,項目名稱:mono,代碼行數:9,代碼來源:WizardStepCollectionTest.cs

示例2: WizardStepCollection_Add

		public void WizardStepCollection_Add ()
		{
			Wizard w = new Wizard ();
			WizardStep step1 = new WizardStep ();
			try {
				w.WizardSteps.Add (step1);
			}
			catch (Exception e) {
				Assert.Fail (e.Message);
			}
			Assert.AreEqual (1, w.WizardSteps.Count, "Add step fail");
		}
開發者ID:Profit0004,項目名稱:mono,代碼行數:12,代碼來源:WizardStepCollectionTest.cs

示例3: WizardStepCollection_AddAt

		public void WizardStepCollection_AddAt ()
		{
			Wizard w = new Wizard ();
			WizardStep step1 = new WizardStep ();
			WizardStep step2 = new WizardStep ();

			try {
				w.WizardSteps.Add (step1);
				w.WizardSteps.AddAt (0, step2);
			}
			catch (Exception e) {
				Assert.Fail (e.Message);
			}
			Assert.AreEqual (2, w.WizardSteps.Count, "Step count fail");
			Assert.AreEqual (step2, w.WizardSteps[0], "Step index fail");
		}
開發者ID:Profit0004,項目名稱:mono,代碼行數:16,代碼來源:WizardStepCollectionTest.cs

示例4: WizardStepCollection_RemoveAt

		public void WizardStepCollection_RemoveAt ()
		{
			Wizard w = new Wizard ();
			WizardStep step1 = new WizardStep ();
			WizardStep step2 = new WizardStep ();

			try {
				w.WizardSteps.Add (step1);
				w.WizardSteps.Add (step2);
			}
			catch (Exception e) {
				Assert.Fail (e.Message);
			}
			Assert.AreEqual (2, w.WizardSteps.Count, "Step count before removeat fail");
			try {
				w.WizardSteps.RemoveAt (0);
				
			}
			catch (Exception e) {
				Assert.Fail (e.Message);
			}
			Assert.AreEqual (1, w.WizardSteps.Count, "Step count after removeat fail");
			Assert.AreEqual (step2, w.WizardSteps[0], "Item value after remove");
		}
開發者ID:Profit0004,項目名稱:mono,代碼行數:24,代碼來源:WizardStepCollectionTest.cs

示例5: FinishNavigationTemplateContainer

 internal FinishNavigationTemplateContainer(Wizard owner)
     : base(owner) {
 }
開發者ID:uQr,項目名稱:referencesource,代碼行數:3,代碼來源:Wizard.cs

示例6: WizardStepCollection

		internal WizardStepCollection (Wizard wizard)
		{
			this.wizard = wizard;
		}
開發者ID:Profit0004,項目名稱:mono,代碼行數:4,代碼來源:WizardStepCollection.cs

示例7: NavigationTemplate

            private NavigationTemplate(Wizard wizard, WizardTemplateType templateType, bool button1CausesValidation,
                String label1ID, String label2ID, String label3ID) {

                _wizard = wizard;
                _button1ID = label1ID;
                _button2ID = label2ID;
                _button3ID = label3ID;

                _templateType = templateType;

                _buttons = new IButtonControl[3][];
                _buttons[0] = new IButtonControl[3];
                _buttons[1] = new IButtonControl[3];
                _buttons[2] = new IButtonControl[3];

                _button1CausesValidation = button1CausesValidation;
            }
開發者ID:uQr,項目名稱:referencesource,代碼行數:17,代碼來源:Wizard.cs

示例8: _renderingWizard

		public static void _renderingWizard (Page p)
		{
			Wizard w = new Wizard ();
			w.ID = "Wizard";

			WizardStep ws = new WizardStep ();
			ws.ID = "step";
			ws.StepType = WizardStepType.Start;
			ws.Controls.Add (new LiteralControl ("Start"));

			WizardStep ws1 = new WizardStep ();
			ws1.ID = "step1";
			ws1.StepType = WizardStepType.Step;
			ws1.Controls.Add (new LiteralControl ("Step"));

			WizardStep ws2 = new WizardStep ();
			ws2.ID = "step2";
			ws2.StepType = WizardStepType.Auto;
			ws2.Controls.Add (new LiteralControl ("Auto"));

			WizardStep ws3 = new WizardStep ();
			ws3.ID = "step3";
			ws3.StepType = WizardStepType.Finish;
			ws3.Controls.Add (new LiteralControl ("FinishText"));

			WizardStep ws4 = new WizardStep ();
			ws4.ID = "step4";
			ws4.StepType = WizardStepType.Complete;
			ws4.Controls.Add (new LiteralControl ("Complete"));

			w.DisplaySideBar = false;
			w.WizardSteps.Add (ws);
			w.WizardSteps.Add (ws1);
			w.WizardSteps.Add (ws2);
			w.WizardSteps.Add (ws3);
			w.WizardSteps.Add (ws4);
			w.ActiveStepIndex = (int) WebTest.CurrentTest.UserData;

			p.Controls.Add (w);
		}
開發者ID:JokerMisfits,項目名稱:linux-packaging-mono,代碼行數:40,代碼來源:WizardTest.cs

示例9: _postback

		public static void _postback (Page p)
		{
			p.EnableEventValidation = false;
			Wizard w = new Wizard ();
			w.ID = "Wizard";
			
			WizardStep ws = new WizardStep ();
			ws.ID = "step";
			ws.StepType = WizardStepType.Start;
			ws.Controls.Add (new LiteralControl ("StartType"));

			WizardStep ws1 = new WizardStep ();
			ws1.ID = "step1";
			ws1.StepType = WizardStepType.Step;
			ws1.Controls.Add (new LiteralControl ("StepType"));

			WizardStep ws2 = new WizardStep ();
			ws2.ID = "step2";
			ws2.StepType = WizardStepType.Auto;
			ws2.Controls.Add (new LiteralControl ("AutoType"));

			WizardStep ws3 = new WizardStep ();
			ws3.ID = "step3";
			ws3.StepType = WizardStepType.Finish;
			ws3.Controls.Add (new LiteralControl ("FinishType"));

			WizardStep ws4 = new WizardStep ();
			ws4.ID = "step4";
			ws4.StepType = WizardStepType.Complete;
			ws4.Controls.Add (new LiteralControl ("CompleteType"));

			w.DisplaySideBar = true;
			w.WizardSteps.Add (ws);
			w.WizardSteps.Add (ws1);
			w.WizardSteps.Add (ws2);
			w.WizardSteps.Add (ws3);
			w.WizardSteps.Add (ws4);

			p.Controls.Add (w);
		}
開發者ID:JokerMisfits,項目名稱:linux-packaging-mono,代碼行數:40,代碼來源:WizardTest.cs

示例10: WizardPreInit

		public static void WizardPreInit (Page p)
		{
			LiteralControl lcb = new LiteralControl (HtmlDiff.BEGIN_TAG);
			LiteralControl lce = new LiteralControl (HtmlDiff.END_TAG);

			Wizard w = new Wizard ();
			WizardStep ws = new WizardStep ();
			ws.Controls.Add (new LiteralControl ("123"));
			try {
				w.SkipLinkText = "";
			}
			catch (Exception) { }
			w.DisplaySideBar = false;
			w.WizardSteps.Add (ws);
			p.Controls.Add (lcb);
			p.Controls.Add (w);
			p.Controls.Add (lce);
		}
開發者ID:JokerMisfits,項目名稱:linux-packaging-mono,代碼行數:18,代碼來源:WizardTest.cs

示例11: LayoutTemplateRender

		public static void LayoutTemplateRender (Page p)
		{
			var w = new Wizard ();
			w.ID = "MyWizard";
			WebTest curTest = WebTest.CurrentTest;
			string id = (string)curTest.UserData;

			switch (id) {
				case "Empty":
					w.LayoutTemplate = new TestLayoutTemplate ();
					break;

				case "OptionalSideBar_NoSideBar":
					w.LayoutTemplate = new TestLayoutTemplate {
						HasHeaderPlaceHolder = true,
						HasNavigationPlaceHolder = true,
						HasWizardStepPlaceHolder = true
					};
					w.DisplaySideBar = false;
					break;

				case "OptionalSideBar_WithSideBar":
					w.LayoutTemplate = new TestLayoutTemplate {
						HasHeaderPlaceHolder = true,
						HasNavigationPlaceHolder = true,
						HasWizardStepPlaceHolder = true
					};
					w.DisplaySideBar = true;
					break;

				case "RenderSideBar":
					w.LayoutTemplate = new TestLayoutTemplate {
						HasHeaderPlaceHolder = true,
						HasNavigationPlaceHolder = true,
						HasWizardStepPlaceHolder = true,
						HasSideBarPlaceHolder = true
					};
					AddWizardStep (w, "Step", "step1");
					break;

				case "OptionalHeader_NoHeaderTemplate":
					w.LayoutTemplate = new TestLayoutTemplate {
						HasNavigationPlaceHolder = true,
						HasWizardStepPlaceHolder = true
					};
					w.DisplaySideBar = false;
					break;

				case "OptionalHeader_WithHeaderTemplate":
					w.LayoutTemplate = new TestLayoutTemplate {
						HasNavigationPlaceHolder = true,
						HasWizardStepPlaceHolder = true
					};
					w.HeaderTemplate = new TestHeaderTemplate ();
					w.DisplaySideBar = false;
					break;

				case "RenderHeader":
					w.LayoutTemplate = new TestLayoutTemplate {
						HasNavigationPlaceHolder = true,
						HasWizardStepPlaceHolder = true,
						HasHeaderPlaceHolder = true
					};
					w.HeaderTemplate = new TestHeaderTemplate ();
					w.DisplaySideBar = false;
					AddWizardStep (w, "Step", "step1");
					break;

				case "RenderHeader_InSpan":
					w.LayoutTemplate = new TestLayoutTemplate {
						HasNavigationPlaceHolder = true,
						HasWizardStepPlaceHolder = true,
						HasHeaderPlaceHolder = true,
						HeaderPlaceHolderType = typeof (TestHeaderSpan)
					};
					w.HeaderTemplate = new TestHeaderTemplate ();
					w.DisplaySideBar = false;
					AddWizardStep (w, "Step", "step1");
					break;

				case "StepPlaceHolder":
					w.LayoutTemplate = new TestLayoutTemplate {
						HasNavigationPlaceHolder = true,
					};
					w.DisplaySideBar = false;
					break;

				case "NavigationPlaceHolder":
					w.LayoutTemplate = new TestLayoutTemplate {
						HasWizardStepPlaceHolder = true,
					};
					w.DisplaySideBar = false;
					break;

				default:
					throw new InvalidOperationException ("Unknown id '" + id + "'");
			}

			p.Form.Controls.Add (new LiteralControl (HtmlDiff.BEGIN_TAG));
			p.Form.Controls.Add (w);
//.........這裏部分代碼省略.........
開發者ID:JokerMisfits,項目名稱:linux-packaging-mono,代碼行數:101,代碼來源:WizardTest.cs

示例12: BaseNavigationTemplateContainer

 internal BaseNavigationTemplateContainer(Wizard owner) {
     _owner = owner;
 }
開發者ID:uQr,項目名稱:referencesource,代碼行數:3,代碼來源:Wizard.cs

示例13: DataListItemTemplate

 internal DataListItemTemplate(Wizard owner) {
     _owner = owner;
 }
開發者ID:uQr,項目名稱:referencesource,代碼行數:3,代碼來源:Wizard.cs

示例14: BaseContentTemplateContainer

 internal BaseContentTemplateContainer(Wizard owner,  bool useInnerTable)
     : base(owner) {
     _useInnerTable = useInnerTable;
     if (useInnerTable) {
         // Set the table width to 100% so the table within each
         // row will have the same width. VSWhidbey 377182
         Table.Width = Unit.Percentage(100);
         Table.Height = Unit.Percentage(100);
     }
     else {
         // remove nested table from Control tree
         Controls.Clear();
     }
 }
開發者ID:uQr,項目名稱:referencesource,代碼行數:14,代碼來源:Wizard.cs

示例15: AccessibleTableCell

 internal AccessibleTableCell(Wizard owner)
     : base(owner) {
 }
開發者ID:uQr,項目名稱:referencesource,代碼行數:3,代碼來源:Wizard.cs


注:本文中的System.Web.UI.WebControls.Wizard類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。