SVN r1230
SVN-Revision: r1230
This commit is contained in:
@@ -152,4 +152,40 @@ namespace Lskj.Control
|
||||
{
|
||||
base.ReadOnly = value;
|
||||
this.txtEdit.Properties.ReadOnly = value;
|
||||
this.lblText.ForeColor = value ? base.ReadOnlyLabelForceColor : Required ? base.RequiredLabelFor
|
||||
this.lblText.ForeColor = value ? base.ReadOnlyLabelForceColor : Required ? base.RequiredLabelForceColor : base.DefaultLabelForceColor;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 必填文本颜色
|
||||
/// </summary>
|
||||
/// <value>The color of the required label.</value>
|
||||
public override bool Required
|
||||
{
|
||||
get
|
||||
{
|
||||
return base.Required;
|
||||
}
|
||||
set
|
||||
{
|
||||
base.Required = value;
|
||||
if (value)
|
||||
{
|
||||
this.lblText.ForeColor = base.RequiredLabelForceColor;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 背景颜色
|
||||
/// </summary>
|
||||
/// <value>The color of the required label.</value>
|
||||
public override Color BackgroundColor
|
||||
{
|
||||
get
|
||||
{
|
||||
return TextEdit.Properties.Appearance.BackColor;
|
||||
}
|
||||
set
|
||||
{
|
||||
TextEdit.Properties.Appearance.BackColor = value;
|
||||
|
||||
Reference in New Issue
Block a user