protected override void OnLoad(EventArgs e) { base.OnLoad(e); _database = new MemoryMovieDatabase(); RefreshUI(); }
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(); }