示例#1
0
 public bool OnItemDrop(int fromPosition, int toPosition)
 {
     UpdateSizeRank();
     mItems = mSizesDataAccess.SelectTable().OrderBy(x => x.SizeRank).ToList();
     ProductsFragmentSizesFragment.mProductSizesList = mItems;
     return(true);
 }
示例#2
0
 private void FnGetListData(string _queryString)
 {
     mProductSizesList = mSizesDataAccess.SelectTable();
     mProductSizesList = mProductSizesList != null?
                         mProductSizesList.OrderBy(x => x.SizeRank).Where(x => x.ProductSizeName.Contains(_queryString)).ToList() :
                             mProductSizesList;
 }
        private List <ProductSizesModel> PopulateProductSizes(string _queryString)
        {
            var sizes = mSizesDataAccess.SelectTable();

            if (_queryString != "")
            {
                mProductSizes = sizes
                                .OrderBy(x => x.SizeRank)
                                .Where(x => x.ProductSizeName.ToLower().Contains(_queryString))
                                .ToList();
            }
            else
            {
                mProductSizes = sizes.OrderBy(x => x.SizeRank).ToList();
            }
            return(mProductSizes);
        }