コード例 #1
0
 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);
         }
     }
 }
コード例 #2
0
 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);
 }