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(); }
private void RemoveDetailItem(DetailBillItemViewModel item) { ListDetailBill.Remove(item); NotifyDetaillBillProperty(); }
private void RemoveItem(DetailBillItemViewModel item) { ListDetailBill.Remove(item); }