Exemple #1
0
        public bool IsExistInternalBookmarkItem(string key)
        {
            if (InternalBookmarkItems != null)
            {
                return(InternalBookmarkItems.Exists(item => item.Key == key));
            }

            return(false);
        }
Exemple #2
0
        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);
        }