| 12345678910111213141516171819202122232425 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ivf_tl_Manage.Converts
- {
- public static class KeyToStringConvert
- {
- public static string GetLanguageStringByKey(string key)
- {
- try
- {
- if (App.Current == null) return "";
- object value = App.Current.TryFindResource(key);
- return value == null ? "" : value.ToString();
- }
- catch (Exception)
- {
- return "";
- }
- }
- }
- }
|