public DocumentIcon AddDocument(Document doc, IconArea occupation) { DocumentIcon info = new DocumentIcon(doc.GUID, occupation); Documents.Add(info); return(info); }
public void RemoveDocument(DocumentIcon iconInfo) { if (Documents.Contains(iconInfo) == false) { throw new IndexOutOfRangeException("Specified icon doesn't exist in current page."); } else { Documents.Remove(iconInfo); } }