Exemple #1
0
    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);
    }
Exemple #2
0
 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();
 }
Exemple #4
0
 public void DoClearList(object itemString)
 {
     ListData.Clear();
 }