public void RaiseActiveDocumentChanged(EditorViewModel editor) { var handler = ActiveDocumentChanged; if (handler != null) handler(this, new ActiveDocumentChangedEventArgs(editor)); }
public ActiveDocumentChangedEventArgs(EditorViewModel editor) { Editor = editor; }
public IDocument Create(string path) { var editor = new EditorViewModel(_propertyGrid, _extendedShell); editor.Open(path); return editor; }