Example #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;
			} 
		}
Example #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;
     }
 }