Exemplo n.º 1
0
        //удаляем товар
        private async void DeleteGoods(object goodsObject)
        {
            tdGoods goods = goodsObject as tdGoods;

            if (goods != null)
            {
                IsBusy = true;
                tdGoods deletedGoods = await mobileService.Delete(goods.tdGoodsID);

                if (deletedGoods != null)
                {
                    Goods.Remove(deletedGoods);
                }
                IsBusy = false;
            }
            Back();
        }