public void setProgramInUse(string prgName) { if (MatchingProgram.ProgramExists(prgName)) { ProgramInUse = new MatchingProgram(prgName); } else { throw new Exception(LocRM.GetString("file", currentCulture) + ProgramInUse.ProgramName + ".prg" + LocRM.GetString("notFoundIn", currentCulture) + Path.GetDirectoryName(MatchingProgram.GetProgramsPath())); } }