protected override void OnStartup(StartupEventArgs e) { base.OnStartup(e); ViewModel.ParkingBonVM vm = new ViewModel.ParkingBonVM(new Model.Bon()); View.ParkingBonView view = new View.ParkingBonView(); view.DataContext = vm; view.Show(); }
protected override void OnStartup(StartupEventArgs e) { base.OnStartup(e); Model.ParkingBon model = new Model.ParkingBon(); ViewModel.ParkingBonVM vm = new ViewModel.ParkingBonVM(model); View.ParkingBonView mijnView = new View.ParkingBonView(); mijnView.DataContext = vm; mijnView.Show(); }
protected override void OnStartup(StartupEventArgs e) { base.OnStartup(e); Model.ParkeerBon parkeerBon = new Model.ParkeerBon(); ViewModel.ParkingBonVM PB = new ViewModel.ParkingBonVM(parkeerBon); View.ParkingBonView parkingBonView = new View.ParkingBonView(); parkingBonView.DataContext = PB; parkingBonView.Show(); }