public EventManager(Sensor.SensorManager snrmgr) { // SSHMC01Entities1 db = new SSHMC01Entities1(); foreach (Sensor.SensorBase snr in snrmgr.getAllDeviceEnum()) { snr.OnDegreeChanged += new Sensor.OnDegreeChangedHandler(snr_OnDegreeChanged); } }