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

GetConfigFileForPanel() публичный статический Метод

Returns the name of the animation config file for the specified scanner
public static GetConfigFileForPanel ( String panelClass ) : String
panelClass String scanner name/class
Результат String
        public static String GetConfigFileForPanel(String panelClass)
        {
            var retVal = String.Empty;
            var mapEntry = GetPanelConfigMapEntry(panelClass);
            if (mapEntry != null)
            {
                retVal = mapEntry.ConfigFileName;
            }

            Log.Debug("For class " + panelClass + " config file is [" + mapEntry.ConfigFileName + "]");
            retVal = FileUtils.GetLocalizedFilePath(retVal);
            Log.Debug("For class " + panelClass + " localized config file is [" + retVal + "]");
            return retVal;
        }

Usage Example

Пример #1
0
        /// <summary>
        /// Creates the panel with the specified panel class
        /// </summary>
        /// <param name="panelClass">the panel class</param>
        /// <param name="title">title of the panel</param>
        /// <returns>the form for the panel</returns>
        public Form CreatePanel(String panelClass, String title)
        {
            var startupArg = new StartupArg(panelClass)
            {
                ConfigFileName = PanelConfigMap.GetConfigFileForPanel(panelClass)
            };

            return(CreatePanel(panelClass, title, startupArg));
        }
All Usage Examples Of ACAT.Lib.Core.PanelManagement.PanelConfigMap::GetConfigFileForPanel