public CodeEditorWindow(ICodeEditorViewModel viewModel) { InitializeComponent(); DataContext = viewModel; _viewModel = viewModel; viewModel.PropertyChanged += OnViewModelPropertyChanged; }
public CodeEditorService( [NotNull] ICodeEditorViewModel codeEditorViewModel, [NotNull] ICodeEditorWindowFactory windowFactory) { if (codeEditorViewModel == null) { throw new ArgumentNullException(nameof(codeEditorViewModel)); } if (windowFactory == null) { throw new ArgumentNullException(nameof(windowFactory)); } _codeEditorViewModel = codeEditorViewModel; _windowFactory = windowFactory; }
public IDialogWindow CreateDialogFor(ICodeEditorViewModel viewModel) { return(new CodeEditorWindow(viewModel)); }
public IDialogWindow CreateDialogFor(ICodeEditorViewModel viewModel) { return new CodeEditorWindow(viewModel); }