Example #1
0
        internal CardInfoLojaModel GetItemLoja(CardView cardView)
        {
            var result   = new CardInfoLojaModel();
            var relativa = (RelativeLayout)cardView.GetChildAt(0);

            result.type        = ((TextView)relativa.GetChildAt(0)).Text;
            result.description = ((TextView)relativa.GetChildAt(1)).Text;
            return(result);
        }
        void RemoveItem(CardInfoLojaModel item)
        {
            var index = model.list_loja.FindIndex(CardInfoLojaModel => (
                                                      CardInfoLojaModel.description.Equals(item.description) &&
                                                      CardInfoLojaModel.type.Equals(item.type)));

            if (index > -1)
            {
                model.list_loja.RemoveAt(index);
                model.adapterLoja.NotifyItemRemoved(index);
            }
            PopulateProgressBar();
        }