Пример #1
0
        /// <summary>
        /// Sets marked records.
        /// </summary>
        /// <param name="marked">The marked bytes.</param>
        internal virtual void SetMarkedRecords(Byte[][] marked)
        {
            Debug.Assert(this.Record != null);
            this.Record.ALClearMarks();
            if (marked != null && marked.Length > 0)
            {
                using (NavRecord cachedRecord = this.Record.Clone(this.Record.IsTemporary))
                {
                    foreach (Byte[] bookmarkBytes in marked)
                    {
                        RecordBookmark bookmark = new RecordBookmark(bookmarkBytes);
                        if (bookmark != null)
                        {
                            this.Record.SetMark(bookmark.GetBytes(), true);
                        }
                    }

                    this.Record.Assign(cachedRecord);
                }
            }
        }
        /// <summary>
        /// Sets marked records.
        /// </summary>
        /// <param name="marked">The marked bytes.</param>
        internal virtual void SetMarkedRecords(Byte[][] marked)
        {
            Debug.Assert(this.Record != null);
            this.Record.ALClearMarks();
            if (marked != null && marked.Length > 0)
            {
                using (NavRecord cachedRecord = this.Record.Clone(this.Record.IsTemporary))
                {
                    foreach (Byte[] bookmarkBytes in marked)
                    {
                        RecordBookmark bookmark = new RecordBookmark(bookmarkBytes);
                        if (bookmark != null)
                        {
                            this.Record.SetMark(bookmark.GetBytes(), true);
                        }
                    }

                    this.Record.Assign(cachedRecord);
                }
            }
        }