UsageDetailViewModel CreateNewDetail() { var detail = new UsageDetailViewModel(); detail.PropertyChanged += detail_PropertyChanged; return(detail); }
private void SetDefaultUnitPrice(UsageDetailViewModel detail) { if (detail == null) { return; } var consumable = consumableService.Get(detail.ConsumableId); detail.UnitPrice = consumable.UnitPrice; }
private void SetDefaultUnitPrice(UsageDetailViewModel detail) { if (detail == null) return; var consumable = consumableService.Get(detail.ConsumableId); detail.UnitPrice = consumable.UnitPrice; }
UsageDetailViewModel CreateNewDetail() { var detail = new UsageDetailViewModel(); detail.PropertyChanged += detail_PropertyChanged; return detail; }