private void showFile(DataGridView dgv)
        {
            QuanLyFille_CuoiKiEntities2 qlf = new QuanLyFille_CuoiKiEntities2();

            dgv.DataSource = qlf.GetAllFile1();
            //dgv.DataSource = LibraryController.GetFile();
        }
Esempio n. 2
0
        public static string showNote(string fileName)
        {
            using (var _context = new QuanLyFille_CuoiKiEntities2())
            {
                var notes = _context.ShowNote1(fileName, fileName).ToString();

                return(notes);
            }
        }
Esempio n. 3
0
 public static bool UpdateNote(Note note)
 {
     try
     {
         using (var _context = new QuanLyFille_CuoiKiEntities2())
         {
             _context.UpdateNote(note.FileName, note.FileName, note.note);
             return(true);
         }
     }
     catch
     {
         return(false);
     }
 }
Esempio n. 4
0
 public static bool AddToLibraRy(Library file)
 {
     try
     {
         using (var _context = new QuanLyFille_CuoiKiEntities2())
         {
             _context.AddToLibrary(file.FileName, file.FilePath, file.Type);
             return(true);
         }
     }
     catch
     {
         return(false);
     }
 }
 public static bool UpdateHistory(History note)
 {
     try
     {
         using (var _context = new QuanLyFille_CuoiKiEntities2())
         {
             _context.UpdateHistory(note.FilePath, note.FilePath, note.TimeOpen);
             return(true);
         }
     }
     catch
     {
         return(false);
     }
 }
        private void showNote(DataGridView dgv)
        {
            QuanLyFille_CuoiKiEntities2 qlf = new QuanLyFille_CuoiKiEntities2();

            dgv.DataSource = qlf.GetNote();
        }