예제 #1
0
    /// <summary>
    /// 添加处理
    /// </summary>
    /// <param name="handle"></param>
    private int AddHandle2List(UpdateHandle handle)
    {
        int id = GetHandleId();

        HandleList.Add(handle);
        IndexDict.Add(id, handle);
        return(id);
    }
예제 #2
0
    private void RestoreList()
    {
        int len = useList.Count;

        HandleList.RemoveRange(0, len);
        for (int i = 0; i < useList.Count; i++)
        {
            HandleList.Add(useList[i]);
        }
    }