private void bClose_Click(object sender, EventArgs e) { FindSwitch(false); if (tbFilter.Text == "") return; XmlToList(); if (lbList.Items.Count > 0) lbList.SelectedIndex = 0; }