Example #1
0
        public override void PreloadContent()
        {
            // If the values returned are nonsensical, retry 3 times until
            // correct values are found.

            /*
             * for (int tries = 0; tries < 4; tries++)
             * {
             *  if (_videoResolutionHeight != 0 && _videoResolutionWidth >= -100000 &&
             *      _videoResolutionHeight >= -100000 && _videoResolutionWidth <= 100000 &&
             *      _videoResolutionHeight <= 100000) continue;
             *  if ((_videoResolutionHeight == 0 ||
             *       _videoResolutionWidth < -100000 || _videoResolutionHeight < -100000 ||
             *       _videoResolutionWidth > 100000 || _videoResolutionHeight > 100000) &&
             *      tries == 3)
             *  {
             *      _videoResolutionHeight = 0;
             *      _videoResolutionWidth = 0;
             *      break;
             *  }
             *
             *  GetMetaData();
             * }*/

            _thumbnailSource = FlyWeightPointer.LoadThumbnail(FilePath);
        }
Example #2
0
 /// <summary>
 /// Allows certain files to be preloaded.
 /// </summary>
 public virtual void PreloadContent()
 {
     _thumbnailSource = FlyWeightPointer.LoadThumbnail(FilePath);
 }