public SubChallengeView(SubChallengeData data, SubChallengeProgress progress)
 {
     Data = data;
     Progress = progress;
     infoViews = new List<SubChallengeInfoView>();
     progress.PropertyChanged += Progress_PropertyChanged;
 }
 public void toogleSubChallengeProgress(SubChallengeProgress progress)
 {
     if (progress == null)
     {
         return;
     }
     switch (progress.CurrentCompletion)
     {
         case SubChallengeCompletionType.Not:
             progress.CurrentCompletion = SubChallengeCompletionType.Manual;
             break;
         case SubChallengeCompletionType.Auto:
         case SubChallengeCompletionType.Manual:
             progress.CurrentCompletion = SubChallengeCompletionType.Not;
             break;
     }
     hasChanged = true;
 }
 public void AddSubChallengeProgress(SubChallengeProgress subProgress)
 {
     if (subProgress == null)
     {
         return;
     }
     subChallengesProgress.Add(subProgress);
     subProgress.PropertyChanged += SubProgress_PropertyChanged;
 }