Ejemplo n.º 1
0
        /// <summary>
        /// Tìm giá trị của key trong file resource đã add vào app
        /// </summary>
        /// <param name="ma">Mã Resource</param>
        /// <returns>Giá trị theo key tìm được</returns>
        public static string SearchResourceByKey(string key, char pattern)
        {
            string[] str      = key.Split(pattern);
            string   trueKey  = key;
            string   trueData = "";
            string   message  = "";

            if (str.Length > 1)
            {
                trueKey  = str[0];
                trueData = str[1];

                message = SearchResourceByKey(trueKey);
                return(message + " (" + SearchResourceByKey(DatabaseConstant.layNgonNguBangDuLieu(trueData)) + ")");
            }
            else
            {
                message = SearchResourceByKey(trueKey);
                return(message);
            }
        }