Exemple #1
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            MainWindow.mf.Source = new Uri("Pages/AddNewCarPage.xaml", UriKind.RelativeOrAbsolute);
            AddNewCarPage ap = new AddNewCarPage();

            MainWindow.mf.NavigationService.Navigate(ap);
        }
        public AddNewCarPage()
        {
            InitializeComponent();

            List <TablesManufacturer> lct       = new List <TablesManufacturer>();
            List <TablesModel>        modelLct  = new List <TablesModel>();
            List <TablesSNPrefix>     prefixLct = new List <TablesSNPrefix>();

            lct = AddNewCarPage.GetManufactList();
            ManufactList.ItemsSource = lct;

            modelLct = AddNewCarPage.GetModelList();
            ModelList.ItemsSource = modelLct;

            prefixLct = AddNewCarPage.GetPrefixList();
            PrefixList.ItemsSource = prefixLct;
        }