private void OnImageTypeBoxChanged(object sender, EventArgs a)
    {
        CBackgroundTheme bgTheme = (CBackgroundTheme)(man.Theme);

        bgTheme.BgType = CUtility.StrToImageType(imageTypeBox.ActiveText);
        FillComboboxWithStrings(imageResolutionsBox, bgTheme.GetAvailableResolutions());
    }
    private void FillExtendedSection(CTheme theme)
    {
        bool   isImage     = config.BackgroundChoosen;
        string themeRating = theme.VoteSum.ToString();

        ExtInfoImage.Pixbuf = theme.ThumbnailPic;
        ExtInfoName.Text    = theme.Name;
        ExtInfoAuthor.Text  = theme.Author;
        ExtInfoLicense.Text = theme.License;
        if (theme.Description.Trim() != "")
        {
            ExtInfoDescription.Text = theme.Description;
        }
        else
        {
            ExtInfoDescription.Text = Catalog.GetString("No description has been entered by the author");
        }
        ExtInfoDownloads.Text = theme.DownloadCount.ToString();

        if (themeRating == "0")
        {
            themeRating = Catalog.GetString("not rated");
        }

        ExtInfoRating.Text = themeRating;
        if (isImage)
        {
            CBackgroundTheme bgt = (CBackgroundTheme)theme;
            imageTypeBox.Changed        -= (EventHandler)OnImageTypeBoxChanged;
            imageResolutionsBox.Changed -= (EventHandler)OnImageResolutionsBoxChanged;
            FillComboboxWithStrings(imageTypeBox, bgt.GetAvailableTypes());
            FillComboboxWithStrings(imageResolutionsBox, bgt.GetAvailableResolutions(CUtility.StrToImageType(imageTypeBox.ActiveText)));
            imageTypeBox.Changed        += new EventHandler(OnImageTypeBoxChanged);
            imageResolutionsBox.Changed += new EventHandler(OnImageResolutionsBoxChanged);
        }
        imageTypeBox.Visible            = isImage;
        imageResolutionsBox.Visible     = isImage;
        imageStyleBox.Visible           = isImage;
        ExtInfoImageTypeLabel.Visible   = isImage;
        ExtInfoResolutionsLabel.Visible = isImage;
        ExtInfoImageStyleLabel.Visible  = isImage;
    }