예제 #1
0
        public void Remove(int index)
        {
            var jk = view.bindingList.ElementAt(index);

            view.bindingList.RemoveAt(index);
            if (jk.Id > 0)
            {
                repo.Delete(jk.Id);
            }
        }
예제 #2
0
        public void Remove(int index)
        {
            var jarmu = view.bindingList.ElementAt(index);

            view.bindingList.RemoveAt(index);
            if (jarmu.id > 0)
            {
                repo.Delete(jarmu.id);
                view.totalItems--;
            }
        }