private static bool IsCategoryParentOf(AudioCategory toTest, AudioCategory parent) { for (var audioCategory = toTest; audioCategory != null; audioCategory = audioCategory.ParentCategory) { if (audioCategory == parent) { return(true); } } return(false); }
internal void _Initialize(AudioCategory categ) { Category = categ; _NormalizeSubItems(); }