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(); }
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); }
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(); }
public AshxDocumentWindow(IServiceProvider provider, Document document) : base(provider, document) { }
public CodeDocumentWindow(IServiceProvider serviceProvider, Document document) : base(serviceProvider, document) { }
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) { }
void IDisposable.Dispose() { this._text = null; this._owner = null; }
public TextDocumentStorage(TextDocument owner) { this._owner = owner; }
void IEmbeddedDocumentStorage.SetContainerDocument(Microsoft.Matrix.Core.Documents.Document document) { this._owner = document; }
public ActiveDocumentEventArgs(Document oldDocument, Document newDocument) { this._oldDocument = oldDocument; this._newDocument = newDocument; }
public WebFormsDesignerHost(Document document) : base(document) { }
public AscxDocumentWindow(IServiceProvider provider, Document document, DocumentViewType initialView) : base(provider, document, initialView) { }
public MobileDesignerHost(Document document) : base(document) { }