void VinSearch_CancelButtonClicked(object sender, EventArgs e)
        {
            VinSearch.EndEditing(true);
            VinSearch.Text = "";

            string segmentID = AppraisalTypeSegment.SelectedSegment.ToString();

            if (segmentID == "0")
            {
                if (AppDelegate.appDelegate.CustomerLogin)
                {
                    var Appcompleted = CustomerAppLogsList.FindAll((CustomerAppraisalLogEntity obj) => obj.Status == "CA");
                    AppraisalTableView.Source             = new CustomerApprasialLogTVS(Appcompleted);
                    AppraisalTableView.RowHeight          = 120f;
                    AppraisalTableView.EstimatedRowHeight = 120.0f;
                    AppraisalTableView.BackgroundColor    = UIColor.LightGray;
                    AppraisalTableView.ReloadData();
                }
                else
                {
                    var Appcompleted = apploglist.FindAll((AppraisalLogEntity obj) => obj.Status == "CA");
                    AppraisalTableView.Source             = new ApprasialLogTVS(Appcompleted);
                    AppraisalTableView.RowHeight          = 120f;
                    AppraisalTableView.EstimatedRowHeight = 120.0f;
                    AppraisalTableView.BackgroundColor    = UIColor.LightGray;
                    AppraisalTableView.ReloadData();
                }
            }
            else
            {
                if (AppDelegate.appDelegate.CustomerLogin)
                {
                    var appPending = CustomerAppLogsList.FindAll((CustomerAppraisalLogEntity obj) => obj.Status != "CA");
                    AppraisalTableView.Source             = new CustomerApprasialLogTVS(appPending);
                    AppraisalTableView.RowHeight          = 120f;
                    AppraisalTableView.EstimatedRowHeight = 120.0f;
                    AppraisalTableView.BackgroundColor    = UIColor.LightGray;
                    AppraisalTableView.ReloadData();
                }
                else
                {
                    var appPending = apploglist.FindAll((AppraisalLogEntity obj) => obj.Status != "CA");
                    AppraisalTableView.Source             = new ApprasialLogTVS(appPending);
                    AppraisalTableView.RowHeight          = 120f;
                    AppraisalTableView.EstimatedRowHeight = 120.0f;
                    AppraisalTableView.BackgroundColor    = UIColor.LightGray;
                    AppraisalTableView.ReloadData();
                }
            }
        }
 bool VinSearch_ShouldBeginEditing(UISearchBar searchBar)
 {
     VinSearch.SetShowsCancelButton(true, true);
     return(true);
 }
 bool VinSearch_ShouldEndEditing(UISearchBar searchBar)
 {
     VinSearch.SetShowsCancelButton(false, true);
     return(true);
 }