예제 #1
0
 public string Get(string key)
 {
     try
     {
         return(TextsEngine.GetMessege(key));
     }
     catch (Exception)
     {
         throw;
     }
 }
예제 #2
0
 public Dictionary <string, string> GetFileNamesWithCulture()
 {
     try
     {
         return(TextsEngine.ListFileNameWithCulture());
     }
     catch (Exception)
     {
         throw;
     }
 }
예제 #3
0
 public string Get(string key, CultureInfo culture)
 {
     try
     {
         return(TextsEngine.GetMessege(key, culture));
     }
     catch (Exception)
     {
         throw;
     }
 }
예제 #4
0
 public IEnumerable <TextsResource> Get(CultureInfo culture)
 {
     try
     {
         return(TextsEngine.GetTextsResources(culture));
     }
     catch (Exception)
     {
         throw;
     }
 }
예제 #5
0
 public bool CreateResourceFile(CultureInfo cultureToCreate, CultureInfo cultureToCopy)
 {
     try
     {
         return(TextsEngine.CreateResourceFile(cultureToCreate, cultureToCopy));
     }
     catch (Exception)
     {
         throw;
     }
 }
예제 #6
0
 public bool Update(TextsResource textsResource, CultureInfo culture)
 {
     try
     {
         return(TextsEngine.Update(textsResource, culture));
     }
     catch (Exception)
     {
         throw;
     }
 }
예제 #7
0
        public IEnumerable <string> GetFileNames()
        {
            try
            {
                var list = TextsEngine.ListFileName().ToList();
                list.ForEach(p =>
                {
                    p = p.Replace(TextsEngine.FileNameBase, "");
                });

                return(list);
            }
            catch (Exception)
            {
                throw;
            }
        }