Commit defedf95 authored by tr's avatar tr

1、编辑父窗口:基本信息绑定优化

parent 2fe307ca
...@@ -195,26 +195,7 @@ namespace Tools.MyCommon ...@@ -195,26 +195,7 @@ namespace Tools.MyCommon
{ {
foreach (Control c in parent?.Controls) foreach (Control c in parent?.Controls)
{ {
if (c is TextBox) this.Binding(c, drv);
{
this.Binding(c as TextBox, drv);
}
else if (c is CheckBox)
{
this.Binding(c as CheckBox, drv);
}
else if (c is NumericUpDown)
{
this.Binding(c as NumericUpDown, drv);
}
else if (c is ComboBox)
{
this.Binding(c as ComboBox, drv);
}
else if (c is DateTimePicker)
{
this.Binding(c as DateTimePicker, drv);
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment