public void BuildSearchList() { foreach (object obj in this) { PartitionElement e = (PartitionElement)obj; this.InsertElementList(e); } }
private void InsertElementList(PartitionElement e) { if (string.Compare(e.Name, "Default", true) != 0) { Dictionary <int, PartitionElement> dictionary; if (this.elements.ContainsKey(e.CopyId)) { dictionary = this.elements[e.CopyId]; } else { dictionary = new Dictionary <int, PartitionElement>(); this.elements.Add(e.CopyId, dictionary); } dictionary.Add(e.PartitionId, e); } }
public void Add(PartitionElement element) { this.InsertElementList(element); this.BaseAdd(element); }