using System; using Comal.Classes; using InABox.Mobile; namespace PRS.Mobile { public class ProductInstanceShell : Shell { protected override void ConfigureColumns(ShellColumns columns) { columns .Map(nameof(ProductID), x => x.Product.ID) .Map(nameof(Height), x => x.Dimensions.Height) .Map(nameof(Length), x => x.Dimensions.Length) .Map(nameof(Width), x => x.Dimensions.Width) .Map(nameof(Weight), x => x.Dimensions.Weight) .Map(nameof(Quantity), x => x.Dimensions.Quantity) .Map(nameof(UnitSize), x => x.Dimensions.UnitSize) .Map(nameof(Value), x => x.Dimensions.Value) .Map(nameof(NettCost), x => x.NettCost); } public Guid ProductID { get; set; } public double Height => Get(); public double Length => Get(); public double Width => Get(); public double Weight => Get(); public double Quantity => Get(); public double Value => Get(); public string UnitSize => Get(); public double NettCost => Get(); } }