Example #1
0
        public MainWindow()
        {
            InitializeComponent();
            AccuBatteryController accuBatteryController = new AccuBatteryController(this);
            DoorController        doorController        = new DoorController(this);

            nextCar = new Car(accuBatteryController, doorController, this);
        }
Example #2
0
        public MainWindow()
        {
            InitializeComponent();

            AccubatteryController accubatterryController = new AccubatteryController();
            DoorController        doorController         = new DoorController();

            nextCar = new Car();
            nextCar.setAccubaterryController(accubatterryController);
            nextCar.setDoorController(doorController);
        }
Example #3
0
 public void setDoorController(DoorController doorController)
 {
     this.doorController = doorController;
 }