private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            gst = new edfEntities();

            var lesClient = from cli in gst.client
                            where cli.idcontroleur == leCtrl.id
                            select new ClientPerso()
            {
                identifiant   = cli.identifiant,
                nom           = cli.nom,
                prenom        = cli.prenom,
                ancienReleve  = cli.ancienReleve,
                dernierReleve = cli.dernierReleve,
                total         = cli.dernierReleve - cli.ancienReleve
            };

            lstClients.ItemsSource = lesClient.ToList();
        }
 private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     gst = new edfEntities();
 }
Exemplo n.º 3
0
 private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     gst = new edfEntities();
     lstControleurs.ItemsSource = gst.controleur.ToList();
 }