private Image CreateImageFromResource(string imagePath)
 {
     byte[] byteArray = FileTable.GetByteArray(imagePath);
     if (byteArray != null)
     {
         return((Image) new Bitmap((Stream) new MemoryStream(byteArray)));
     }
     return((Image)null);
 }
Example #2
0
        public PhoneNumberStore()
        {
            MemoryStream memoryStream = new MemoryStream(FileTable.GetByteArray("Resources\\PhoneActivationData.xml"));

            try
            {
                this.document = XDocument.Load((Stream)memoryStream);
            }
            catch (Exception ex)
            {
            }
        }