public void OpenMaterial(Guid materialId) { var dc = DataContext as ConspEditorFastMainViewModel; if (dc == null) throw new Exception("Data context is null"); _textModel = new TextModel(_eventAggregator, _materialManager, materialId, _blockManager, _particlesManager, textEditor, _container, _settingsService); dc.PanelId = materialId; dc.PanelName = _textModel.Name; UpdateColorizer(); }
public ColorizeAvalonEdit(TextModel model, ConspEditorFastMainViewModel vm) { _model = model; _vm = vm; }
public ReadOnlyProvider(TextModel textModel) { _textModel = textModel; }