Esempio n. 1
0
 void App_Startup(object sender, StartupEventArgs e)
 {
     Model             = new MySimulatorModel();
     DashVM            = new DashBoardViewModel(Model);
     MapViewModel      = new MapViewModel(Model);
     ControlsViewModel = new ControlsViewModel(Model);
     ConnectViewModel  = new ConnectWindowViewModel(Model);
     ErrorViewModel    = new ErrorViewModel(Model);
 }
Esempio n. 2
0
 //Constructor that intizalizing all the view models with the given model.
 public MainViewModel(IFlightGearModel flightGearModel)
 {
     this.dashVM       = new DashBoardViewModel(flightGearModel);
     this.mapVM        = new MapViewModel(flightGearModel);
     this.controllerVM = new ControllersViewModel(flightGearModel);
 }