using System.Windows;
namespace Muchinfo.MTPClient.Data.Helper
{
internal class ResourceHelper
{
///
/// Gets the from resource.
///
///
/// Name of the resource.
/// ``0.
internal static T GetFromResource(string resourceName) where T : class
{
try
{
return (T)Application.Current.TryFindResource(resourceName);
}
catch
{
return null;
}
}
}
}