public EV3Model (bool useDummy) { Motors = new MotorModelList (useDummy); Sensors = new SensorModelList (useDummy); if (!useDummy) { detector = new SensorDetector (); detector.SensorAttached += HandleSensorAttached; detector.SensorDetached += HandleSensorDetached; } }
public EV3Model(bool useDummy) { Motors = new MotorModelList(useDummy); Sensors = new SensorModelList(useDummy); if (!useDummy) { detector = new SensorDetector(); detector.SensorAttached += HandleSensorAttached; detector.SensorDetached += HandleSensorDetached; } }