/// <summary> /// Geeft filenaam terug. /// </summary> /// <param name="fileType"></param> /// <returns></returns> public string File(FileTypeRetPok fileType) { string file; string path = DeploymentDirectory;//Utility.GetAssemblyRootPath(); switch (fileType) { case FileTypeRetPok.Onbekend: file = string.Empty; break; case FileTypeRetPok.KeringScenario: file = path + @"\" + FaalkansenName; break; case FileTypeRetPok.TnoTabel: file = path +@"\" + TnoFileName; break; case FileTypeRetPok.CorImplic: file = path+ @"\Correcties_implic.dat"; break; default: throw new CheckedException(ErrorType.ProcessFailure, string.Format(CultureInfo.InvariantCulture, "Filetype is onjuist: {0}", fileType)); } return file; }
/// <summary> /// Geeft filenaam terug. /// </summary> /// <param name="fileType"></param> /// <returns></returns> public string File(FileTypeRetPok fileType) { string file = ""; string path = DeploymentDirectory;//Utility.GetAssemblyRootPath(); switch (fileType) { case FileTypeRetPok.Onbekend: file = string.Empty; break; case FileTypeRetPok.KeringScenario: file = path + @"\Scenariokansen.txt"; break; case FileTypeRetPok.TnoTabel: file = path + @"\TNOkansen.txt"; break; case FileTypeRetPok.CorImplic: file = path+ @"\Correcties_implic.dat"; break; default: file = ""; break; } return file; }