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