private static GetAllControl ( |
||
c | ||
outList | List |
|
Результат | void |
private static void GetAllControl(Control c, List<Control> outList)
{
foreach (Control control in c.Controls)
{
if (control.GetType() == typeof(SimpleButton))
{
outList.Add(control);
}
else
{
GetAllControl(control, outList);
}
}
}