public override void Initialize(IComponent component)
 {
     base.Initialize(component);
     this.sprocDocument = (StoredProcedureDocument) component;
 }
 void IDisposable.Dispose()
 {
     this._owner = null;
 }
 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 StoredProcedureDocument(projectItem);
     designerHost = new DesignerHost(document);
     document.Load(readOnly);
     documentWindow = new StoredProcedureDocumentWindow(designerHost, document);
     return document;
 }
 public StoredProcedureDocumentStorage(StoredProcedureDocument owner)
     : base(owner)
 {
     this._owner = owner;
 }