Пример #1
0
        public DocumentIcon AddDocument(Document doc, IconArea occupation)
        {
            DocumentIcon info = new DocumentIcon(doc.GUID, occupation);

            Documents.Add(info);
            return(info);
        }
Пример #2
0
 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);
     }
 }