using System;
using System.Drawing;
using System.Windows.Forms;


namespace FunctionalSubstructure
{
    
    /// <summary>
    /// Global data class of the application.
    /// </summary>
    static class GlobalData
    {   

        /// <summary>
        /// The given thumbnail size.
        /// </summary>
        public static readonly int ThumbnailSize;

        /// <summary>
        /// The invalid image logo.
        /// </summary>
        public static readonly Image InvalidImage;

        /// <summary>
        /// The thumbnail of the invalid image logo.
        /// </summary>
        public static readonly Image InvalidImageThumbnail;

        /// <summary>
        /// The loading image logo.
        /// </summary>
        public static readonly Image LoadingImage;

        /// <summary>
        /// The thumbnail of the loading image logo.
        /// </summary>
        public static readonly Image LoadingImageThumbnail;



        /// <summary>
        /// Static constructor.
        /// </summary>
        static GlobalData()
        {
            ThumbnailSize = Properties.Settings.Default.ThumbnailSize;

            InvalidImage = Properties.Resources.InvalidImage;
            InvalidImageThumbnail = ImageResizer.CreateThumbnailFromImage(InvalidImage, ThumbnailSize);

            LoadingImage = Properties.Resources.LoadingImage;
            LoadingImageThumbnail = ImageResizer.CreateThumbnailFromImage(LoadingImage, ThumbnailSize);
        }

    }

}
