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); } }
public void RemoveItem(sdNewInfo info) { if (info == null) { return; } if (childList.ContainsKey(info.type) && childList[info.type] != null) { childList[info.type].Remove(info); } }