public void btnCmd_Execute(object param) { List <StringData> data = new List <StringData>(); for (int i = 0; i < 200; i++) { data.Add(new StringData(i.ToString())); } testList.Clear(); testList.AddRange(data); }
public virtual void Clear() { foreach (var item in Data) { var temp = item.Value; for (int i = 0; i < temp.Layer; ++i) { clearBuff.Add(temp[i]); } } foreach (var item in clearBuff) { Remove(item); } ListData.Clear(); Data.Clear(); }
public void Dispose() { _tasksLiveQuery.Stop(); ListData.Clear(); }
public void DoClearList(object itemString) { ListData.Clear(); }