public MainWindow() { InitializeComponent(); var d = new WordTeacher(); d.Load("Data\\verbs.xml"); MainGrid.Children.Add(d.CreateView()); }
public WordTeacherRepeatWordController(WordTeacher wordTeacher) { Categories = new ObservableCollection<string>(); _wordTeacher = wordTeacher; ChangeCategoryCommand = new ActionCommand(n => _changeCategoryCommandCallback(n as string)); foreach (var category in _wordTeacher.GetCategories()) { Categories.Add(category); } }