Beispiel #1
0
        /// <summary>
        /// Update the shown buttons according to the search term.
        /// </summary>
        private void txtSearch_TextChanged(object sender, EventArgs e)
        {
            List <CmdButton> newList = new List <CmdButton>();

            newList = CmdList.FindAll(btn => btn.Text.ToLower().Contains(txtSearch.Text.ToLower()));

            flowCmdList.Controls.Clear();
            foreach (CmdButton cmd in newList)
            {
                flowCmdList.Controls.Add(cmd);
            }
        }