/// <summary>
        /// Creates a new instance of the FormSmartPartInfo with the settings for a modal dialog
        /// </summary>
        public static FormSmartPartInfo CreateModalDialog(string title, string description)
        {
            var spi = new FormSmartPartInfo(title, description);

            spi.MinimizeBox   = false;
            spi.MaximizeBox   = false;
            spi.ShowIcon      = false;
            spi.ShowInTaskBar = false;
            spi.ShowModal     = true;
            return(spi);
        }
        /// <summary>
        /// Creates a new instance of the FormSmartPartInfo and copies over the information
        /// in the source smart part.
        /// </summary>
        public static FormSmartPartInfo ConvertTo(ISmartPartInfo source)
        {
            //Guard.ArgumentNotNull(source, "source");

            var info = new FormSmartPartInfo(source.Title, source.Description);

            var iconInfo = source as IconSmartPartInfo;

            if (iconInfo != null)
            {
                info.Icon = iconInfo.Icon;
            }

            return(info);
        }