示例#1
0
        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());
            }
        }
示例#2
0
 public static Type GetViewer(ISinapseDocument document)
 {
     return(GetViewer(DocumentManager.GetExtension(document.GetType())));
 }