示例#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);
 }