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

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

Found the panel config file. This is the xml file that contains a mapping of the name and guid of the scanner and the name of the animation file for the scanner, Parses the config file and populates the map table with info from the file.
private static onScreenConfigFileFound ( String configFileName ) : void
configFileName String full path to the config file
Результат void
        private static void onScreenConfigFileFound(String configFileName)
        {
            try
            {
                var doc = new XmlDocument();

                doc.Load(configFileName);

                var configNodes = doc.SelectNodes("/ACAT/ConfigMapEntries/ConfigMapEntry");

                // load each scheme from the config file
                foreach (XmlNode node in configNodes)
                {
                    var mapEntry = new PanelConfigMapEntry();
                    if (mapEntry.Load(node))
                    {
                        addToMapTable(mapEntry);
                    }
                }
            }
            catch (Exception ex)
            {
                Log.Exception(ex);
            }
        }