Пример #1
0
 private void ClearBill()
 {
     (new ConfirmDialog("XÁC NHẬN", "Hóa đơn đang tạo hoặc đang chờ thanh toán. Xác nhận xóa?", (Action) delegate
     {
         ListDetailBill.Clear();
         if (index >= 0)
         {
             ListGeneralBillModel.GetInstance().List.Remove(ListGeneralBillModel.GetInstance().List[index]);
             ListGeneralBillModel.GetInstance().NotifyListChange();
         }
         InputDeskNo = 0;
         NotifyChanged("InputDeskNo");
         NotifyChanged("SumPrice");
     })).ShowDialog();
 }
Пример #2
0
 private void RemoveDetailItem(DetailBillItemViewModel item)
 {
     ListDetailBill.Remove(item);
     NotifyDetaillBillProperty();
 }
Пример #3
0
 private void RemoveItem(DetailBillItemViewModel item)
 {
     ListDetailBill.Remove(item);
 }