Exemplo n.º 1
0
 public QuantityViewModel(QuantityViewModel q)
 {
     quantity  = new Quantity();
     Total     = q.Total;
     Today     = q.Today;
     Weekly    = q.Weekly;
     Monthly   = q.Monthly;
     Annually  = q.Annually;
     UsedTotal = q.UsedTotal;
 }
Exemplo n.º 2
0
 public ItemViewModel(ItemViewModel i)
 {
     item        = new Item();
     Id          = i.Id;
     Name        = i.Name;
     Description = i.Description;
     Category    = i.Category;
     Quantity    = new QuantityViewModel(i.Quantity);
     Price       = new PriceViewModel(i.Price);
     Detail      = new ItemDetailViewModel(i.Detail);
 }
Exemplo n.º 3
0
 public ItemViewModel(string _id, string _name, string _desc, string _cat, QuantityViewModel _quantity, PriceViewModel _price, ItemDetailViewModel _detail)
 {
     item        = new Item();
     Id          = _id;
     Name        = _name;
     Description = _desc;
     Category    = _cat;
     Quantity    = _quantity;
     Price       = _price;
     Detail      = _detail;
 }