} // end Renamer constructor #endregion #region Methods #region RenameFiles public void RenameFiles() { PowerFileCollection powerFiles = new PowerFileCollection(_sFileNames); powerFiles.FileRenamed += new FileRenamedEventHandler(SendRenamedFileToLog); powerFiles.Sort(_sSortingOption, "ASC"); powerFiles.Rename(_sNamingOption, _sPrefix, _sSuffixMask, _bTestRun); Finished(this, powerFiles.NewFileNames); } // end RenameFiles
} // end RenamerProcess constructor #endregion #region Methods #region RenameFiles public void RenameFiles() { PowerFileCollection powerFiles = new PowerFileCollection(_sFileNames); powerFiles.FileRenamed += new FileRenamedEventHandler(SendRenamedFileToLog); if (_sNamingOption == "UNDO") { powerFiles.Rename(ref _sOldFileNames, _bTestRun); } // end if else { powerFiles.Sort(_sSortingOption, "ASC"); powerFiles.Rename(_sRenamingTemplate, _renamingType, _timeOffset, _bTestRun); } // end else Finished(this, powerFiles.NewFileNames); } // end RenameFiles