/// <summary> /// Finds the child with the specified browse name. /// </summary> protected override BaseInstanceState FindChild( ISystemContext context, QualifiedName browseName, bool createOrReplace, BaseInstanceState replacement) { if (QualifiedName.IsNull(browseName)) { return null; } BaseInstanceState instance = null; switch (browseName.Name) { case Boiler.BrowseNames.LevelIndicator: { if (createOrReplace) { if (LevelIndicator == null) { if (replacement == null) { LevelIndicator = new LevelIndicatorState(this); } else { LevelIndicator = (LevelIndicatorState)replacement; } } } instance = LevelIndicator; break; } } if (instance != null) { return instance; } return base.FindChild(context, browseName, createOrReplace, replacement); }