|
|
|
@ -14,6 +14,28 @@ namespace Rs.Framework
|
|
|
|
|
{
|
|
|
|
|
public static class ControlManager
|
|
|
|
|
{
|
|
|
|
|
public static List<Control> GetControlList(Control findControl)
|
|
|
|
|
{
|
|
|
|
|
List<Control> list = GetContolsInternal(findControl, new List<Control>());
|
|
|
|
|
return list;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private static List<Control> GetContolsInternal(Control findControl,List<Control> foundControls)
|
|
|
|
|
{
|
|
|
|
|
if(findControl!=null && findControl.Controls.Count>0)
|
|
|
|
|
{
|
|
|
|
|
foreach (Control subControl in findControl.Controls)
|
|
|
|
|
{
|
|
|
|
|
foundControls.Add(subControl);
|
|
|
|
|
if(subControl.Controls.Count > 0)
|
|
|
|
|
{
|
|
|
|
|
foundControls= GetContolsInternal(subControl, foundControls);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return foundControls;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 通过控件Tag查找控件数组
|
|
|
|
|
/// </summary>
|
|
|
|
|