public static string GetResourceString(string Type, string Name) { string Result = null; try { byte[] Data = Manipulator.GetResource(Type, Name); Result = System.Text.Encoding.UTF8.GetString(Data); } catch (Exception ex) { } return(Result); }
public static BitmapImage GetResourceImage(string Type, string Name) { BitmapImage Result = null; try { byte[] Data = Manipulator.GetResource(Type, Name); Result = ByteArrayToImage(Data); } catch (Exception ex) { } return(Result); }