public void PutParameter(string[] path, AnalyticRuleType type)
 {
     if (path.Length == 0)
     {
         children.Add(new RuleEvaluationChronologyViewModel(
                          EvaluationCache.Get(vin).GetRuleEvaluationChronology(type)));
     }
     else
     {
         if (!children.Any(f =>
                           f is EvaluationFolderViewModel &&
                           ((EvaluationFolderViewModel)f).Key == path[0]))
         {
             EvaluationFolderViewModel newFolder =
                 new EvaluationFolderViewModel(path[0], vin);
             newFolder.PutParameter(GetSubPath(path), type);
             children.Add(newFolder);
         }
         else
         {
             EvaluationFolderViewModel folder =
                 children.First(f =>
                                f is EvaluationFolderViewModel &&
                                ((EvaluationFolderViewModel)f).Key == path[0])
                 as EvaluationFolderViewModel;
             folder.PutParameter(GetSubPath(path), type);
         }
     }
     OnPropertyChanged("Children");
     RefreshSummaryMark();
 }
 public EvaluationRootFolderViewModel(VehicleViewModel vehicle)
     : base("root", vehicle.Vin.ToUpper())
 {
     Children.Add(new VehicleEvaluationRootFolderViewModel(
                      EvaluationCache.Get(vehicle.Vin), vehicle));
 }