private void CreateDocument() { var document = new OpenDocumentViewModel(this, null); this.currentDocumentViewModel = document; this.openDocuments.Add(document); }
public void OpenDocument(DocumentViewModel source) { if (source.IsFolder) { return; } var doc = new OpenDocumentViewModel(this, source); this.openDocuments.Add(doc); this.CurrentDocumentViewModel = doc; }