Пример #1
0
        /// <summary>
        /// A private helper function that creates a ReadDocument from a FlowDocument and adds it to the collection.
        /// </summary>
        /// <param name="flowDoc">The FlowDocument used to create the new ReadDocument.</param>
        /// <returns>The added ReadDocument.</returns>
        private ReadDocument Add(FlowDocument flowDoc)
        {
            var res = new ReadDocument(flowDoc);

            _docs.Add(res);
            return(res);
        }
Пример #2
0
 /// <summary>
 /// Removes a ReadDocument from the collection.
 /// </summary>
 /// <param name="doc">The ReadDocument that is removed.</param>
 public void Remove(ReadDocument doc)
 {
     _docs.Remove(doc);
 }