Example #1
0
 public void Remove(LookupMachine machine)
 {
     if (IdExists(machine))
     {
         lookupTable.Remove(GetIdByMachine(machine));
         reverseLookupTable.Remove(machine);
     }
 }
 public void Add(LookupMachine machine, string id)
 {
     if (!IdExists(machine))
     {
         reverseLookupTable.Add(machine, id);
         lookupTable.Add(id, machine);
     }
     else
     {
         reverseLookupTable[machine] = id;
         lookupTable[id] = machine;
     }
 }
 public void Add(string id, LookupMachine machine)
 {
     if (!IdExists(id))
     {
         lookupTable.Add(id, machine);
         reverseLookupTable.Add(machine, id);
     }
     else
     {
         lookupTable[id] = machine;
         reverseLookupTable[machine] = id;
     }
 }
Example #4
0
 public void Add(LookupMachine machine, string id)
 {
     if (!IdExists(machine))
     {
         reverseLookupTable.Add(machine, id);
         lookupTable.Add(id, machine);
     }
     else
     {
         reverseLookupTable[machine] = id;
         lookupTable[id]             = machine;
     }
 }
Example #5
0
 public void Add(string id, LookupMachine machine)
 {
     if (!IdExists(id))
     {
         lookupTable.Add(id, machine);
         reverseLookupTable.Add(machine, id);
     }
     else
     {
         lookupTable[id]             = machine;
         reverseLookupTable[machine] = id;
     }
 }
 /// <summary>
 /// Returns true if the the ID, exists.
 /// </summary>
 public bool IdExists(LookupMachine machine)
 {
     return (reverseLookupTable.ContainsKey(machine));
 }
 public string GetIdByMachine(LookupMachine machine)
 {
     return reverseLookupTable[machine];
 }
 public void Remove(LookupMachine machine)
 {
     if (IdExists(machine))
     {
         lookupTable.Remove(GetIdByMachine(machine));
         reverseLookupTable.Remove(machine);
     }
 }
Example #9
0
 /// <summary>
 /// Returns true if the the ID, exists.
 /// </summary>
 public bool IdExists(LookupMachine machine)
 {
     return(reverseLookupTable.ContainsKey(machine));
 }
Example #10
0
 public string GetIdByMachine(LookupMachine machine)
 {
     return(reverseLookupTable[machine]);
 }