public DictionaryEditor(SpellChecker spellChecker) { InitializeComponent(); DataContext = _viewModel = new DictionaryEditorViewModel(spellChecker); Loaded += DictionaryEditor_Loaded; KeyUp += DictionaryEditor_KeyUp; }
public AffixDialog(Affix affix, DictionaryEditorViewModel parent) { InitializeComponent(); DataContext = _viewModel = new AffixDialogViewModel(affix, parent); Closing += AffixDialog_Closing; _parent = parent; _oldName = affix.Name; }
public PatternDialog(PatternViewModel viewModel, DictionaryEditorViewModel parent) { _originalHashCode = viewModel.GetHashCode(); InitializeComponent(); DataContext = Pattern = viewModel.Clone(); _parent = parent; Loaded += PatternDialog_Loaded; }