Esempio n. 1
0
        private string GetComponentName(Component2 component)
        {
            var filepath        = component.GetTitle();
            var filename        = Path.GetFileNameWithoutExtension(filepath);
            var isDefaultConfig = component.ReferencedConfiguration.ToLower() == "default";

            return(isDefaultConfig ? filename : $"{filename} [{component.ReferencedConfiguration}]");
        }