Exemplo n.º 1
0
        public DataTable GetExternalBrowserList()
        {
            DataTable result = null;

            try
            {
                using (BookmarksDL bookmrksDL = new BookmarksDL())
                {
                    result = bookmrksDL.GetTable(new Browser());
                }
            }
            catch (Exception)
            {
                throw;
            }
            return(result);
        }
Exemplo n.º 2
0
 private void ExportToExcel()
 {
     try
     {
         DataTable dt2Export = new DataTable();
         using (BookmarksDL bkmrkDL = new BookmarksDL())
         {
             dt2Export = bkmrkDL.GetTable(new Bookmark {
             });
         }
         exportMan.Export2Excel(dt2Export, "Bookmarks", "D:/Bookmarks.xls");
     }
     catch (Exception ex)
     {
         LightLogger.LogMethod(ex, this.Name, "ExportToExcel");
         MessageUtil.Error("Export Operation failed");
     }
 }