Beispiel #1
0
 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();
 }
Beispiel #2
0
 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();
 }
Beispiel #4
0
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);
            Model.Parking       parkingModel = new Model.Parking();
            ViewModel.ParkingVM vm           = new ViewModel.ParkingVM(parkingModel);
            View.ParkingBonView parkingView  = new View.ParkingBonView();

            parkingView.DataContext = vm;
            parkingView.Show();
        }
Beispiel #5
0
        protected override void OnStartup(StartupEventArgs e)
        {
            DateTime nu = DateTime.Now;

            Model.Parkeerbon deBon             = new Model.Parkeerbon(nu, nu, nu, 0);
            ViewModel.ParkeerbonMetValuesVM vm = new ViewModel.ParkeerbonMetValuesVM(deBon);
            View.ParkingBonView             mijnParkingBonView = new View.ParkingBonView();

            mijnParkingBonView.Closing    += vm.OnWindowClosing;
            mijnParkingBonView.DataContext = vm;
            mijnParkingBonView.Show();
        }