Beispiel #1
0
 //---------------------------------------
 public void AddFieldFromTrap(CTrapField field)
 {
     if (field == null)
     {
         return;
     }
     if (FieldsFromTrapList.FirstOrDefault(f => f.Name == field.Name) == null)
     {
         FieldsFromTrapList.Add(field);
     }
 }
Beispiel #2
0
 //---------------------------------------
 public void ClearFieldsFromTrap()
 {
     FieldsFromTrapList.Clear();
 }
Beispiel #3
0
 //---------------------------------------
 public void RemoveFieldFromTrap(CTrapField field)
 {
     FieldsFromTrapList.Remove(field);
 }