Ejemplo n.º 1
0
        void resultCompletion(ObservableCollection <StockList> wDatas)
        {
            List <StockList> mModels = new List <StockList>(wDatas);

            if (isLoding == true)
            {
                if (mModels.Count == 0)
                {
                    LoadProcessEnd();
                    Toast.MakeText("No More Data.", Toast.LENGTH_SHORT).SetUseShadow(true).SetFontSize(13).SetGravity(ToastGravity.Bottom).SetBgRed(30).Show();
                    return;
                }

                localModels.AddRange(mModels);
            }
            else
            {
                localModels = mModels;
            }
            TableViewSearch.Source = new TableSource(localModels, this);

            TableViewSearch.ReloadData();
            isLoding = false;
            LoadProcessEnd();
            //Add(table);
        }
Ejemplo n.º 2
0
        private void InitializeTableView()
        {
            TableViewSearch.RegisterClassForCellReuse(typeof(TableCell), TableCell.Identifier);
            TableViewSearch.RowHeight          = UITableView.AutomaticDimension;
            TableViewSearch.EstimatedRowHeight = 100;
            TableViewSearch.Source             = new TableSource(localModels, this);

            loadData("AMSWHO01", sIsCloseOut, sRegionSelectionData, sWorkTypeSelectionData, sCategorySelectionData, sKaratSelectionData, 0, 5);
        }
        void ReleaseDesignerOutlets()
        {
            if (btnCloseFilter != null)
            {
                btnCloseFilter.Dispose();
                btnCloseFilter = null;
            }

            if (btnFilter != null)
            {
                btnFilter.Dispose();
                btnFilter = null;
            }

            if (btnFilterDone != null)
            {
                btnFilterDone.Dispose();
                btnFilterDone = null;
            }

            if (btnSearchCategory != null)
            {
                btnSearchCategory.Dispose();
                btnSearchCategory = null;
            }

            if (btnSearchClose != null)
            {
                btnSearchClose.Dispose();
                btnSearchClose = null;
            }

            if (searchDisplayController != null)
            {
                searchDisplayController.Dispose();
                searchDisplayController = null;
            }

            if (btnSearchDone != null)
            {
                btnSearchDone.Dispose();
                btnSearchDone = null;
            }

            if (btnSearchKarat != null)
            {
                btnSearchKarat.Dispose();
                btnSearchKarat = null;
            }

            if (btnSearchRegion != null)
            {
                btnSearchRegion.Dispose();
                btnSearchRegion = null;
            }

            if (btnSearchWorkType != null)
            {
                btnSearchWorkType.Dispose();
                btnSearchWorkType = null;
            }

            if (btnStockDetails != null)
            {
                btnStockDetails.Dispose();
                btnStockDetails = null;
            }

            if (pnlSearch != null)
            {
                pnlSearch.Dispose();
                pnlSearch = null;
            }

            if (pnlSearchFilter != null)
            {
                pnlSearchFilter.Dispose();
                pnlSearchFilter = null;
            }

            if (Process != null)
            {
                Process.Dispose();
                Process = null;
            }

            if (TableViewSearch != null)
            {
                TableViewSearch.Dispose();
                TableViewSearch = null;
            }

            if (TableViewStock != null)
            {
                TableViewStock.Dispose();
                TableViewStock = null;
            }

            if (txtCategory != null)
            {
                txtCategory.Dispose();
                txtCategory = null;
            }

            if (txtKarat != null)
            {
                txtKarat.Dispose();
                txtKarat = null;
            }

            if (txtRegion != null)
            {
                txtRegion.Dispose();
                txtRegion = null;
            }

            if (txtSearchBar != null)
            {
                txtSearchBar.Dispose();
                txtSearchBar = null;
            }

            if (txtWorkType != null)
            {
                txtWorkType.Dispose();
                txtWorkType = null;
            }
        }