public static string GetResourceTextByKey(this IComponent owner, int resourceType, string keyName)
        {
            string result = default(string);

            try
            {
                if (_wpfApp != null)
                {
                    result = _wpfApp.TryFindResource(keyName).ToString();
                }
                else
                {
                    result = GetResourceManager(resourceType).GetString(keyName);
                }
            }
            catch (Exception ex)
            {
                ExceptionManager.Publish(ex);
            }

            return(result);
        }