コード例 #1
0
ファイル: sdNewInfoMgr.cs プロジェクト: tsinglee2009/Dczg
    public void Register(sdNewInfo info)
    {
        if (info == null)
        {
            return;
        }
        if (childList.ContainsKey(info.type) && childList[info.type] != null)
        {
            childList[info.type].Add(info);
        }
        else
        {
            List <sdNewInfo> table = new List <sdNewInfo>();
            table.Add(info);
            childList.Add(info.type, table);
        }

        if (infoList[info.type] != null)
        {
            info.ShowOrHide((bool)infoList[info.type]);
        }
        else
        {
            info.ShowOrHide(false);
        }

        if (info.type == NewInfoType.Type_All)
        {
            info.SetNew(hasNew);
        }
    }
コード例 #2
0
ファイル: sdNewInfoMgr.cs プロジェクト: tsinglee2009/Dczg
 public void RemoveItem(sdNewInfo info)
 {
     if (info == null)
     {
         return;
     }
     if (childList.ContainsKey(info.type) && childList[info.type] != null)
     {
         childList[info.type].Remove(info);
     }
 }