Exemple #1
0
        public AffixDialogViewModel(Affix affix, DictionaryEditorViewModel parent)
        {
            _affix  = affix;
            _parent = parent;
            var vms = affix.Values.Select(a => new PossibilityViewModel {
                Value = a
            });

            Possibilities = new ObservableCollection <PossibilityViewModel>(vms);
            Name          = affix.Name;
        }
Exemple #2
0
 public PatternViewModel(
     DictionaryEditorViewModel parent,
     Pattern p,
     IReadOnlyDictionary <string, Affix> affixes)
 {
     _affixes  = affixes;
     _parent   = parent;
     Pattern   = p;
     _template = p.Template;
     SetParts(p);
 }