예제 #1
0
 private static void ProcessCustomFilters(List <string[]> filters)
 {
     for (int i = 0; i < _renameFiles.Count; i++)
     {
         foreach (string[] filter in filters)
         {
             _renameFiles[i] = FilterApplicator.CustomFilter(_renameFiles[i], filter[0], filter[1]);
         }
     }
 }
예제 #2
0
        private static void ProcessDefaultFilters(List <DefaultFilters> filters)
        {
            for (int i = 0; i < _renameFiles.Count; i++)
            {
                foreach (DefaultFilters filter in filters)
                {
                    switch (filter)
                    {
                    case DefaultFilters.ReplacePeriods:
                        _renameFiles[i] = FilterApplicator.ReplacePeriods(_renameFiles[i]);
                        break;

                    case DefaultFilters.CapitalizeAll:
                        _renameFiles[i] = FilterApplicator.CapitalizeAll(_renameFiles[i]);
                        break;

                    case DefaultFilters.CapitalizeKey:
                        _renameFiles[i] = FilterApplicator.CapitalizeKey(_renameFiles[i]);
                        break;
                    }
                }
            }
        }