public void RemoveWarningItem(ErrorInfo info) { foreach (KeyValuePair <int, ErrorInfo> entry in mSortedWarnningMap) { if (info.level.Equals(entry.Key)) { mSortedWarnningMap.Remove(entry.Key); mWarnningList.Remove(entry.Value); Warnning.resolve(info); return; } } }
public void RemoveWarningItem(ErrorInfo info) { foreach (KeyValuePair <int, ErrorInfo> entry in mSortedWarnningMap) { if (info.level.Equals(entry.Key)) { mSortedWarnningMap.Remove(entry.Key); Warnning.resolve(info); break; } } if (mSortedWarnningMap.Count == 0) { mSortedWarnningMap.Add(ERROEINFO_NORMAL.level, ERROEINFO_NORMAL); } }