提交 3edc9ff3 编写于 作者: S szjay

no commit message

上级 4c20b244
......@@ -128,6 +128,14 @@ namespace Infrastructure.Components
if (c is BaseEdit)
{
(c as BaseEdit).Properties.ReadOnly = readOnly;
if (c is ButtonEdit)
{
ButtonEdit button = c as ButtonEdit;
if (button.Properties.Buttons.Count > 0)
{
button.Properties.Buttons[0].Enabled = !readOnly;
}
}
}
else if (c is GridControl)
{
......
......@@ -57,6 +57,14 @@ namespace Infrastructure.Components
if (c is BaseEdit)
{
(c as BaseEdit).Properties.ReadOnly = readOnly;
if (c is ButtonEdit)
{
ButtonEdit button = c as ButtonEdit;
if (button.Properties.Buttons.Count > 0)
{
button.Properties.Buttons[0].Enabled = !readOnly;
}
}
}
else
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册