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