public MetadataEditorControl()
        {
            InitializeComponent();

            _settingUp = true;
            //set some defaults in case they turn on CC
            _shareAlike.Checked    = true;
            _nonCommercial.Checked = true;

            //the system PictureBox makes the CC licenses look awful, so we are using one with a custom OnPaint()
            var betterPictureBox = new BetterPictureBox()
            {
                SizeMode = _licenseImage.SizeMode,
                Bounds   = _licenseImage.Bounds,
                TabStop  = false
            };

            Controls.Add(betterPictureBox);
            Controls.Remove(_licenseImage);
            _licenseImage.Dispose();
            _licenseImage = betterPictureBox;

            _linkToPublicDomainCC0.Text = string.Format(
                L10NSharp.LocalizationManager.GetString("MetadataEditor.linkToPublicDomainCC0",
                                                        "about {0} Public Domain", "{0} is replaced by an untranslatable abbreviation functioning as an adjective (\"CC0\")"),
                "CC0");
        }
		public MetadataEditorControl()
		{
			InitializeComponent();

			_settingUp = true;
			//set some defaults in case they turn on CC
			_shareAlike.Checked = true;
			_nonCommercial.Checked = true;

			//the system PictureBox makes the CC licenses look awful, so we are using one with a custom OnPaint()
			var betterPictureBox = new BetterPictureBox()
			{
				SizeMode = _licenseImage.SizeMode,
				Bounds = _licenseImage.Bounds,
				TabStop = false
			};
			Controls.Add(betterPictureBox);
			Controls.Remove(_licenseImage);
			_licenseImage.Dispose();
			_licenseImage = betterPictureBox;
		}
示例#3
0
        public MetadataEditorControl()
        {
            InitializeComponent();

            _settingUp = true;
            //set some defaults in case they turn on CC
            _shareAlike.Checked    = true;
            _nonCommercial.Checked = true;

            //the system PictureBox makes the CC licenses look awful, so we are using one with a custom OnPaint()
            var betterPictureBox = new BetterPictureBox()
            {
                SizeMode = _licenseImage.SizeMode,
                Bounds   = _licenseImage.Bounds,
                TabStop  = false
            };

            Controls.Add(betterPictureBox);
            Controls.Remove(_licenseImage);
            _licenseImage.Dispose();
            _licenseImage = betterPictureBox;
        }