コード例 #1
0
ファイル: MainWindow.xaml.cs プロジェクト: Egorbv/WPFTeacher
        public MainWindow()
        {
            InitializeComponent();

			var d = new WordTeacher();
			d.Load("Data\\verbs.xml");

			MainGrid.Children.Add(d.CreateView());
        }
コード例 #2
0
		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);
			}
		}