Torna al Thread
private void Window_Loaded(object sender, RoutedEventArgs e)
{
MyApp.myDataSet myDataSet = ((MyApp.myDataSet)(this.FindResource("myDataSet")));
// Carica i dati nella tabella categorie. Se necessario, è possibile modificare questo codice.
MyApp.myDataSetTableAdapters.categorieTableAdapter myDataSetcategorieTableAdapter = new MyApp.myDataSetTableAdapters.categorieTableAdapter();
myDataSetcategorieTableAdapter.FillByPadre(myDataSet.categorie);
System.Windows.Data.CollectionViewSource categorieViewSource = ((System.Windows.Data.CollectionViewSource)(this.FindResource("categorieViewSource")));
categorieViewSource.View.MoveCurrentToFirst();
}