public CompositionUI(ComponentDocumentDesigner compositionDesigner, IServiceProvider provider) : base(compositionDesigner, provider) { this.compositionDesigner = compositionDesigner; this.serviceProvider = provider; this.watermark = new ComponentDocumentDesigner.WatermarkLabel(this); this.watermark.Font = new Font(this.watermark.Font.FontFamily, 11f); this.watermark.TextAlign = ContentAlignment.MiddleCenter; this.watermark.LinkClicked += new LinkLabelLinkClickedEventHandler(this.OnLinkClick); this.watermark.Dock = DockStyle.Fill; this.watermark.TabStop = false; this.watermark.Text = System.Design.SR.GetString("CompositionDesignerWaterMark"); try { string str = System.Design.SR.GetString("CompositionDesignerWaterMarkFirstLink"); int index = this.watermark.Text.IndexOf(str); int length = str.Length; this.watermark.Links.Add(index, length, "Toolbox"); str = System.Design.SR.GetString("CompositionDesignerWaterMarkSecondLink"); index = this.watermark.Text.IndexOf(str); length = str.Length; this.watermark.Links.Add(index, length, "CodeView"); } catch (Exception exception) { if (System.Windows.Forms.ClientUtils.IsCriticalException(exception)) { throw; } } base.Controls.Add(this.watermark); }