コード例 #1
0
        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();
        }
コード例 #2
0
 public ColorizeAvalonEdit(TextModel model, ConspEditorFastMainViewModel vm)
 {
     _model = model;
     _vm = vm;
 }
コード例 #3
0
 public ReadOnlyProvider(TextModel textModel)
 {
     _textModel = textModel;
 }