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

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

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

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