4 writes to _tablets
PresentationCore (4)
System\Windows\Input\Stylus\Wisp\WispTabletDeviceCollection.cs (4)
383_tablets = tablets; // set updated tabletdevice array 549_tablets = newTablets; 570_tablets = tablets; 623_tablets = null;
42 references to _tablets
PresentationCore (42)
System\Windows\Input\Stylus\Wisp\WispTabletDeviceCollection.cs (42)
178ObjectDisposedException.ThrowIf(_tablets == null, typeof(TabletDeviceCollection)); 260PenThread penThread = _tablets.Length > 0 ? _tablets[0].As<WispTabletDevice>().PenThread : 308if (tabletsIndex < _tablets.Length && _tablets[tabletsIndex] != null && _tablets[tabletsIndex].Id == id) 310tablets[tabletsIndex] = _tablets[tabletsIndex]; 311_tablets[tabletsIndex] = null; // clear to ignore on cleanup pass. 318for (uint i = 0; i < _tablets.Length; i++) 320if (_tablets[i] != null && _tablets[i].Id == id) 322tablet = _tablets[i]; 323_tablets[i] = null; // clear it so we don't dispose it. 357if (unchangedTabletCount == _tablets.Length && 369Array.Copy(tablets, 0, _tablets, 0, count); 384TabletDevices = new List<TabletDevice>(_tablets); 398ObjectDisposedException.ThrowIf(_tablets == null, typeof(TabletDeviceCollection)); 408PenThread penThread = _tablets.Length > 0 ? _tablets[0].As<WispTabletDevice>().PenThread : 435for (uint i = 0; i < _tablets.Length; i++) 438if (_tablets[i].Id == tabletInfo.Id) 461if (tabletIndex <= _tablets.Length) 501ObjectDisposedException.ThrowIf(_tablets == null, typeof(TabletDeviceCollection)); 522if (tabletIndex >= _tablets.Length) 544uint postCopyCount = (uint)_tablets.Length - index; 546Array.Copy(_tablets, 0, newTablets, 0, preCopyCount); 548Array.Copy(_tablets, index, newTablets, index+1, postCopyCount); 550TabletDevices = new List<TabletDevice>(_tablets); 560WispTabletDevice removeTablet = _tablets[index].As<WispTabletDevice>(); 562TabletDevice[] tablets = new TabletDevice[_tablets.Length - 1]; 565uint postCopyCount = (uint)_tablets.Length - index - 1; 567Array.Copy(_tablets, 0, tablets, 0, preCopyCount); 568Array.Copy(_tablets, index+1, tablets, index, postCopyCount); 571TabletDevices = new List<TabletDevice>(_tablets); 588ObjectDisposedException.ThrowIf(_tablets == null, typeof(TabletDeviceCollection)); 590for (int iTablet = 0, cTablets = _tablets.Length; iTablet < cTablets; iTablet++) 592WispTabletDevice tablet = _tablets[iTablet].As<WispTabletDevice>(); 604if (_tablets != null) 606for (int iTablet = 0, cTablets = _tablets.Length; iTablet < cTablets; iTablet++) 608if (_tablets[iTablet] != null) 610WispTabletDevice removedTablet = _tablets[iTablet].TabletDeviceImpl.As<WispTabletDevice>(); 663foreach (TabletDevice tablet in _tablets)