public bool IsExistInternalBookmarkItem(string key) { if (InternalBookmarkItems != null) { return(InternalBookmarkItems.Exists(item => item.Key == key)); } return(false); }
public bool RemoveInternalBookmarkItem(string key) { if (InternalBookmarkItems != null) { int count = InternalBookmarkItems.Count; for (int index = 0; index < count; index++) { InternalBookmarkItem item = InternalBookmarkItems[index]; if (item != null && item.Key == key) { InternalBookmarkItems.RemoveAt(index); return(true); } } } return(false); }