예제 #1
0
 private void IniMyStuff() {
     //tänne kaikki tarvittava alustukset
     ctx = new BookShopEntities();
     ctx.Books.Load();
     localBooks = ctx.Books.Local;
     cbCountries.DataContext = localBooks.Select(n => n.country).Distinct();
     cbCountries.Visibility = Visibility.Visible;
     //view kirjojen filtterointia varte
     view = CollectionViewSource.GetDefaultView(localBooks);
 }
예제 #2
0
 private void IniMyStuff()
 {
     //tänne kaikki tarvittava alustukset
     ctx = new BookShopEntities();
     ctx.Books.Load();
     localBooks = ctx.Books.Local;
     cbCountries.DataContext = localBooks.Select(n => n.country).Distinct();
     cbCountries.Visibility  = Visibility.Visible;
     //view kirjojen filtterointia varte
     view = CollectionViewSource.GetDefaultView(localBooks);
 }