Exemple #1
0
 public MainWindow()
 {
     _controller = new Controller.Controller();
     InitializeComponent();
     ListCompanies.ItemsSource = _controller.ViewAllCompanies();
     foreach (Model.TrafficCompany _TrafficCompany in _controller.ViewAllTrafficCompanies())
     {
         ComboBoxTrafficCompany.Items.Add(_TrafficCompany.Name);
     }
     ComboBoxTrafficCompany.Items.Add("Vis alle");
 }
 public viewVehicles()
 {
     _controller = new Controller.Controller();
     InitializeComponent();
     ListVehicles.ItemsSource = _controller.ViewVehiclesFromCVR(MainWindow.selectedCompany);
 }