public static void Add(BookmarkItem i) { try { items.Add(i); Store(); } catch { } }
public static void Remove(BookmarkItem i) { try { items.Remove(i); Store(); } catch { } }
public static void Set(int i, BookmarkItem itm) { try { items[i] = itm; Store(); } catch { } }
public static void Load() { try { string[] lines = Filesystem.FileReadAllLines(Filesystem.UserProfile + "\\Popup Multibox\\bookmarks.txt"); items.Clear(); foreach (string line in lines) { BookmarkItem tmp = BookmarkItem.FromFileString(line); if (tmp != null) { items.Add(tmp); } } items.Sort(); } catch { } }