internal StylusDevice UpdateStylusDevices(int tabletId, int stylusId) { if (_tablets == null) { throw new ObjectDisposedException("TabletDeviceCollection"); } for (int iTablet = 0, cTablets = _tablets.Length; iTablet < cTablets; iTablet++) { TabletDevice tablet = _tablets[iTablet]; if (tablet.Id == tabletId) { return(tablet.UpdateStylusDevices(stylusId)); } } return(null); }