Example #1
0
        public LearnView()
        {
            InitializeComponent();

            var db = new VerbsDbContext();

            _verbs = db.Verbs.ToArray();

            if (_verbs.Length == 0)
            {
                MessageTextBlock.Text = "Empty verbs database.";
                return;
            }

            Shuffle();
            _activeWord = 0;
            GetNextVerb();
        }
Example #2
0
 public AddView()
 {
     _db = new VerbsDbContext();
     InitializeComponent();
 }