protected override string[] GetInstantiatedAndRemaining(CustomListItem currentListItem) { if (forCount != null) { XPathNodeIterator checkCountChildren = forCount.Select("Components/Component/Component[@ID='" + currentListItem.getID() + "']"); return new String[] { checkCountChildren.Count.ToString(), (1-checkCountChildren.Count).ToString() }; // either 1 0 or 0 1 } return new String[] { "n/a", "n/a" }; }
protected override string[] GetInstantiatedAndRemaining(CustomListItem currentListItem) { XPathNodeIterator checkCountChildren = forCount.Select("Components/Component/Component[@ClassID='" + currentListItem.getID() + "']"); return new String[] { checkCountChildren.Count.ToString(), amountToAddUpDown.Value.ToString() }; // use up down }