private void Enlist <T>(string label, Func <T> constructor) where T : ComparisonsListBase { _enlisteds.Add(_enlisteds.Count, constructor); ListNames.Add(label); App.Current.SetTemplate <T, JsComparerTable>(); }
public void AddList(string listName, List <string> words) { ObservableVarList <string> wordList = new ObservableVarList <string>($"Words.Lists.{listName}"); wordList.AddRange(words); ListNames.Add(listName); WordsLists.Add(listName, wordList); }