private void OnDocumentClosing(DocumentViewModel vm) { if (_documents.Contains(vm)) { _documents.Remove(vm); } }
public void OpenSourceFile(JadeData.Project.File file) { DocumentViewModel d = new DocumentViewModel(file.Name, "Test " + file.Name); _openDocuments.Add(d); SelectedDocument = d; }
internal void Add(DocumentViewModel doc) { _documents.Add(doc); }