コード例 #1
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;

            _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");
        }
コード例 #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;
		}
コード例 #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;
        }