I created custom items under the main treeview in Management client.
I want to get list of this items in SmartClient, so I used this code:
List ItemList = Configuration.Instance.GetItems();
foreach (Item item in ItemList)
GetMaps(item);
private void GetMaps(Item parent)
{
List<Item> itemsOnNextLevel = parent.GetChildren();
if (itemsOnNextLevel != null)
{
foreach (Item item in itemsOnNextLevel)
{
if (item.Properties.ContainsKey("MapPath"))
System.Windows.MessageBox.Show([item.Name](https://item.Name) + ", Path: " + item.Properties\["MapPath"\]);
if (item.HasChildren != [VideoOS.Platform.HasChildren.No](https://VideoOS.Platform.HasChildren.No))
GetMaps(item);
}
}
}
… but I can get only Devices - cameras, microphones, …
I tried to look into examples, but I could not find solution.
How can I get custom items??