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;
		}
示例#2
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;
        }