• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# IExpressionViewModel类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中IExpressionViewModel的典型用法代码示例。如果您正苦于以下问题:C# IExpressionViewModel类的具体用法?C# IExpressionViewModel怎么用?C# IExpressionViewModel使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



IExpressionViewModel类属于命名空间,在下文中一共展示了IExpressionViewModel类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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));
		}
开发者ID:Wdovin,项目名称:vc-community,代码行数:7,代码来源:ConditionCategoryIs.cs


示例2: ContentPublishingExpressionBlock

        public ContentPublishingExpressionBlock(IExpressionViewModel publishingViewModel)
            : base(null, publishingViewModel)
        {
            this.ConditionBlock = new ConditionAndOrBlock("if".Localize(), publishingViewModel, "of these conditions are true".Localize());

            InitializeAvailableExpressions();
        }
开发者ID:gitter-badger,项目名称:vc-community-1.x,代码行数:7,代码来源:ContentPublishingExpressionBlock.cs


示例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;
		}
开发者ID:Wdovin,项目名称:vc-community,代码行数:7,代码来源:ConditionGeoTimeZone.cs


示例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;
		}
开发者ID:Wdovin,项目名称:vc-community,代码行数:7,代码来源:ConditionGeoConnectionType.cs


示例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));
		}
开发者ID:karpinskiy,项目名称:vc-community,代码行数:7,代码来源:ConditionCategoryIs.cs


示例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;
		}
开发者ID:karpinskiy,项目名称:vc-community,代码行数:7,代码来源:ConditionGeoState.cs


示例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;
        }
开发者ID:karpinskiy,项目名称:vc-community,代码行数:7,代码来源:ActionCatalogItemGiftNumItemOfSku.cs


示例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;
		}
开发者ID:karpinskiy,项目名称:vc-community,代码行数:7,代码来源:ConditionGeoContinent.cs


示例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");
 }
开发者ID:karpinskiy,项目名称:vc-community,代码行数:7,代码来源:ActionCartGetOfAbsSubtotal.cs


示例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}";
		}
开发者ID:karpinskiy,项目名称:vc-community,代码行数:7,代码来源:ActionRedirectAlert.cs


示例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;
		}
开发者ID:Wdovin,项目名称:vc-community,代码行数:7,代码来源:ConditionGeoIpRoutingType.cs


示例12: LanguageElement

        public LanguageElement(IExpressionViewModel expressionViewModel)
        {
            InitializeAvailableValues(expressionViewModel);

            DefaultValue = AvailableValues.FirstOrDefault();
            InputDisplayName = "select language".Localize();
        }
开发者ID:gitter-badger,项目名称:vc-community-1.x,代码行数:7,代码来源:LanguageElement.cs


示例13: StoreElement

        public StoreElement(IExpressionViewModel expressionViewModel)
        {
			InitializeAvailableValues(expressionViewModel);

            DefaultValue = AvailableValues.FirstOrDefault();
            InputDisplayName = "select Store";
        }
开发者ID:Wdovin,项目名称:vc-community,代码行数:7,代码来源:StoreElement.cs


示例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());
		}
开发者ID:gitter-badger,项目名称:vc-community-1.x,代码行数:7,代码来源:ActionCartGetOfRelSubtotal.cs


示例15: InitializeAfterDeserialized

		public override void InitializeAfterDeserialized(IExpressionViewModel expressionViewModel)
		{
			base.InitializeAfterDeserialized(expressionViewModel);
			WithAvailableExcluding(() => new ItemsInCategory(expressionViewModel));
			WithAvailableExcluding(() => new ItemsInEntry(expressionViewModel));
			WithAvailableExcluding(() => new ItemsInSku(expressionViewModel));
		}
开发者ID:karpinskiy,项目名称:vc-community,代码行数:7,代码来源:ConditionCartSubtotalLeast.cs


示例16: ConditionGeoCountry

		public ConditionGeoCountry(IExpressionViewModel expressionViewModel)
            : base("Are browsing from country []".Localize(), expressionViewModel)
		{
            WithLabel("Browsing from country ".Localize());
			_matchEl = WithElement(new MatchingContains(false, false)) as MatchingContains;
            _valEl = WithCustomDict(GetCountryList(expressionViewModel), new[] { "select country".Localize() }) as UserInputElement;
		}
开发者ID:gitter-badger,项目名称:vc-community-1.x,代码行数:7,代码来源:ConditionGeoCountry.cs


示例17: ActionCatalogItemGetOfRel

		public ActionCatalogItemGetOfRel(IExpressionViewModel expressionViewModel)
			: base("Get [] % off", expressionViewModel)
        {
            WithLabel("Get");
            _amountEl = WithUserInput(0, 0, 100) as UserInputElement;
            WithLabel("% off");
        }
开发者ID:karpinskiy,项目名称:vc-community,代码行数:7,代码来源:ActionCatalogItemGetOfRel.cs


示例18: ConditionAndOrBlock

		public ConditionAndOrBlock(string namePrefix, IExpressionViewModel expressionViewModel, string nameSuffix)
			: base(namePrefix + " ... " + nameSuffix, expressionViewModel)
        {
            if (!string.IsNullOrEmpty(namePrefix)) WithLabel(namePrefix);
            AllAny = WithElement(new AllAny()) as AllAny;
            if (!string.IsNullOrEmpty(nameSuffix)) WithLabel(nameSuffix);
        }
开发者ID:karpinskiy,项目名称:vc-community,代码行数:7,代码来源:ConditionAndOrBlock.cs


示例19: ConditionCategoryIsSubcategory

		public ConditionCategoryIsSubcategory(IExpressionViewModel expressionViewModel)
			: base("Category is subcategory of []".Localize(), expressionViewModel)
		{
			WithLabel("Category is subcategory of ".Localize());
			_itemsInCategoryEl = WithElement(new CategorySelectElement(expressionViewModel)) as CategorySelectElement;
			WithAvailableExcluding(() => new CategorySelectElement("Category".Localize(), expressionViewModel));
		}
开发者ID:Wdovin,项目名称:vc-community,代码行数:7,代码来源:ConditionCategoryIsSubcategory.cs


示例20: ActionCatalogItemGetOfAbs

		public ActionCatalogItemGetOfAbs(IExpressionViewModel expressionViewModel)
			: base("Get off $ []".Localize(), expressionViewModel)
		{
			WithLabel("Get".Localize());
			_amountEl = WithUserInput<decimal>(1, 0) as UserInputElement;
			WithLabel("$ off".Localize());
		}
开发者ID:gitter-badger,项目名称:vc-community-1.x,代码行数:7,代码来源:ActionCatalogItemGetOfAbs.cs



注:本文中的IExpressionViewModel类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# IExtObjectContainer类代码示例发布时间:2022-05-24
下一篇:
C# IExpressionTransformer类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap