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