/// <summary> /// Initialises the device description. /// </summary> protected override void Initialise() { base.Initialise(); mdDevices = new DevicesDescription(this); midIcons = new IconsDescription(this); mdDeviceServices = new DeviceServicesDescription(this, this); }
/// <summary> /// Uses an XML node for this description. /// </summary> /// <param name="reader">The XML reader to use the node from.</param> /// <param name="lastNodeName">The last node name.</param> /// <returns>True if the node was processed false otherwise.</returns> protected override bool UseNode(XmlTextReader reader, string lastNodeName) { if (DeviceServicesDescription.IsStartNodeFor(reader)) { mdDeviceServices.AddItemsFrom(reader); return(true); } else if (DevicesDescription.IsStartNodeFor(reader)) { mdDevices.AddItemsFrom(reader); return(true); } else if (IconsDescription.IsStartNodeFor(reader)) { midIcons.AddItemsFrom(reader); return(true); } return(false); }