Ejemplo n.º 1
0
        internal static string GetNameRaw(Type type)
        {
            if (SkinEngine.LoadedSkin == null)
            {
                return(AppearanceManager.GetDefaultTitle(type));
            }

            if (SkinEngine.LoadedSkin.AppNames == null)
            {
                SkinEngine.LoadedSkin.AppNames = GetDefault();
            }

            if (!SkinEngine.LoadedSkin.AppNames.ContainsKey(type.Name))
            {
                return(Localization.Parse(AppearanceManager.GetDefaultTitle(type)));
            }

            return(SkinEngine.LoadedSkin.AppNames[type.Name]);
        }