private void Window_Loaded(object sender, RoutedEventArgs e) { gst = new edfEntities(); List <client> lesClientDuControleur = gst.client.ToList().FindAll(cl => cl.idcontroleur == leControlleur.id); var query = (from cl in lesClientDuControleur select new ClientPerso { Id = cl.identifiant, NomClient = cl.nom, PrenomClient = cl.prenom, AncienReleve = cl.ancienReleve, DerneirReleve = cl.dernierReleve, Consommation = cl.dernierReleve - cl.ancienReleve }).ToList(); lstClients.ItemsSource = query; }
private void Window_Loaded(object sender, RoutedEventArgs e) { gst = new edfEntities(); lstControleurs.ItemsSource = gst.controleur.ToList(); }
private void Window_Loaded(object sender, RoutedEventArgs e) { gst = new edfEntities(); }