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