public int Compare(object x, object y) { BadRegistryKey a = x as BadRegistryKey; BadRegistryKey b = y as BadRegistryKey; int res = 0; if (_mode == "Problem") { string strA = ((a.IsLeaf) ? (a.Problem) : (a.SectionName)); string strB = ((b.IsLeaf) ? (b.Problem) : (b.SectionName)); res = string.Compare(strA, strB); } else if (_mode == "Location") { res = string.Compare(a.baseRegKey, b.baseRegKey); } else if (_mode == "Value Name") { res = string.Compare(a.ValueName, b.ValueName); } if (_order == SortOrder.Ascending) { return(-res); } else { return(res); } }
public void Remove(BadRegistryKey BadRegKey) { if (BadRegKey == null) { throw new ArgumentNullException("BadRegKey"); } this.InnerList.Remove(BadRegKey); }
public void Insert(int index, BadRegistryKey BadRegKey) { if (BadRegKey == null) { throw new ArgumentNullException("BadRegKey"); } this.InnerList.Insert(index, BadRegKey); }
public int Add(BadRegistryKey BadRegKey) { if (BadRegKey == null) { throw new ArgumentNullException("BadRegKey"); } return(this.InnerList.Add(BadRegKey)); }
public bool Contains(BadRegistryKey BadRegKey) { return(this.InnerList.Contains(BadRegKey)); }
public int IndexOf(BadRegistryKey BadRegKey) { return(this.InnerList.IndexOf(BadRegKey)); }