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