예제 #1
0
        private void brandComboBox_Changed(object sender, RoutedEventArgs e)
        {
            modelTextblock.Visibility = Visibility.Visible;
            modelComboBox.Visibility  = Visibility.Visible;
            Modele.Clear();
            Years.Clear();
            List <string> modele = new List <string>();

            try
            {
                modele = (from m in _db.import where m.make == MyItem select m.model).Distinct().ToList();
                foreach (var i in modele)
                {
                    Modele.Add(i);
                    //Console.WriteLine(i);
                }
                NotifyPropertyChanged("Modele");
            }
            catch
            {
                Console.WriteLine("ex1");
                return;
            }

            //Console.WriteLine(item.Content.ToString());


            //modelComboBox.ItemsSource = modele;
        }