示例#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();
 }
示例#2
0
文件: App.xaml.cs 项目: Hapkin/csharp
 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();
 }
示例#3
0
 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();
 }