Ejemplo n.º 1
0
        protected override void Initialize()
        {
            base.Initialize();

            if (ProductType == null && TypeSelectorItems.Count() > 0)
            {
                ProductType = TypeSelectorItems.FirstOrDefault();
            }

            actualCalculationTarget = Services.DataService.CalculationTargetProperty.TotalCost;
        }
Ejemplo n.º 2
0
        protected override void Initialize()
        {
            base.Initialize();

            TypeSelectorItems.Insert(0, new ProductType {
                Name = "Не обрано", Id = -1
            });

            IntervalList = AggregationInterval.GetList();

            SelectedInterval = IntervalList.FirstOrDefault();

            ProductType = TypeSelectorItems.FirstOrDefault();
        }