/// <summary> /// Set the target file for comparison /// </summary> /// <param name="filePath">Absolute path to the target file for comparison</param> public void TargetFileName(string filePath, string documentPassword = "") { //Combine target file path var targetFile = filePath.Replace("\\", "\\\\"); targetFile = Path.Combine(_settings.RootStoragePath, targetFile); //Open target document _target = new ComparingDocument(targetFile, documentPassword); }
/// <summary> /// Set the source file for comparison /// </summary> /// <param name="filePath">Absolute path to the source file for comparison</param> public void SourceFileName(string filePath, string documentPassword = "") { //Combine source file path var sourceFile = filePath.Replace("\\", "\\\\"); sourceFile = Path.Combine(_settings.RootStoragePath, sourceFile); //Open source document _source = new ComparingDocument(sourceFile, documentPassword); }
/// <summary> /// Set the target file for comparison /// </summary> /// <param name="filePath">Absolute path to the target file for comparison</param> public void TargetFileName(string filePath) { //Combine target file path var targetFile = filePath.Replace("\\", "\\\\"); targetFile = Path.Combine(_settings.RootStoragePath, targetFile); //Open target document _target = new ComparingDocument(targetFile); }
/// <summary> /// Set the source file for comparison /// </summary> /// <param name="filePath">Absolute path to the source file for comparison</param> public void SourceFileName(string filePath) { //Combine source file path var sourceFile = filePath.Replace("\\", "\\\\"); sourceFile = Path.Combine(_settings.RootStoragePath, sourceFile); //Open source document _source = new ComparingDocument(sourceFile); }