private void PopulateProperties(string className, int depth) { if (className.Length > 0 && depth < 30 && !ActivityClassNames.Contains(className)) { if (_db.FindClass(className, out ClassRecord cr)) { foreach (var pd in cr._td.Properties) { if (IsInheritedProperty(pd)) { AddProperty(DecoratePropertyName(pd, cr), pd); } } PopulateProperties(cr.SuperClassName, depth + 1); } } }
private bool CheckActivity(string name, int depth) { if (name.Length > 0 && depth < 30) { if (ActivityClassNames.Contains(name)) { return(true); } if (_db.FindClass(name, out ClassRecord cr)) { if (CheckActivity(cr.SuperClassName, depth + 1)) { return(true); } } } return(false); }