コード例 #1
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            GestionMedecin fmedecin = new GestionMedecin();

            fmedecin.ShowDialog();
            var query =
                from m in Singleton.Instance.hopitalBDD.Medecins
                join s in Singleton.Instance.hopitalBDD.Specialites on m.idSpecialite equals s.idSpecialite
                select new { m.idMedecin, s.descSpecialite, m.prenom, m.nom };

            dgMedecin.DataContext = query.ToList();
        }
コード例 #2
0
        private void MenuItem_Click(object sender, RoutedEventArgs e)
        {
            GestionMedecin fmedecin = new GestionMedecin();

            fmedecin.ShowDialog();
        }