Ejemplo n.º 1
0
 public void BuildSearchList()
 {
     foreach (object obj in this)
     {
         PartitionElement e = (PartitionElement)obj;
         this.InsertElementList(e);
     }
 }
Ejemplo n.º 2
0
 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);
     }
 }
Ejemplo n.º 3
0
 public void Add(PartitionElement element)
 {
     this.InsertElementList(element);
     this.BaseAdd(element);
 }