Example #1
0
        void UpdateInfo()
        {
            string path = binding.GetAbsolutePath();

            if (System.IO.File.Exists(path))
            {
                thumbnail = ThumbnailManager.Load(path);
                if (thumbnail == null)
                {
                    infoText = "";
                    return;
                }

                var image = thumbnail.Image;
                infoText = "" + image.GetWidth() + "x" + image.GetHeight();
            }
            else
            {
                thumbnail = null;
                infoText  = "";
            }
        }