C# winform中对控件类型的判断:
public void UpdataControl(Control control, string data)
{
if (control is TextBox)
{
doSomething1();
}
if (control is Label)
{
doSomething1();
}
if (control is Button)
{
doSomething1();
}
}