本文整理汇总了C#中System.Web.UI.WebControls.Wizard类的典型用法代码示例。如果您正苦于以下问题:C# Wizard类的具体用法?C# Wizard怎么用?C# Wizard使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Wizard类属于System.Web.UI.WebControls命名空间,在下文中一共展示了Wizard类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: InternalTableCell
internal InternalTableCell(Wizard owner) {
_owner = owner;
}
开发者ID:uQr,项目名称:referencesource,代码行数:3,代码来源:Wizard.cs
示例17: BlockControl
internal BlockControl(Wizard owner) {
Debug.Assert(owner != null);
_owner = owner;
_table = new WizardDefaultInnerTable();
_table.EnableTheming = false;
Controls.Add(_table);
TableRow row = new TableRow();
_table.Controls.Add(row);
_cell = new TableCell();
_cell.Height = Unit.Percentage(100);
_cell.Width = Unit.Percentage(100);
row.Controls.Add(_cell);
HandleMacIECellHeight();
PreventAutoID();
}
开发者ID:uQr,项目名称:referencesource,代码行数:20,代码来源:Wizard.cs
示例18: DefaultSideBarTemplate
internal DefaultSideBarTemplate(Wizard owner) {
_owner = owner;
}
开发者ID:uQr,项目名称:referencesource,代码行数:3,代码来源:Wizard.cs
示例19: StepNavigationTemplateContainer
internal StepNavigationTemplateContainer(Wizard owner)
: base(owner) {
}
开发者ID:uQr,项目名称:referencesource,代码行数:3,代码来源:Wizard.cs
示例20: WizardStepCollection
internal WizardStepCollection(Wizard wizard) {
this._wizard = wizard;
wizard.TemplatedSteps.Clear();
}
开发者ID:uQr,项目名称:referencesource,代码行数:4,代码来源:Wizard.cs
注:本文中的System.Web.UI.WebControls.Wizard类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论