Пример #1
0
        /// <summary>
        /// Method Name     : SetEstimateData
        /// Author          : Hiren Patel
        /// Creation Date   : 30 Dec 2017
        /// Purpose         : Set estimates data
        /// Revision        :
        /// </summary>
        public void SetEstimateData(EstimateModel estimateModel, UITableView tableView, EstimateListViewController estimateListViewController)
        {
            this.estimateListViewController = estimateListViewController;
            this.estimateModel    = estimateModel;
            lblEstimateTitle.Text = estimateModel.MoveNumber;
            if (string.IsNullOrEmpty(estimateModel.EstimatedLineHaul))
            {
                lblExcessValuation.Text = UtilityPCL.CurrencyFormat("0");
            }
            else
            {
                lblExcessValuation.Text = estimateModel.EstimatedLineHaul;
            }

            if (estimateModel.MoveNumber == UtilityPCL.selectedMoveNumber)
            {
                btnSelectEstimate.SetImage(UIImage.FromFile(AppConstant.ESTIMATE_SELECETD_IMAGE_URL), UIControlState.Normal);
            }
            else
            {
                btnSelectEstimate.SetImage(UIImage.FromFile(AppConstant.ESTIMATE_UNSELECETD_IMAGE_URL), UIControlState.Normal);
            }

            SetIimgViewEstimateTap();
            btnSelectEstimate.TintColor         = UIColor.White;
            btnSelectEstimate.Layer.BorderWidth = 0;
            this.tableView = tableView;
        }
 public EstimateListTableCellSource(List <EstimateModel> estimateModelList, EstimateListViewController estimateListViewController)
 {
     this.estimateModelList          = estimateModelList;
     this.estimateListViewController = estimateListViewController;
 }