Beispiel #1
0
 public DocumentWindow(IServiceProvider serviceProvider, Microsoft.Matrix.Core.Documents.Document document)
     : base(serviceProvider)
 {
     if (document == null)
     {
         throw new ArgumentNullException("document");
     }
     this._document = document;
     try
     {
         base.SuspendLayout();
         this.InitializeUserInterface();
         this._documentView = this.CreateDocumentView();
     }
     finally
     {
         base.ResumeLayout(true);
     }
     this._documentView.DocumentChanged += new EventHandler(this.OnDocumentViewDocumentChanged);
     this._viewCommandHandler = this._documentView as ICommandHandler;
     this._viewToolboxClient = this._documentView as IToolboxClient;
     this._viewSelectionContainer = this._documentView as ISelectionContainer;
     IDesigner designer = ((IDesignerHost) serviceProvider.GetService(typeof(IDesignerHost))).GetDesigner(document);
     this._designerCommandHandler = designer as ICommandHandler;
     this._contextCommandHandler = this._document.ProjectItem.Project;
     this.UpdateCaption();
 }
Beispiel #2
0
 public DesignerHost(Document document)
 {
     if (document == null)
     {
         throw new ArgumentNullException("document");
     }
     this._serviceContainer = new ServiceContainer(document.ProjectItem.Project);
     this._componentTable = new Hashtable();
     this._designerTable = new Hashtable();
     ((IContainer) this).Add(document, this.DocumentComponentName);
 }
Beispiel #3
0
 public HtmlDocumentWindow(IServiceProvider provider, Document document, DocumentViewType initialView)
     : base(provider, document)
 {
     if (initialView == DocumentViewType.Default)
     {
         initialView = DocumentViewType.Design;
     }
     IDocumentView viewByType = ((IMultiViewDocumentWindow) this).GetViewByType(initialView);
     if (viewByType != null)
     {
         ((IMultiViewDocumentWindow) this).ActivateView(viewByType);
     }
 }
 public MobileWebFormsDocumentWindow(IServiceProvider provider, Document document, DocumentViewType initialView)
     : base(provider, document, initialView)
 {
 }
 public DocumentTreeNode(Microsoft.Matrix.Core.Documents.Document document)
 {
     this._document = document;
     base.ImageIndex = document.ProjectItem.DocumentType.IconIndex + 1;
     base.SelectedImageIndex = base.ImageIndex;
     this.UpdateText();
 }
Beispiel #6
0
 public AshxDocumentWindow(IServiceProvider provider, Document document)
     : base(provider, document)
 {
 }
Beispiel #7
0
 public CodeDocumentWindow(IServiceProvider serviceProvider, Document document)
     : base(serviceProvider, document)
 {
 }
Beispiel #8
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         this._viewCommandHandler = null;
         this._documentView.DocumentChanged -= new EventHandler(this.OnDocumentViewDocumentChanged);
         this.DisposeDocumentView();
         this._documentView = null;
         this._designerCommandHandler = null;
         this._contextCommandHandler = null;
         this._document = null;
     }
     base.Dispose(disposing);
 }
 public StoredProcedureDocumentWindow(IServiceProvider designerHost, Document document)
     : base(designerHost, document)
 {
 }
Beispiel #10
0
 void IDisposable.Dispose()
 {
     this._text = null;
     this._owner = null;
 }
Beispiel #11
0
 public TextDocumentStorage(TextDocument owner)
 {
     this._owner = owner;
 }
Beispiel #12
0
 void IEmbeddedDocumentStorage.SetContainerDocument(Microsoft.Matrix.Core.Documents.Document document)
 {
     this._owner = document;
 }
 public ActiveDocumentEventArgs(Document oldDocument, Document newDocument)
 {
     this._oldDocument = oldDocument;
     this._newDocument = newDocument;
 }
Beispiel #14
0
 public WebFormsDesignerHost(Document document)
     : base(document)
 {
 }
Beispiel #15
0
 public AscxDocumentWindow(IServiceProvider provider, Document document, DocumentViewType initialView)
     : base(provider, document, initialView)
 {
 }
Beispiel #16
0
 public MobileDesignerHost(Document document)
     : base(document)
 {
 }