예제 #1
0
        private void CreateDocument()
        {
            var document = new OpenDocumentViewModel(this, null);

            this.currentDocumentViewModel = document;
            this.openDocuments.Add(document);
        }
예제 #2
0
        public void OpenDocument(DocumentViewModel source)
        {
            if (source.IsFolder)
            {
                return;
            }

            var doc = new OpenDocumentViewModel(this, source);

            this.openDocuments.Add(doc);
            this.CurrentDocumentViewModel = doc;
        }