Пример #1
0
        public MainWindow()
        {
            InitializeComponent();
            AccuBatteryController accuBatteryController = new AccuBatteryController(this);
            DoorController        doorController        = new DoorController(this);

            nextCar = new Car(accuBatteryController, doorController, this);
        }
Пример #2
0
 public Car(DoorController doorController, AccuBatteryController accuBatteryController, OnCarEngineStateChanged callback)
 {
     this.doorController        = doorController;
     this.accuBatteryController = accuBatteryController;
     this.callback = callback;
 }