/// <summary> /// Apply the text filter programmatically /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void toolStripTextFilter_TextChanged(object sender, EventArgs e) { switch (tabControlMain.SelectedTab.Name) { case "tabPageEntList": EntityListControl.FilterList(toolStripTextFilter.Text); break; case "tabPageAttrList": AttribListControl.FilterList(toolStripTextFilter.Text); break; } }