public void OnGet() { int i = userData.GetId(); Budget = userData.GetBudgetById(i); LeftToPay = new LeftToPay(Budget); }
private void OpenCreditDialog() { CreditPayment cp = Dialogs.GetCreditPayment(double.Parse(LeftToPay.ToString())); if (cp != null) { } }
private void OpenCashDialog() { CashPayment cp = Dialogs.GetCashPayment(double.Parse(LeftToPay.ToString())); if (cp != null) { PartialPayments.Add(cp); CurrentOrder.Payments = new HashSet <Payment>(PartialPayments); LeftToPay -= cp.TotalPayed; if (LeftToPay <= 0) { CloseOrder(); } } }