Beispiel #1
0
        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);
        }
Beispiel #2
0
        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);
        }