Exemple #1
0
 public static void SetChildrenDone(this ProfileBehavior behavior)
 {
     behavior?.GetChildren()?.ForEach(b =>
     {
         (b as IEnhancedProfileBehavior)?.Done();
     });
 }
 public static void SetChildrenDone(this ProfileBehavior behavior)
 {
     behavior.GetChildren().ForEach(b =>
     {
         if (b is IEnhancedProfileBehavior)
         {
             (b as IEnhancedProfileBehavior).Done();
         }
     });
 }
Exemple #3
0
 public static bool AreChildrenDone(this ProfileBehavior behavior)
 {
     return(behavior?.GetChildren()?.All(b => b.IsDone) ?? false);
 }
Exemple #4
0
 public static void ResetChildren(this ProfileBehavior behavior)
 {
     behavior?.GetChildren()?.ForEach(b => b?.ResetCachedDone());
 }