public static void DeleteBookmarkItem(BookmarkItem item)
        {
            var adapter = new TableTableAdapter();

            adapter.DeleteQuery(item.ID, item.URL, item.Name);
            UpdateDatabase();
        }
        public static List <BookmarkItem> GetBookmarkList()
        {
            var adapter = new TableTableAdapter();
            var result  = new List <BookmarkItem>();
            var rows    = adapter.GetData();

            foreach (var row in rows)
            {
                var item = new BookmarkItem();
                item.URL  = row.URL;
                item.Name = row.Name;

                result.Add(item);
            }
            return(result);
        }
        public static void AddBookmark(BookmarkItem item)
        {
            var adapter = new TableTableAdapter();

            adapter.Insert(item.URL, item.Name);
        }