Exemple #1
0
        public void OnGet()
        {
            int i = userData.GetId();

            Budget    = userData.GetBudgetById(i);
            LeftToPay = new LeftToPay(Budget);
        }
Exemple #2
0
        private void OpenCreditDialog()
        {
            CreditPayment cp = Dialogs.GetCreditPayment(double.Parse(LeftToPay.ToString()));

            if (cp != null)
            {
            }
        }
Exemple #3
0
        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();
                }
            }
        }