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

            InitializeComponent();
            DataContext = Pattern = viewModel.Clone();
            _parent     = parent;
            Loaded     += PatternDialog_Loaded;
        }