/// <summary> /// Создает Use цепочку для базового блока /// </summary> private void BuildUList() { foreach (var dN in DList) { var dVar = dN.DefVariable; foreach (var uVar in dN.UseVariables) { UList.Add(new UNode(uVar as DUVar, dVar as DUVar)); } } }
/// <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); } }); }
public void AddBubble(UserControl userControl) { UList.Add(userControl); this.bubbleArea.Controls.Add(userControl); setHeight(); }