Esempio n. 1
0
 public Add()
 {
     InitializeComponent();
     db = new SilpoEntities();
     category.ItemsSource = db.Categories.ToList();
     producer.ItemsSource = db.Producers.ToList();
 }
Esempio n. 2
0
 public MainWindow()
 {
     InitializeComponent();
     db = new SilpoEntities();
     List.ItemsSource = db.Products.ToList();
 }