ACAT.Lib.Core.PanelManagement.PanelConfigMap.onFileFound C# (CSharp) Метод

onFileFound() приватный статический Метод

Callback function for the directory walker that's invoked when a file is found. Checks the file is a dll or an xml file and handles them appropriately
private static onFileFound ( String file ) : void
file String name of the file found
Результат 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);
                }
            }
        }