protected override void OnAppearing()
        {
            base.OnAppearing();

            listView.ItemsSource = _checkin.Orders;

            if (_checkin.CheckinStatus != Enums.CheckinStatus.Checkout)
            {
                var subTotal      = _checkin.GetSubTotal();
                var tip           = _checkin.GetTip();
                var tax           = _checkin.GetTax();
                var tipPercentage = _checkin.GetTipPercentage(tip, subTotal);
                var taxPercentage = _checkin.GetTaxPercentage(tax, subTotal);

                lblTaxsTitle.Text = AppResource.lblTaxs + "(" + taxPercentage + "%)";
                lblTipTitle.Text  = AppResource.lblTips + "(" + tipPercentage + "%)";
                lblDesconto.Text  = String.Format(new System.Globalization.CultureInfo("en-US"), "{0:C}", _checkin.PriceDiscount);
                lblTotal.Text     = String.Format(new System.Globalization.CultureInfo("en-US"), "{0:C}", _checkin.TotalPaid);
                lblTax.Text       = String.Format(new System.Globalization.CultureInfo("en-US"), "{0:C}", tax);
                lblTip.Text       = String.Format(new System.Globalization.CultureInfo("en-US"), "{0:C}", tip);
            }
            else
            {
                //20180904
                lblTaxsTitle.Text = AppResource.lblTaxs + "(" + _checkin.TaxPercentage.ToString("#.##") + "%)";
                lblTipTitle.Text  = AppResource.lblTips + "(" + _checkin.TipPercentage.ToString("#.##") + "%)";
                lblDesconto.Text  = String.Format(new System.Globalization.CultureInfo("en-US"), "{0:C}", _checkin.PriceDiscount);
                lblTotal.Text     = String.Format(new System.Globalization.CultureInfo("en-US"), "{0:C}", _checkin.TotalPaid);
                lblTax.Text       = String.Format(new System.Globalization.CultureInfo("en-US"), "{0:C}", _checkin.PriceTaxPaid);
                lblTip.Text       = String.Format(new System.Globalization.CultureInfo("en-US"), "{0:C}", _checkin.PriceTipPaid);
            }

            if (_checkin.Company.HasLocation)
            {
                lblSubTotal.Text = String.Format(new System.Globalization.CultureInfo("en-US"), "{0:C}", _checkin.TotalSpent);
            }
            else
            {
                lblSubTotal.Text = String.Format(new System.Globalization.CultureInfo("en-US"), "{0:C}", _checkin.SubTotal);
            }



            lblCashValue.Text = String.Format(new System.Globalization.CultureInfo("en-US"), "{0:C}", _checkin.PaidInCash);
            lblCardValue.Text = String.Format(new System.Globalization.CultureInfo("en-US"), "{0:C}", _checkin.PaidInCard);


            //total = 0;
            //foreach (var item in _checkin.Orders.Where(m => m.OrderStatus != Enums.OrderStatus.Canceled))
            //{
            //    total = total + item.TotalPrice;
            //}

            //lblSubTotal.Text = String.Format(new System.Globalization.CultureInfo("en-US"), "{0:C}", _checkin.SubTotal);


            //lblTaxsTitle.Text = AppResource.lblTaxs + "(" + _checkin.Company.TaxPercentage + "%)";
            //lblTipTitle.Text = AppResource.lblTips + "(" + _checkin.TipPercentage + "%)";


            ////var totalWithTip = total * _checkin.TipPercentage / 100;
            //decimal totalWithTip = 0;
            ////totalWithTip = _checkin.PriceTipPaid != 0 ? _checkin.PriceTipPaid : total * _checkin.Company.RecommendedTipPercentage / 100;
            //if (_checkin.PriceTipPaid != 0)
            //{
            //    totalWithTip = _checkin.PriceTipPaid;
            //}
            //else if (_checkin.Company.RecommendedTipPercentage != 0)
            //{
            //    totalWithTip = total * _checkin.Company.RecommendedTipPercentage / 100;
            //}
            //lblTip.Text = String.Format(new System.Globalization.CultureInfo("en-US"), "{0:C}", totalWithTip);

            //lblDesconto.Text = String.Format(new System.Globalization.CultureInfo("en-US"), "{0:C}", _checkin.PriceDiscount);

            //var totalWithTax = total * _checkin.Company.TaxPercentage / 100;
            //lblTax.Text = String.Format(new System.Globalization.CultureInfo("en-US"), "{0:C}", totalWithTax);
            //subTotal = total + totalWithTax;


            //var newTotal = (total + totalWithTax + totalWithTip) - _checkin.PriceDiscount;
            //total = newTotal;


            //lblTotal.Text = String.Format(new System.Globalization.CultureInfo("en-US"), "{0:C}", newTotal);
            //lblCashValue.Text = String.Format(new System.Globalization.CultureInfo("en-US"), "{0:C}", _checkin.PaidInCash);
            //lblCardValue.Text = String.Format(new System.Globalization.CultureInfo("en-US"), "{0:C}", _checkin.PaidInCard);
        }