Exemplo n.º 1
0
        //private string GetModuleTitle(SoftwareInfo software, string name)
        //{
        //    var productName = software.Product.Name;
        //    if (!productName.Equals("CHDK"))
        //        return null;
        //    name = name.Replace('.', '_');
        //    return CHDK.ResourceManager.GetString($"Module_{name}");
        //}

        private string TryGetModuleTitle(SoftwareInfo software, string name)
        {
            var productName = software.Product.Name;
            var id          = ModuleProvider.GetModuleId(productName, name);

            if (id == null)
            {
                return(null);
            }
            return(ResourceProvider.GetString(id));
        }