コード例 #1
0
        private void Paises1_Loaded(object sender, RoutedEventArgs e)
        {
            db = new SIGACEntities();
            util_PaisesViewSource = ((CollectionViewSource)(this.FindResource("util_PaisesViewSource")));
            // Load data by setting the CollectionViewSource.Source property:
            var query = db.Util_Paises;

            util_PaisesViewSource.Source = query.ToList();
        }
コード例 #2
0
 private void Paises_form_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     db = null;
     util_PaisesViewSource = null;
 }