4 writes to _tablets
PresentationCore (4)
System\Windows\Input\Stylus\Wisp\WispTabletDeviceCollection.cs (4)
389_tablets = tablets; // set updated tabletdevice array 555_tablets = newTablets; 576_tablets = tablets; 629_tablets = null;
42 references to _tablets
PresentationCore (42)
System\Windows\Input\Stylus\Wisp\WispTabletDeviceCollection.cs (42)
184ObjectDisposedException.ThrowIf(_tablets == null, typeof(TabletDeviceCollection)); 266PenThread penThread = _tablets.Length > 0 ? _tablets[0].As<WispTabletDevice>().PenThread : 314if (tabletsIndex < _tablets.Length && _tablets[tabletsIndex] != null && _tablets[tabletsIndex].Id == id) 316tablets[tabletsIndex] = _tablets[tabletsIndex]; 317_tablets[tabletsIndex] = null; // clear to ignore on cleanup pass. 324for (uint i = 0; i < _tablets.Length; i++) 326if (_tablets[i] != null && _tablets[i].Id == id) 328tablet = _tablets[i]; 329_tablets[i] = null; // clear it so we don't dispose it. 363if (unchangedTabletCount == _tablets.Length && 375Array.Copy(tablets, 0, _tablets, 0, count); 390TabletDevices = new List<TabletDevice>(_tablets); 404ObjectDisposedException.ThrowIf(_tablets == null, typeof(TabletDeviceCollection)); 414PenThread penThread = _tablets.Length > 0 ? _tablets[0].As<WispTabletDevice>().PenThread : 441for (uint i = 0; i < _tablets.Length; i++) 444if (_tablets[i].Id == tabletInfo.Id) 467if (tabletIndex <= _tablets.Length) 507ObjectDisposedException.ThrowIf(_tablets == null, typeof(TabletDeviceCollection)); 528if (tabletIndex >= _tablets.Length) 550uint postCopyCount = (uint)_tablets.Length - index; 552Array.Copy(_tablets, 0, newTablets, 0, preCopyCount); 554Array.Copy(_tablets, index, newTablets, index+1, postCopyCount); 556TabletDevices = new List<TabletDevice>(_tablets); 566WispTabletDevice removeTablet = _tablets[index].As<WispTabletDevice>(); 568TabletDevice[] tablets = new TabletDevice[_tablets.Length - 1]; 571uint postCopyCount = (uint)_tablets.Length - index - 1; 573Array.Copy(_tablets, 0, tablets, 0, preCopyCount); 574Array.Copy(_tablets, index+1, tablets, index, postCopyCount); 577TabletDevices = new List<TabletDevice>(_tablets); 594ObjectDisposedException.ThrowIf(_tablets == null, typeof(TabletDeviceCollection)); 596for (int iTablet = 0, cTablets = _tablets.Length; iTablet < cTablets; iTablet++) 598WispTabletDevice tablet = _tablets[iTablet].As<WispTabletDevice>(); 610if (_tablets != null) 612for (int iTablet = 0, cTablets = _tablets.Length; iTablet < cTablets; iTablet++) 614if (_tablets[iTablet] != null) 616WispTabletDevice removedTablet = _tablets[iTablet].TabletDeviceImpl.As<WispTabletDevice>(); 669foreach (TabletDevice tablet in _tablets)