本文整理汇总了C#中System.Web.UI.WebControls.WizardStep类的典型用法代码示例。如果您正苦于以下问题:C# WizardStep类的具体用法?C# WizardStep怎么用?C# WizardStep使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
WizardStep类属于System.Web.UI.WebControls命名空间,在下文中一共展示了WizardStep类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: 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
示例2: 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
示例3: CreateWizardSteps
protected override void CreateWizardSteps() {
// The WizardSteps should be empty when this is called
Debug.Assert(WizardSteps.Count == 0);
WizardStep s = new WizardStep();
_fieldName = new DropDownList();
_fieldName.ID = fieldNameID;
if (OldProviderNames != null) {
for (int i=0; i < OldProviderNames.Length / 2; i++) {
ListItem item = new ListItem(OldProviderNames[2*i], OldProviderNames[2*i + 1]);
// Ignore case when setting selected value, since we ignore case when
// returing the connection data. (VSWhidbey 434566)
if (String.Equals(item.Value, _owner.FieldName, StringComparison.OrdinalIgnoreCase)) {
item.Selected = true;
}
_fieldName.Items.Add(item);
}
}
else {
_fieldName.Items.Add(new ListItem(SR.GetString(SR.RowToFieldTransformer_NoProviderSchema)));
_fieldName.Enabled = false;
}
Label fieldNameLabel = new Label();
fieldNameLabel.Text = SR.GetString(SR.RowToFieldTransformer_FieldName);
fieldNameLabel.AssociatedControlID = _fieldName.ID;
s.Controls.Add(fieldNameLabel);
s.Controls.Add(new LiteralControl(" "));
s.Controls.Add(_fieldName);
WizardSteps.Add(s);
}
开发者ID:iskiselev,项目名称:JSIL.NetFramework,代码行数:34,代码来源:RowToFieldTransformer.cs
示例4: _StepTypeRendering
public static void _StepTypeRendering (Page p)
{
LiteralControl lcb = new LiteralControl (HtmlDiff.BEGIN_TAG);
LiteralControl lce = new LiteralControl (HtmlDiff.END_TAG);
PokerWizard w = new PokerWizard ();
WizardStep ws1 = new WizardStep ();
WizardStep ws2 = new WizardStep ();
WizardStep ws3 = new WizardStep ();
ws1.ID = "step1";
ws1.StepType = WizardStepType.Start;
ws1.Controls.Add (new LiteralControl ("Step1"));
ws2.ID = "step2";
ws2.StepType = WizardStepType.Step;
ws2.Controls.Add (new LiteralControl ("Step2"));
ws3.ID = "step3";
ws3.StepType = WizardStepType.Finish;
ws3.Controls.Add (new LiteralControl ("Step3"));
w.StepNextButtonImageUrl = "http://StepNextButtonImageUrl";
w.StepNextButtonStyle.BackColor = Color.Red;
w.StepNextButtonText = "StepNextButtonText";
w.StepNextButtonType = ButtonType.Image;
w.StepPreviousButtonImageUrl = "http://StepPreviousButtonImageUrl";
w.StepPreviousButtonStyle.BackColor = Color.Red;
w.StepPreviousButtonText = "StepPreviousButtonText";
w.StepPreviousButtonType = ButtonType.Link;
w.StepStyle.BackColor = Color.Red;
w.WizardSteps.Add (ws1);
w.WizardSteps.Add (ws2);
w.WizardSteps.Add (ws3);
w.MoveTo (ws2);
p.Controls.Add (lcb);
p.Controls.Add (w);
p.Controls.Add (lce);
}
开发者ID:JokerMisfits,项目名称:linux-packaging-mono,代码行数:40,代码来源:WizardTest.cs
示例5: _NavigationRendering
public static void _NavigationRendering (Page p)
{
LiteralControl lcb = new LiteralControl (HtmlDiff.BEGIN_TAG);
LiteralControl lce = new LiteralControl (HtmlDiff.END_TAG);
PokerWizard w = new PokerWizard ();
WizardStep ws1 = new WizardStep ();
WizardStep ws2 = new WizardStep ();
ws1.ID = "step1";
ws1.StepType = WizardStepType.Start;
ws1.Controls.Add (new LiteralControl ("Start"));
ws2.ID = "step2";
ws2.StepType = WizardStepType.Start;
ws2.Controls.Add (new LiteralControl ("Finish"));
w.NavigationButtonStyle.BackColor = Color.Red;
w.NavigationStyle.BackColor = Color.Yellow;
w.WizardSteps.Add (ws1);
w.WizardSteps.Add (ws2);
p.Controls.Add (lcb);
p.Controls.Add (w);
p.Controls.Add (lce);
}
开发者ID:JokerMisfits,项目名称:linux-packaging-mono,代码行数:25,代码来源:WizardTest.cs
示例6: _HeaderRendering
public static void _HeaderRendering (Page p)
{
LiteralControl lcb = new LiteralControl (HtmlDiff.BEGIN_TAG);
LiteralControl lce = new LiteralControl (HtmlDiff.END_TAG);
PokerWizard w = new PokerWizard ();
w.HeaderStyle.BackColor = Color.Red;
w.HeaderTemplate = new CompiledTemplateBuilder (_BuildHeader);
w.HeaderText = "test";
WizardStep ws0 = new WizardStep ();
ws0.ID = "step0";
ws0.StepType = WizardStepType.Start;
ws0.Controls.Add (new LiteralControl ("Start"));
WizardStep ws1 = new WizardStep ();
ws1.ID = "step1";
ws1.StepType = WizardStepType.Finish;
ws1.Controls.Add (new LiteralControl ("Finish"));
w.DisplaySideBar = false;
w.WizardSteps.Add (ws0);
w.WizardSteps.Add (ws1);
w.MoveTo (ws1);
p.Controls.Add (lcb);
p.Controls.Add (w);
p.Controls.Add (lce);
}
开发者ID:JokerMisfits,项目名称:linux-packaging-mono,代码行数:27,代码来源:WizardTest.cs
示例7: _CancelButtonPropertyRendering
public static void _CancelButtonPropertyRendering (Page p)
{
LiteralControl lcb = new LiteralControl (HtmlDiff.BEGIN_TAG);
LiteralControl lce = new LiteralControl (HtmlDiff.END_TAG);
PokerWizard w = new PokerWizard ();
w.CancelButtonStyle.BorderColor = Color.Red;
w.CancelButtonImageUrl = "CancelButtonImageUrl";
w.CancelDestinationPageUrl = "CancelDestinationPageUrl";
w.CancelButtonText = "CancelButtonText";
w.CancelButtonType = ButtonType.Button;
w.DisplayCancelButton = true;
WizardStep ws1 = new WizardStep ();
ws1.ID = "step1";
ws1.StepType = WizardStepType.Start;
ws1.Controls.Add (new LiteralControl ("Start"));
WizardStep ws2 = new WizardStep ();
ws2.ID = "step2";
ws2.StepType = WizardStepType.Finish;
ws2.Controls.Add (new LiteralControl ("Finish"));
w.DisplaySideBar = false;
w.WizardSteps.Add (ws1);
w.WizardSteps.Add (ws2);
p.Controls.Add(lcb);
p.Controls.Add (w);
p.Controls.Add (lce);
}
开发者ID:JokerMisfits,项目名称:linux-packaging-mono,代码行数:29,代码来源:WizardTest.cs
示例8: _postbackEvents
public static void _postbackEvents (Page p)
{
p.EnableEventValidation = false;
Wizard w = new Wizard ();
w.DisplayCancelButton = true;
w.DisplaySideBar = true;
w.CancelButtonClick += new EventHandler (w_CancelButtonClick);
w.FinishButtonClick += new WizardNavigationEventHandler (w_FinishButtonClick);
w.NextButtonClick += new WizardNavigationEventHandler (w_NextButtonClick);
w.PreviousButtonClick += new WizardNavigationEventHandler (w_PreviousButtonClick);
w.SideBarButtonClick += new WizardNavigationEventHandler (w_SideBarButtonClick);
w.ID = "Wizard1";
WizardStep ws = new WizardStep ();
ws.ID = "step";
ws.StepType = WizardStepType.Start;
ws.Controls.Add (new LiteralControl ("StartType"));
WizardStep ws2 = new WizardStep ();
ws2.ID = "step2";
ws2.StepType = WizardStepType.Finish;
ws2.Controls.Add (new LiteralControl ("FinishType"));
WizardStep ws3 = new WizardStep ();
ws3.ID = "step3";
ws3.StepType = WizardStepType.Complete;
ws3.Controls.Add (new LiteralControl ("CompleteType"));
w.DisplaySideBar = true;
w.WizardSteps.Add (ws);
w.WizardSteps.Add (ws2);
w.WizardSteps.Add (ws3);
p.Controls.Add (w);
}
开发者ID:JokerMisfits,项目名称:linux-packaging-mono,代码行数:35,代码来源:WizardTest.cs
示例9: AddWizardStep
static void AddWizardStep (Wizard w, string stepText, string stepID, WizardStepType type = WizardStepType.Step)
{
var ws = new WizardStep ();
ws.ID = stepID;
ws.StepType = type;
ws.Controls.Add (new LiteralControl (stepText));
w.WizardSteps.Add (ws);
}
开发者ID:JokerMisfits,项目名称:linux-packaging-mono,代码行数:9,代码来源:WizardTest.cs
示例10: WizardStepCollection_Remove
public void WizardStepCollection_Remove ()
{
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 remove fail");
try {
w.WizardSteps.Remove (step1);
w.WizardSteps.Remove (step2);
}
catch (Exception e) {
Assert.Fail (e.Message);
}
Assert.AreEqual (0, w.WizardSteps.Count, "Step count after remove fail");
}
开发者ID:Profit0004,项目名称:mono,代码行数:23,代码来源:WizardStepCollectionTest.cs
示例11: 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
示例12: WizardStepCollection_GetEnumerator
public void WizardStepCollection_GetEnumerator ()
{
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 fail");
IEnumerator numerator = w.WizardSteps.GetEnumerator ();
numerator.Reset();
numerator.MoveNext ();
Assert.AreEqual (step1, numerator.Current, "Enumerator item value#1");
numerator.MoveNext ();
Assert.AreEqual (step2, numerator.Current, "Enumerator item value#2");
}
开发者ID:Profit0004,项目名称:mono,代码行数:22,代码来源:WizardStepCollectionTest.cs
示例13: WizardStepCollection_CopyTo
public void WizardStepCollection_CopyTo ()
{
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 fail");
WizardStep[] steps = new WizardStep [w.WizardSteps.Count] ;
w.WizardSteps.CopyTo (steps, 0);
Assert.AreEqual (2, steps.GetLength (0), "Copyto elements count");
Assert.AreEqual (step1, steps[0], "Copyto elements equal#1");
Assert.AreEqual (step2, steps[1], "Copyto elements equal#2");
}
开发者ID:Profit0004,项目名称:mono,代码行数:21,代码来源:WizardStepCollectionTest.cs
示例14: WizardStepCollection_Contains
public void WizardStepCollection_Contains ()
{
Wizard w = new Wizard ();
WizardStep step1 = new WizardStep ();
WizardStep step2 = new WizardStep ();
try {
w.WizardSteps.Add (step1);
}
catch (Exception e) {
Assert.Fail (e.Message);
}
Assert.AreEqual (1, w.WizardSteps.Count, "Step count fail");
Assert.AreEqual (true, w.WizardSteps.Contains (step1), "Step contains fail#1");
Assert.AreEqual (false, w.WizardSteps.Contains (step2), "Step contains fail#2");
}
开发者ID:Profit0004,项目名称:mono,代码行数:16,代码来源:WizardStepCollectionTest.cs
示例15: Wizard_BubbleEvent_MoveTo
public void Wizard_BubbleEvent_MoveTo ()
{
PokerWizard wizard = new PokerWizard ();
WizardStep step1 = new WizardStep ();
step1.ID = "step1";
step1.StepType = WizardStepType.Start;
WizardStep step2 = new WizardStep ();
step2.ID = "step2";
step2.StepType = WizardStepType.Finish;
wizard.WizardSteps.Add (step1);
wizard.WizardSteps.Add (step2);
wizard.ActiveStepIndex = 0;
CommandEventArgs e = new CommandEventArgs (Wizard.MoveToCommandName, "1");
bool result = wizard.DoBubbleEvent (null, e);
Assert.AreEqual (true, result, "MoveToEventCommand");
Assert.AreEqual (1, wizard.ActiveStepIndex, "ActiveStepIndexAfterMoveToBubble");
}
开发者ID:JokerMisfits,项目名称:linux-packaging-mono,代码行数:17,代码来源:WizardTest.cs
示例16: Wizard_GetHistory
public void Wizard_GetHistory ()
{
PokerWizard wizard = new PokerWizard ();
WizardStep step1 = new WizardStep ();
step1.ID = "step1";
step1.StepType = WizardStepType.Start;
WizardStep step2 = new WizardStep ();
step2.ID = "step2";
step2.StepType = WizardStepType.Step;
WizardStep step3 = new WizardStep ();
step3.ID = "step3";
step3.StepType = WizardStepType.Finish;
wizard.WizardSteps.Add (step1);
wizard.WizardSteps.Add (step2);
wizard.WizardSteps.Add (step3);
wizard.ActiveStepIndex = 0;
wizard.MoveTo (step3);
object o = wizard.PokerSaveControlState ();
wizard.PokerLoadControlState (o);
wizard.MoveTo (step2);
o = wizard.PokerSaveControlState ();
wizard.PokerLoadControlState (o);
wizard.MoveTo (step3);
o = wizard.PokerSaveControlState ();
wizard.PokerLoadControlState (o);
ArrayList collection = (ArrayList) wizard.GetHistory ();
Assert.AreEqual (3, collection.Count, "GetHistoryCount");
}
开发者ID:JokerMisfits,项目名称:linux-packaging-mono,代码行数:28,代码来源:WizardTest.cs
示例17: 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
示例18: Wizard_GetStepType
public void Wizard_GetStepType ()
{
PokerWizard wizard = new PokerWizard ();
WizardStep step1 = new WizardStep ();
step1.ID = "step1";
step1.StepType = WizardStepType.Start;
wizard.WizardSteps.Add (step1);
wizard.ActiveStepIndex = 0;
WizardStepType result = wizard.GetStepType (wizard.ActiveStep, wizard.ActiveStepIndex);
Assert.AreEqual (WizardStepType.Start, result, "GetStepType");
}
开发者ID:JokerMisfits,项目名称:linux-packaging-mono,代码行数:11,代码来源:WizardTest.cs
示例19: _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
示例20: Wizard_MoveTo
public void Wizard_MoveTo ()
{
PokerWizard wizard = new PokerWizard ();
WizardStep step1 = new WizardStep ();
step1.ID = "step1";
step1.StepType = WizardStepType.Start;
WizardStep step2 = new WizardStep ();
step2.ID = "step2";
step2.StepType = WizardStepType.Step;
WizardStep step3 = new WizardStep ();
step3.ID = "step3";
step3.StepType = WizardStepType.Finish;
wizard.WizardSteps.Add (step1);
wizard.WizardSteps.Add (step2);
wizard.WizardSteps.Add (step3);
wizard.ActiveStepIndex = 0;
wizard.MoveTo (step3);
Assert.AreEqual (2, wizard.ActiveStepIndex, "MoveToStep3");
wizard.MoveTo (step2);
Assert.AreEqual (1, wizard.ActiveStepIndex, "MoveToStep2");
wizard.MoveTo (step1);
Assert.AreEqual (0, wizard.ActiveStepIndex, "MoveToStep1");
}
开发者ID:JokerMisfits,项目名称:linux-packaging-mono,代码行数:23,代码来源:WizardTest.cs
注:本文中的System.Web.UI.WebControls.WizardStep类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论