public void Remove(int index)
        {
            var jk = view.bindingList.ElementAt(index);

            view.bindingList.RemoveAt(index);
            if (jk.id > 0)
            {
                repo.Delete(jk.id);
            }
        }
        public void Remove(int index)
        {
            var tapa = view.bindingList.ElementAt(index);

            view.bindingList.RemoveAt(index);
            if (tapa.id > 0)
            {
                repo.Delete(tapa);
            }
        }
示例#3
0
        public void Remove(int index)
        {
            var tapanyag = view.bindingList.ElementAt(index);

            //repo.GetAllTapanyag().RemoveAt(index);
            view.bindingList.Remove(tapanyag);
            //view.bindingList.RemoveAt(index); ?
            if (tapanyag.id > 0)
            {
                repo.Delete(tapanyag.id);
            }
        }
 public void Remove(int id)
 {
     tapanyagRepository.Delete(id);
 }