示例#1
0
        protected override void ClearView()
        {
            ClearTargetCollection();

            Ratings.MoveCurrentToPosition(0);
            RatingTypes.MoveCurrentToPosition(0);

            TargetModel = new InpsRating();
        }
示例#2
0
 public Store()
 {
     Categories = new HashSet <Category>();
     Drivers    = new HashSet <Driver>();
     //Orders = new HashSet<Order>();
     StoreOrders    = new HashSet <StoreOrder>();
     Payment_Method = new HashSet <Payment_Method>();
     Products       = new HashSet <Product>();
     StoreRatings   = new HashSet <StoreRatings>();
     //  StoreDeliveryHours = new HashSet<StoreDeliveryHours>();
     Offers     = new HashSet <Offer>();
     StoreTags  = new HashSet <StoreTags>();
     Admins     = new HashSet <Admin>();
     Packages   = new HashSet <Package>();
     RatingType = new RatingTypes();
 }
示例#3
0
        protected override void ClearView()
        {
            try
            {
                base.ClearTargetCollection();

                //Metrics = new Infrastructure.MangoService.Metrics();

                Metrics    = null;
                IsInfinity = false;
                Ratings.MoveCurrentToPosition(0);
                RatingTypes.MoveCurrentToPosition(0);
                TargetModel = new MetricRating();

                UpdateViewState(Edit.Mode.Loaded);

                //CanRemoveAllMetricRating = false;
            }
            catch (Exception ex)
            {
                Utility.DisplayMessage(ex.Message);
            }
        }