/// <summary> /// Saves the output file. /// </summary> /// <param name="outputFilePath">Path of the output file.</param> /// <exception cref="System.InvalidOperationException">Output file not saved, file name required.</exception> public void SaveOutputFile(string outputFilePath) { if (MatchSaved) { throw new InvalidOperationException( "Call AddAllLocationCodes before saving"); } if (string.IsNullOrEmpty(outputFilePath.Trim())) { throw new ArgumentException( "Output file not saved, file name required."); } FileExport.SaveToCsvFile(outputFilePath.Trim(), InputData); inputData.Data.AcceptChanges(); }