/// <summary>
        /// Initializes a new instance of the preview dialog for the specified
        /// screenshot.
        /// </summary>
        /// <param name="s">The screenshot to preview.</param>
        public PreviewDialog(Screenshot s)
        {
            _screenshot = s;

            InitializeComponent();
            FileSizeLabel.Text = string.Format(new FileSizeFormatProvider(), SR.FileSizeLabel, s.CalculateSize());

            if (s.IsFile)
            {
                SaveButton.Enabled = false;
            }
        }