Beispiel #1
0
 public string Get(string key)
 {
     try
     {
         return(TextsEngine.GetMessege(key));
     }
     catch (Exception)
     {
         throw;
     }
 }
Beispiel #2
0
 public Dictionary <string, string> GetFileNamesWithCulture()
 {
     try
     {
         return(TextsEngine.ListFileNameWithCulture());
     }
     catch (Exception)
     {
         throw;
     }
 }
Beispiel #3
0
 public string Get(string key, CultureInfo culture)
 {
     try
     {
         return(TextsEngine.GetMessege(key, culture));
     }
     catch (Exception)
     {
         throw;
     }
 }
Beispiel #4
0
 public IEnumerable <TextsResource> Get(CultureInfo culture)
 {
     try
     {
         return(TextsEngine.GetTextsResources(culture));
     }
     catch (Exception)
     {
         throw;
     }
 }
Beispiel #5
0
 public bool CreateResourceFile(CultureInfo cultureToCreate, CultureInfo cultureToCopy)
 {
     try
     {
         return(TextsEngine.CreateResourceFile(cultureToCreate, cultureToCopy));
     }
     catch (Exception)
     {
         throw;
     }
 }
Beispiel #6
0
 public bool Update(TextsResource textsResource, CultureInfo culture)
 {
     try
     {
         return(TextsEngine.Update(textsResource, culture));
     }
     catch (Exception)
     {
         throw;
     }
 }
Beispiel #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;
            }
        }