Esempio n. 1
0
 public CodeDocumentStorage(CodeDocument owner)
     : base(owner)
 {
     if (owner == null)
     {
         throw new ArgumentNullException("owner");
     }
     this._language = (CodeDocumentLanguage) owner.Language;
 }
 Document IDocumentFactory.CreateDocument(DocumentProjectItem projectItem, bool readOnly, DocumentMode mode, DocumentViewType initialView, out DocumentWindow documentWindow, out DesignerHost designerHost)
 {
     if (projectItem == null)
     {
         throw new ArgumentNullException("projectItem");
     }
     Document document = new CodeDocument(projectItem, VisualBasicCodeDocumentLanguage.Instance);
     designerHost = new DesignerHost(document);
     document.Load(readOnly);
     documentWindow = new CodeDocumentWindow(designerHost, document);
     return document;
 }