Promote Device

This commit is contained in:
Matt Nadareski
2020-09-02 17:09:19 -07:00
parent 0d80e30bba
commit 007510cc0f
13 changed files with 551 additions and 279 deletions

View File

@@ -119,6 +119,12 @@ namespace SabreTools.Library.DatFiles
[JsonIgnore]
public long ConfigurationCount { get; private set; } = 0;
/// <summary>
/// Number of Device items
/// </summary>
[JsonIgnore]
public long DeviceCount { get; private set; } = 0;
/// <summary>
/// Number of Device Reference items
/// </summary>
@@ -544,6 +550,9 @@ namespace SabreTools.Library.DatFiles
case ItemType.Configuration:
ConfigurationCount++;
break;
case ItemType.Device:
DeviceCount++;
break;
case ItemType.DeviceReference:
DeviceReferenceCount++;
break;
@@ -709,6 +718,9 @@ namespace SabreTools.Library.DatFiles
case ItemType.Configuration:
ConfigurationCount--;
break;
case ItemType.Device:
DeviceCount--;
break;
case ItemType.DeviceReference:
DeviceReferenceCount--;
break;