private void searchBttn_Click(object sender, EventArgs e) { if (searchBox.Text != "") { UpdateList(FederalDistricts.Search(searchBox.Text), Regions.Search(searchBox.Text), Districts.Search(searchBox.Text)); } }
private void filterBox_SelectedIndexChanged(object sender, EventArgs e) { switch (filterBox.SelectedIndex) { case 1: FederalDistricts.SortPops(); Regions.SortPops(); Districts.SortPops(); break; case 2: FederalDistricts.SortArea(); Regions.SortArea(); Districts.SortArea(); break; } UpdateList(); filterBox.SelectedIndex = 0; }