Exemple #1
0
        //razor - hàm cho phép chỉnh sửa thông tin the loai sách theo ma
        public static void updateCategory(Category catinfo)
        {
            int cat_index = MyCategory.findIndex(catinfo.catID);

            MyCategory.mybctgr[cat_index].catName = catinfo.catName;
            Categoryrw.Categoryupdate(catinfo, cat_index);
        }
Exemple #2
0
        //razor - hàm chi cho phép xoa thong tin the loai sach
        public static void deleteCategory(Category catinfo)
        {
            //  bool rs = false;
            int cat_index = MyCategory.findIndex(catinfo.catID);

            MyCategory.mybctgr.Remove(MyCategory.mybctgr[cat_index]);
            Categoryrw.Categorydelete(cat_index);
        }