本文整理汇总了C#中IExpressionViewModel类的典型用法代码示例。如果您正苦于以下问题:C# IExpressionViewModel类的具体用法?C# IExpressionViewModel怎么用?C# IExpressionViewModel使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IExpressionViewModel类属于命名空间,在下文中一共展示了IExpressionViewModel类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ConditionCategoryIs
public ConditionCategoryIs(IExpressionViewModel expressionViewModel)
: base(EntryLabel, expressionViewModel)
{
_itemsInCategoryEl = WithElement(new ItemsInCategory(expressionViewModel)) as ItemsInCategory;
WithAvailableExcluding(() => new ItemsInCategory(expressionViewModel));
WithAvailableExcluding(() => new ItemsInEntry(expressionViewModel));
}
示例2: ContentPublishingExpressionBlock
public ContentPublishingExpressionBlock(IExpressionViewModel publishingViewModel)
: base(null, publishingViewModel)
{
this.ConditionBlock = new ConditionAndOrBlock("if".Localize(), publishingViewModel, "of these conditions are true".Localize());
InitializeAvailableExpressions();
}
示例3: ConditionGeoTimeZone
public ConditionGeoTimeZone(IExpressionViewModel expressionViewModel)
: base("Are browsing from a time zone -/+ offset from UTC []".Localize(), expressionViewModel)
{
WithLabel("Are browsing from a time zone -/+ offset from UTC ".Localize());
CompareConditions = WithElement(new CompareConditions(true)) as CompareConditions;
_valEl = WithCustomDict(GetTimeZonesArray(), new string[] { "select time zone".Localize() }) as UserInputElement;
}
示例4: ConditionGeoConnectionType
public ConditionGeoConnectionType(IExpressionViewModel expressionViewModel)
: base("Are browsing from an internet connection type []".Localize(), expressionViewModel)
{
WithLabel("Are browsing from an internet connection type ".Localize());
_matchEl = WithElement(new MatchingContains(false, false)) as MatchingContains;
_valEl = WithDict(new string[] { "Ocx", "Tx", "Consumer satellite", "Frame relay", "Dsl" }, "select connection type".Localize()) as UserInputElement;
}
示例5: ConditionCategoryIs
public ConditionCategoryIs(IExpressionViewModel expressionViewModel)
: base("Category is []", expressionViewModel)
{
WithLabel("Category is ");
_itemsInCategoryEl = WithElement(new CategorySelectElement(expressionViewModel)) as CategorySelectElement;
WithAvailableExcluding(() => new CategorySelectElement("Category", expressionViewModel));
}
示例6: ConditionGeoState
public ConditionGeoState(IExpressionViewModel expressionViewModel)
: base("Are browsing from state/province []", expressionViewModel)
{
WithLabel("Browsing from state/province ");
_matchEl = WithElement(new MatchingContains(false, false)) as MatchingContains;
_stateEl = WithCustomDict(GetStatesList(expressionViewModel), new string[] { "select state" }) as UserInputElement;
}
示例7: ActionCatalogItemGiftNumItemOfSku
public ActionCatalogItemGiftNumItemOfSku(IExpressionViewModel expressionViewModel)
: base("Gift [] of Sku []", expressionViewModel)
{
WithLabel("Gift");
_quantityEl = WithUserInput(1, 0) as UserInputElement;
_itemsInSKUEl = WithElement(new ItemsInSku(expressionViewModel)) as ItemsInSku;
}
示例8: ConditionGeoContinent
public ConditionGeoContinent(IExpressionViewModel expressionViewModel)
: base("Are browsing from continent []", expressionViewModel)
{
WithLabel("Are browsing from continent ");
_matchEl = WithElement(new MatchingContains(false, false)) as MatchingContains;
_valEl = WithDict(new string[] { "Africa", "Antarctica", "Asia", "Australia", "Europe", "North America", "Oceania (Melanesia, Polinesia, Micronesia)", "South America" }, "select continent") as UserInputElement;
}
示例9: ActionCartGetOfAbsSubtotal
public ActionCartGetOfAbsSubtotal(IExpressionViewModel expressionViewModel)
: base("Get $[] off cart subtotal", expressionViewModel)
{
WithLabel("Get $");
_amountEl = WithUserInput<decimal>(0, 0) as UserInputElement;
WithLabel("off cart subtotal");
}
示例10: ActionRedirectAlert
public ActionRedirectAlert(IExpressionViewModel expressionViewModel)
: base("Raise redirect alert", expressionViewModel)
{
WithLabel("Raise redirect alert\r\n (use {CaseId}, {ContactId} as parameters)");
_redirectEl = WithUserInput<string>(string.Empty) as UserInputElement;
_redirectEl.DefaultValue = @"...?customerid={ContactId}&caseid={CaseId}";
}
示例11: ConditionGeoIpRoutingType
public ConditionGeoIpRoutingType(IExpressionViewModel expressionViewModel)
: base("Are browsing from an internet IP routing of type []".Localize(), expressionViewModel)
{
WithLabel("Are browsing from an internet IP routing of type ".Localize());
_matchEl = WithElement(new MatchingContains(false, false)) as MatchingContains;
_valEl = WithDict(new string[] { "Fixed", "Anonymizer", "Aol", "Aolpop", "Aoldialup", "Aolproxy", "Pop", "Superpop", "Stallite", "Cache proxy", "International proxy", "Regional proxy", "Mobile gateway", "None" }, "select routing type".Localize()) as UserInputElement;
}
示例12: LanguageElement
public LanguageElement(IExpressionViewModel expressionViewModel)
{
InitializeAvailableValues(expressionViewModel);
DefaultValue = AvailableValues.FirstOrDefault();
InputDisplayName = "select language".Localize();
}
示例13: StoreElement
public StoreElement(IExpressionViewModel expressionViewModel)
{
InitializeAvailableValues(expressionViewModel);
DefaultValue = AvailableValues.FirstOrDefault();
InputDisplayName = "select Store";
}
示例14: ActionCartGetOfRelSubtotal
public ActionCartGetOfRelSubtotal(IExpressionViewModel expressionViewModel)
: base("Get [] % off cart subtotal".Localize(), expressionViewModel)
{
WithLabel("Get".Localize());
_amountEl = WithUserInput(0, 0, 100) as UserInputElement;
WithLabel("% off cart subtotal".Localize());
}
示例15: InitializeAfterDeserialized
public override void InitializeAfterDeserialized(IExpressionViewModel expressionViewModel)
{
base.InitializeAfterDeserialized(expressionViewModel);
WithAvailableExcluding(() => new ItemsInCategory(expressionViewModel));
WithAvailableExcluding(() => new ItemsInEntry(expressionViewModel));
WithAvailableExcluding(() => new ItemsInSku(expressionViewModel));
}