public SinapseDocumentView(Workbench workbench, ISinapseDocument document) { this.workbench = workbench; this.document = document; if (document != null) { this.document.ContentChanged += new EventHandler(document_DocumentChanged); this.document.FileSaved += new EventHandler(document_FileSaved); saveFileDialog = new SaveFileDialog(); saveFileDialog.DefaultExt = DocumentManager.GetExtension(document.GetType()); } }
public static Type GetViewer(ISinapseDocument document) { return(GetViewer(DocumentManager.GetExtension(document.GetType()))); }