Exemple #1
0
 public SUIStringResource(string resourceFile, string baseName,object stringID)
     : base(resourceFile, stringID)
 {
     m_stringType = StringResourceType.ManagedString;
     if (m_assemblyAndBaseName.ContainsKey(resourceFile))
         return;
     m_assemblyAndBaseName.Add(resourceFile, baseName);
 }
Exemple #2
0
 public SUIStringResource(string resourceFile, string baseName, object stringID)
     : base(resourceFile, stringID)
 {
     m_stringType = StringResourceType.ManagedString;
     if (m_assemblyAndBaseName.ContainsKey(resourceFile))
     {
         return;
     }
     m_assemblyAndBaseName.Add(resourceFile, baseName);
 }
Exemple #3
0
 public SUIStringResourceHandler(StringResourceType stringType)
 {
     m_stringType = stringType;
 }
Exemple #4
0
        /// <summary>
        /// Get string resources
        /// </summary>
        /// <param name="htmlHelper"></param>
        /// <param name="key"></param>
        /// <returns></returns>
        public static IHtmlContent GetStringResource(this IHtmlHelper htmlHelper, string key, StringResourceType resourceType)
        {
            var content = Context.GetStringResource(key, resourceType);

            return(new HtmlString(content));
        }
Exemple #5
0
 public SUIStringResource(string resourceFile, object stringID, StringResourceType stringType)
     : base(resourceFile, stringID)
 {
     m_stringType = stringType;
 }
Exemple #6
0
        public static string GetInternationalString(string DllPath, object stringID, StringResourceType stringType)
        {
            SUIStringResource stringResource = new SUIStringResource(DllPath, stringID, stringType);

            return(GetInternationalString(stringResource));
        }
Exemple #7
0
 public static string GetInternationalString(string DllPath, object stringID, StringResourceType stringType)
 {
     SUIStringResource stringResource = new SUIStringResource(DllPath, stringID, stringType);
     return GetInternationalString(stringResource);
 }
Exemple #8
0
 public SUIStringResource(string resourceFile, object stringID, StringResourceType stringType)
     : base(resourceFile,stringID)
 {
     m_stringType = stringType;
 }
Exemple #9
0
 public SUIStringResourceHandler(StringResourceType stringType)
 {
     m_stringType = stringType;
 }