Exemple #1
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            gstBdd = new edfEntities();
            int numControleur = contro.id;

            var query = from cli in gstBdd.client
                        where cli.idcontroleur == numControleur
                        select new ClientPerso
            {
                IdControleur  = cli.idcontroleur,
                NomClient     = cli.nom,
                NumClient     = cli.identifiant,
                PrenomClient  = cli.prenom,
                AnceinReleve  = cli.ancienReleve,
                DernierReleve = cli.dernierReleve,
                Montant       = cli.dernierReleve - cli.ancienReleve
            };

            lstClients.ItemsSource = query.ToList();
        }
Exemple #2
0
 private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     gstBdd = new edfEntities();
     lstControleurs.ItemsSource = gstBdd.controleur.ToList();
 }
Exemple #3
0
 private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     gstBdd = new edfEntities();
 }