示例#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);
        }
示例#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);
        }