private static onFileFound ( String file ) : void | ||
file | String | name of the file found |
Résultat | void |
private static void onFileFound(String file)
{
String filePath = file.ToLower();
String fileName = Path.GetFileName(filePath);
if (String.Compare(fileName, PanelConfigMapFileName, true) == 0)
{
onScreenConfigFileFound(FileUtils.GetLocalizedFilePath(filePath));
}
else
{
String extension = Path.GetExtension(filePath);
if (String.Compare(extension, ".dll", true) == 0)
{
onDllFound(filePath);
}
else if (String.Compare(extension, ".xml", true) == 0)
{
onXmlFileFound(filePath);
}
}
}