コード例 #1
0
ファイル: EV3Model.cs プロジェクト: tudor-olariu/monoev3
		public EV3Model (bool useDummy)
		{
			Motors = new MotorModelList (useDummy);
			Sensors = new SensorModelList (useDummy);
			if (!useDummy) 
			{
				detector = new SensorDetector ();
				detector.SensorAttached += HandleSensorAttached;
				detector.SensorDetached += HandleSensorDetached;
			} 
		}
コード例 #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;
     }
 }