private SpotlightImage GetSpotlightImage(FileInfo fileInfo)
        {
            var spotlightImage = new SpotlightImage();
            spotlightImage.Name = fileInfo.Name;
            spotlightImage.FullPath = fileInfo.FullName;
            spotlightImage.Size = (int)fileInfo.Length;
            spotlightImage.Created = fileInfo.CreationTime;

            try
            {
                var image = new Bitmap(fileInfo.FullName);
                spotlightImage.Width = image.Width;
                spotlightImage.Height = image.Height;
            }
            catch (Exception ex)
            {
                return null;
            }

            return spotlightImage;
        }
        public ImagePreview(SpotlightImage spotlightImage)
        {
            InitializeComponent();

            pbPreview.Load(spotlightImage.FullPath);
        }