Exemple #1
0
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            _database = new MemoryMovieDatabase();

            RefreshUI();
        }
Exemple #2
0
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            //Seed movies
            _movies = new MemoryMovieDatabase();
            var count = _movies.GetAll().Count();

            if (count == 0)
            {
                //MovieDatabaseExtensions.Seed (_movies);
                _movies.Seed();
            }

            UpdateUI();
        }