// // Copyright © 2006-2010, Intel Corporation. All rights reserved. // // File: AdvancedPlatformSearch.cs // // Contents: Defintion of logic of a link label (GUI componet) // using System; using System.ComponentModel; using System.Collections.Generic; using System.Diagnostics; using System.Text; using System.Windows.Forms; using System.Drawing; namespace AMT_SW_GUI { public partial class AMT_BlueLinkLable : LinkLabel { public AMT_BlueLinkLable() { InitializeComponent(); BackColor = Color.FromArgb(250, 249, 249); } public AMT_BlueLinkLable(IContainer container) { container.Add(this); InitializeComponent(); BackColor = Color.FromArgb(250, 249, 249); this.VisitedLinkColor = System.Drawing.Color.FromArgb(((int)(((byte)(31)))), ((int)(((byte)(112)))), ((int)(((byte)(176))))); this.ActiveLinkColor = System.Drawing.Color.FromArgb(((int)(((byte)(31)))), ((int)(((byte)(112)))), ((int)(((byte)(176))))); this.UseCompatibleTextRendering = false; } private void AMT_BlueLinkLable_MouseLeave(object sender, EventArgs e) { LinkVisited = false; } private void AMT_BlueLinkLable_MouseMove(object sender, MouseEventArgs e) { LinkVisited = true; } public void SetSelection() { Size TempSize = this.Size; TempSize.Width = 142; this.Size = TempSize; this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(31)))), ((int)(((byte)(112)))), ((int)(((byte)(176))))); this.LinkColor = Color.FromArgb(250, 249, 249); this.VisitedLinkColor = Color.FromArgb(250, 249, 249); System.Windows.Forms.LinkArea TempLinkArea = this.LinkArea; this.LinkArea = TempLinkArea; } public void ClearSelection() { Size TempSize = this.Size; TempSize.Width = 132; this.Size = TempSize; this.BackColor = Color.FromArgb(250, 249, 249); this.LinkColor = Color.Black; this.VisitedLinkColor = System.Drawing.Color.FromArgb(((int)(((byte)(31)))), ((int)(((byte)(112)))), ((int)(((byte)(176))))); } } }