public void RemoveDocument(Document document) { if (document == null) { throw new ArgumentException ("Null document"); } documents.Remove (document); if (OnDocumentRemoved != null) { OnDocumentRemoved (document, EventArgs.Empty); } }
public void AddDocument(Document document) { if (document == null) { throw new ArgumentException ("Null document"); } documents.Add (document); if (OnDocumentAdded != null) { OnDocumentAdded (document, EventArgs.Empty); } }