Пример #1
0
        private void MarquesList()
        {
            Mq = new MarquesMVVM();
            ExamensEntities MyEntity = new ExamensEntities();
            var             data     = (from mqt in MyEntity.Marques select mqt).ToList();

            Mq.LMarques = new ObservableCollection <Marques>(data);
        }
Пример #2
0
        private void InitVoituresList()
        {
            Vt = new VoituresMVVM();
            ExamensEntities MyEntity = new ExamensEntities();
            var             data     = (from clt in MyEntity.Voitures select clt).ToList();

            Vt.LvVoitures = new ObservableCollection <Voitures>(data);
        }
Пример #3
0
        private void ListeMarques_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            ListView        lm       = sender as ListView;
            Marques         mqt      = lm.SelectedItem as Marques;
            var             mqid     = mqt.MarqueId;
            ExamensEntities MyEntity = new ExamensEntities();

            Mq.SelectedMarques = (from clte in MyEntity.Marques where clte.MarqueId == mqt.MarqueId select clte).First();
        }