entity.MapForms.MapForm.searchPanel C# (CSharp) Method

searchPanel() private method

The search panel.
private searchPanel ( Control dataControl, string searchValue, FindType &finds ) : void
dataControl System.Windows.Forms.Control The data control.
searchValue string The search value.
finds FindType The finds.
return void
        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;
                    }
                }
            }
        }
MapForm