/// <summary> /// 获取结束回调 /// </summary> /// <param name="users"></param> private void GetCityUniversityEnd(List <string> us) { //GalaSoft.MvvmLight.Threading.DispatcherHelper // .CheckBeginInvokeOnUI(() => DispatcherHelper.CheckBeginInvokeOnUI(() => { //for (int i = 0; i < UList.Count; i++) // UList.RemoveAt(i); if (UList.Count == 0) { UList.Add("全部学校"); } while (UList.Count > 1) { UList.RemoveAt(UList.Count - 1); } foreach (string u in us) { UList.Add(u); } }); }