Background worker attempt
问题 This is how the function was originally: void fillLiguanea() { items = new List<string>(); this.liguanea_Lane2TableAdapter.Fill(this.pharmaciesDataSet3.Liguanea_Lane2); try { string connectionString = "Data Source=LPMSW09000012JD\\SQLEXPRESS;Initial Catalog=Pharmacies;Integrated Security=True"; SqlConnection con = new SqlConnection(connectionString); con.Open(); string query = "SELECT * FROM dbo.Liguanea_Lane2"; SqlCommand cmd = new SqlCommand(query, con); SqlDataReader dr = cmd.ExecuteReader