4 writes to _tablets
PresentationCore (4)
System\Windows\Input\Stylus\Wisp\WispTabletDeviceCollection.cs (4)
385
_tablets
= tablets; // set updated tabletdevice array
551
_tablets
= newTablets;
572
_tablets
= tablets;
625
_tablets
= null;
42 references to _tablets
PresentationCore (42)
System\Windows\Input\Stylus\Wisp\WispTabletDeviceCollection.cs (42)
180
ObjectDisposedException.ThrowIf(
_tablets
== null, typeof(TabletDeviceCollection));
262
PenThread penThread =
_tablets
.Length > 0 ?
_tablets
[0].As<WispTabletDevice>().PenThread :
310
if (tabletsIndex <
_tablets
.Length &&
_tablets
[tabletsIndex] != null &&
_tablets
[tabletsIndex].Id == id)
312
tablets[tabletsIndex] =
_tablets
[tabletsIndex];
313
_tablets
[tabletsIndex] = null; // clear to ignore on cleanup pass.
320
for (uint i = 0; i <
_tablets
.Length; i++)
322
if (
_tablets
[i] != null &&
_tablets
[i].Id == id)
324
tablet =
_tablets
[i];
325
_tablets
[i] = null; // clear it so we don't dispose it.
359
if (unchangedTabletCount ==
_tablets
.Length &&
371
Array.Copy(tablets, 0,
_tablets
, 0, count);
386
TabletDevices = new List<TabletDevice>(
_tablets
);
400
ObjectDisposedException.ThrowIf(
_tablets
== null, typeof(TabletDeviceCollection));
410
PenThread penThread =
_tablets
.Length > 0 ?
_tablets
[0].As<WispTabletDevice>().PenThread :
437
for (uint i = 0; i <
_tablets
.Length; i++)
440
if (
_tablets
[i].Id == tabletInfo.Id)
463
if (tabletIndex <=
_tablets
.Length)
503
ObjectDisposedException.ThrowIf(
_tablets
== null, typeof(TabletDeviceCollection));
524
if (tabletIndex >=
_tablets
.Length)
546
uint postCopyCount = (uint)
_tablets
.Length - index;
548
Array.Copy(
_tablets
, 0, newTablets, 0, preCopyCount);
550
Array.Copy(
_tablets
, index, newTablets, index+1, postCopyCount);
552
TabletDevices = new List<TabletDevice>(
_tablets
);
562
WispTabletDevice removeTablet =
_tablets
[index].As<WispTabletDevice>();
564
TabletDevice[] tablets = new TabletDevice[
_tablets
.Length - 1];
567
uint postCopyCount = (uint)
_tablets
.Length - index - 1;
569
Array.Copy(
_tablets
, 0, tablets, 0, preCopyCount);
570
Array.Copy(
_tablets
, index+1, tablets, index, postCopyCount);
573
TabletDevices = new List<TabletDevice>(
_tablets
);
590
ObjectDisposedException.ThrowIf(
_tablets
== null, typeof(TabletDeviceCollection));
592
for (int iTablet = 0, cTablets =
_tablets
.Length; iTablet < cTablets; iTablet++)
594
WispTabletDevice tablet =
_tablets
[iTablet].As<WispTabletDevice>();
606
if (
_tablets
!= null)
608
for (int iTablet = 0, cTablets =
_tablets
.Length; iTablet < cTablets; iTablet++)
610
if (
_tablets
[iTablet] != null)
612
WispTabletDevice removedTablet =
_tablets
[iTablet].TabletDeviceImpl.As<WispTabletDevice>();
665
foreach (TabletDevice tablet in
_tablets
)