Exemplo n.º 1
0
 private void MapUIControl(UncompletePrepayLoad response)
 {
     UncompletePrepayModel = new UncompletePrepayModel
     {
         Caption              = response.Caption,
         IsChangeEnabled      = response.IsChangeEnabled,
         IsDeleteEnabled      = response.IsDeleteEnabled,
         IsDeleteVisible      = response.IsDeleteVisible,
         IsOverPaymentEnabled = response.IsOverPaymentEnabled,
         UncompleteSale       = MapUncompleteSale(response.UncompleteSale)
     };
 }
Exemplo n.º 2
0
        public void ResetVM()
        {
            UncompletePrepayModel = new UncompletePrepayModel();

            PerformAction(async() =>
            {
                var response = await _fuelBusinessLogic.UncompletePrepayLoad();
                MapUIControl(response);

                if (UncompletePrepayModel.UncompleteSale?.Count > 0)
                {
                    SelectedUncompleteSaleModel = UncompletePrepayModel.UncompleteSale.FirstOrDefault();
                }
            });
        }