private void listViewJPG1_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (checkBoxPreviewSlate.Checked)
            {
                IAsset JPGAsset = listViewJPG1.GetSelectedJPG.FirstOrDefault();
                if (JPGAsset != null)
                {
                    IAssetFile AF      = null;
                    ILocator   locator = GetOrCreateSASLocator(JPGAsset);
                    try
                    {
                        if (locator != null)
                        {
                            AF = JPGAsset.AssetFiles.FirstOrDefault();
                            Uri sasUri = BuildSasUri(AF, locator);
                            pictureBoxPreviewSlate.Load(sasUri.AbsoluteUri);

                            Image  fileImage        = pictureBoxPreviewSlate.Image;
                            double aspectRatioImage = (double)fileImage.Size.Width / (double)fileImage.Size.Height;
                            labelSlatePreviewInfo.Text = string.Format(labelSlatePreviewInfoText, fileImage.Width, fileImage.Height, aspectRatioImage);

                            if (
                                fileImage.Width > Constants.maxSlateJPGHorizontalResolution ||
                                fileImage.Height > Constants.maxSlateJPGVerticalResolution ||
                                !ListViewSlateJPG.AreClose(aspectRatioImage, Constants.SlateJPGAspectRatio)
                                )
                            {
                                labelSlatePreviewInfo.ForeColor = Color.Red;
                            }
                            else
                            {
                                labelSlatePreviewInfo.ForeColor = Color.Black;
                            }
                        }
                    }
                    catch
                    {
                        MessageBox.Show("Error when accessing temporary SAS locator");
                    }
                }
            }
        }