AutoPuTTY.formMain.FindSwitch C# (CSharp) Метод

FindSwitch() приватный Метод

private FindSwitch ( bool status ) : void
status bool
Результат void
        private void FindSwitch(bool status)
        {
            // reset the search input text
            if (status && !filtervisible) tbFilter.Text = "";
            // show the "search" form
            tlLeft.RowStyles[1].Height = status ? 25 : 0;
            filtervisible = status;
            // focus the filter input
            tbFilter.Focus();
            // pressed ctrl + F twice, select the search input text so we can search again over last one
            if (status && filtervisible && tbFilter.Text != "") tbFilter.SelectAll();
        }