4 writes to _tablets
PresentationCore (4)
System\Windows\Input\Stylus\Wisp\WispTabletDeviceCollection.cs (4)
384
_tablets
= tablets; // set updated tabletdevice array
550
_tablets
= newTablets;
571
_tablets
= tablets;
624
_tablets
= null;
42 references to _tablets
PresentationCore (42)
System\Windows\Input\Stylus\Wisp\WispTabletDeviceCollection.cs (42)
179
ObjectDisposedException.ThrowIf(
_tablets
== null, typeof(TabletDeviceCollection));
261
PenThread penThread =
_tablets
.Length > 0 ?
_tablets
[0].As<WispTabletDevice>().PenThread :
309
if (tabletsIndex <
_tablets
.Length &&
_tablets
[tabletsIndex] != null &&
_tablets
[tabletsIndex].Id == id)
311
tablets[tabletsIndex] =
_tablets
[tabletsIndex];
312
_tablets
[tabletsIndex] = null; // clear to ignore on cleanup pass.
319
for (uint i = 0; i <
_tablets
.Length; i++)
321
if (
_tablets
[i] != null &&
_tablets
[i].Id == id)
323
tablet =
_tablets
[i];
324
_tablets
[i] = null; // clear it so we don't dispose it.
358
if (unchangedTabletCount ==
_tablets
.Length &&
370
Array.Copy(tablets, 0,
_tablets
, 0, count);
385
TabletDevices = new List<TabletDevice>(
_tablets
);
399
ObjectDisposedException.ThrowIf(
_tablets
== null, typeof(TabletDeviceCollection));
409
PenThread penThread =
_tablets
.Length > 0 ?
_tablets
[0].As<WispTabletDevice>().PenThread :
436
for (uint i = 0; i <
_tablets
.Length; i++)
439
if (
_tablets
[i].Id == tabletInfo.Id)
462
if (tabletIndex <=
_tablets
.Length)
502
ObjectDisposedException.ThrowIf(
_tablets
== null, typeof(TabletDeviceCollection));
523
if (tabletIndex >=
_tablets
.Length)
545
uint postCopyCount = (uint)
_tablets
.Length - index;
547
Array.Copy(
_tablets
, 0, newTablets, 0, preCopyCount);
549
Array.Copy(
_tablets
, index, newTablets, index+1, postCopyCount);
551
TabletDevices = new List<TabletDevice>(
_tablets
);
561
WispTabletDevice removeTablet =
_tablets
[index].As<WispTabletDevice>();
563
TabletDevice[] tablets = new TabletDevice[
_tablets
.Length - 1];
566
uint postCopyCount = (uint)
_tablets
.Length - index - 1;
568
Array.Copy(
_tablets
, 0, tablets, 0, preCopyCount);
569
Array.Copy(
_tablets
, index+1, tablets, index, postCopyCount);
572
TabletDevices = new List<TabletDevice>(
_tablets
);
589
ObjectDisposedException.ThrowIf(
_tablets
== null, typeof(TabletDeviceCollection));
591
for (int iTablet = 0, cTablets =
_tablets
.Length; iTablet < cTablets; iTablet++)
593
WispTabletDevice tablet =
_tablets
[iTablet].As<WispTabletDevice>();
605
if (
_tablets
!= null)
607
for (int iTablet = 0, cTablets =
_tablets
.Length; iTablet < cTablets; iTablet++)
609
if (
_tablets
[iTablet] != null)
611
WispTabletDevice removedTablet =
_tablets
[iTablet].TabletDeviceImpl.As<WispTabletDevice>();
664
foreach (TabletDevice tablet in
_tablets
)