private void searchPanel(Control dataControl, string searchValue, ref FindType[] finds)
{
if (dataControl.HasChildren)
{
foreach (Control childControl in dataControl.Controls)
{
searchPanel(childControl, searchValue, ref finds);
if (childControl.Name == "reflexive")
{
// childControl.
}
if (childControl.Text.Contains(searchValue))
{
MessageBox.Show(childControl.Name + " - " + childControl.Text);
finds = new FindType[finds.Length + 1];
finds[finds.Length - 1].Text = childControl.Text;
finds[finds.Length - 1].Location = childControl;
}
}
}
}