public ConditionAtNumItemsOfEntryAreInCart(IExpressionViewModel expressionViewModel)
			: base("[] [] items of entry are in shopping cart", expressionViewModel)
        {
            ExactlyLeast = WithElement(new ExactlyLeast()) as ExactlyLeast;
            _numItemEl = WithUserInput(1, 0) as UserInputElement;
			_itemsInEntryEl = WithElement(new ItemsInEntry(expressionViewModel)) as ItemsInEntry;
            WithLabel("are in shopping cart");
            _itemsInEntryEl.SelectedItemChanged += SelectedEntryItemChanged;
            InitializeExcludings();
        }
 public ConditionAtNumItemsOfEntryAreInCart(IExpressionViewModel expressionViewModel)
     : base("[] [] items of entry are in shopping cart".Localize(), expressionViewModel)
 {
     ExactlyLeast    = WithElement(new ExactlyLeast()) as ExactlyLeast;
     _numItemEl      = WithUserInput(1, 0) as UserInputElement;
     _itemsInEntryEl = WithElement(new ItemsInEntry(expressionViewModel)) as ItemsInEntry;
     WithLabel("are in shopping cart".Localize());
     _itemsInEntryEl.SelectedItemChanged += SelectedEntryItemChanged;
     InitializeExcludings();
 }
Beispiel #3
0
 public ActionCartItemGetOfRelForNumInEntry(IExpressionViewModel expressionViewModel)
     : base("Get [] % off [] items of entry []".Localize(), expressionViewModel)
 {
     WithLabel("Get".Localize());
     _amountEl = WithUserInput(0, 0, 100) as UserInputElement;
     WithLabel(" % off".Localize());
     _numItemEl      = WithUserInput(1, 0) as UserInputElement;
     _itemsInEntryEl = WithElement(new ItemsInEntry(expressionViewModel)) as ItemsInEntry;
     _itemsInEntryEl.SelectedItemChanged += SelectedEntryItemChanged;
     InitializeExcludings();
 }
		public ActionCartItemGetOfRelForNumInEntry(IExpressionViewModel expressionViewModel)
			: base("Get [] % off [] items of entry []".Localize(), expressionViewModel)
		{
			WithLabel("Get".Localize());
			_amountEl = WithUserInput(0, 0, 100) as UserInputElement;
			WithLabel(" % off".Localize());
			_numItemEl = WithUserInput(1, 0) as UserInputElement;
			_itemsInEntryEl = WithElement(new ItemsInEntry(expressionViewModel)) as ItemsInEntry;
			_itemsInEntryEl.SelectedItemChanged += SelectedEntryItemChanged;
			InitializeExcludings();
		}
		public ActionCartItemGetOfAbsForNumInEntry(IExpressionViewModel expressionViewModel)
            : base("Get $[] off [] items of entry []", expressionViewModel)
        {
            WithLabel("Get $");
            _amountEl = WithUserInput<decimal>(1, 0) as UserInputElement;
            WithLabel("off");
            _numItemEl = WithUserInput(1) as UserInputElement;
			_itemsInEntryEl = WithElement(new ItemsInEntry(expressionViewModel)) as ItemsInEntry;
            _itemsInEntryEl.SelectedItemChanged += SelectedEntryItemChanged;
            InitializeExcludings();
        }
		public ConditionEntryIs(IExpressionViewModel expressionViewModel)
			: base("Entry is []", expressionViewModel)
        {
            WithLabel("Entry is ");
			_itemsInEntryEl = WithElement(new ItemsInEntry(expressionViewModel)) as ItemsInEntry;
        }
Beispiel #7
0
 public ConditionEntryIs(IExpressionViewModel expressionViewModel)
     : base("Entry is []".Localize(), expressionViewModel)
 {
     WithLabel("Entry is ".Localize());
     _itemsInEntryEl = WithElement(new ItemsInEntry(expressionViewModel)) as ItemsInEntry;
 }