50 lines
1.1 KiB
C#
50 lines
1.1 KiB
C#
//
|
|
// Copyright © 2006-2010, Intel Corporation. All rights reserved.
|
|
//
|
|
//File: AMT_Lable.cs
|
|
//
|
|
// Contents: Defintion of logic of a 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_Lable : Label
|
|
{
|
|
bool enabled = true;
|
|
public AMT_Lable()
|
|
{
|
|
InitializeComponent();
|
|
BackColor = Color.FromArgb(250, 249, 249);
|
|
}
|
|
|
|
public AMT_Lable(IContainer container)
|
|
{
|
|
container.Add(this);
|
|
InitializeComponent();
|
|
BackColor = Color.FromArgb(250, 249, 249);
|
|
}
|
|
|
|
public new bool Enabled
|
|
{
|
|
get { return enabled; }
|
|
set
|
|
{
|
|
base.Enabled = true;
|
|
enabled = value;
|
|
if (!value)
|
|
ForeColor = Color.FromArgb(0x555555);
|
|
else
|
|
ForeColor = Color.Black;
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|