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