コード例 #1
0
        UsageDetailViewModel CreateNewDetail()
        {
            var detail = new UsageDetailViewModel();

            detail.PropertyChanged += detail_PropertyChanged;
            return(detail);
        }
コード例 #2
0
        private void SetDefaultUnitPrice(UsageDetailViewModel detail)
        {
            if (detail == null)
            {
                return;
            }

            var consumable = consumableService.Get(detail.ConsumableId);

            detail.UnitPrice = consumable.UnitPrice;
        }
コード例 #3
0
        private void SetDefaultUnitPrice(UsageDetailViewModel detail)
        {
            if (detail == null) return;

            var consumable = consumableService.Get(detail.ConsumableId);
            detail.UnitPrice = consumable.UnitPrice;
        }
コード例 #4
0
 UsageDetailViewModel CreateNewDetail()
 {
     var detail = new UsageDetailViewModel();
     detail.PropertyChanged += detail_PropertyChanged;
     return detail;
 }