예제 #1
0
        protected void UpdateQuantity(PayItemViewModel item, int value)
        {
            item.Quantity += value;

            NotifyOfPropertyChange(() => CanCompletePayment);
            NotifyOfPropertyChange(() => Total);
            NotifyOfPropertyChange(() => TotalText);
        }
예제 #2
0
 public void AddItem(PayItemViewModel item)
 {
     UpdateQuantity(item, 1);
 }
예제 #3
0
 public void RemoveItem(PayItemViewModel item)
 {
     UpdateQuantity(item, -1);
 }
예제 #4
0
파일: PayViewModel.cs 프로젝트: edjo23/shop
 public void AddItem(PayItemViewModel item)
 {
     UpdateQuantity(item, 1);
 }
예제 #5
0
파일: PayViewModel.cs 프로젝트: edjo23/shop
        protected void UpdateQuantity(PayItemViewModel item, int value)
        {
            item.Quantity += value;

            NotifyOfPropertyChange(() => CanCompletePayment);
            NotifyOfPropertyChange(() => Total);
            NotifyOfPropertyChange(() => TotalText);
        }
예제 #6
0
파일: PayViewModel.cs 프로젝트: edjo23/shop
 public void RemoveItem(PayItemViewModel item)
 {
     UpdateQuantity(item, -1);
 }