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