private int getIdSensor(KinectSensor s) { for (int i = 0; i < sensors.Count; i++) { if (s.Equals(sensors[i])) return i; } return -1; }