public void DeleteProperty(ChemShiftProperty propertyToDelete) { _shiftProperties.Remove(propertyToDelete); foreach (var shift in _shifts) { shift.Properties.Remove(propertyToDelete); } }
public void AddProperty(ChemShiftProperty newProperty) { /* * for (int i =0; i<Shifts.Count; i++) * { * Shifts[i].Properties.Add(newProperty); * } */ _shiftProperties.Add(newProperty); foreach (var shift in _shifts) { shift.Properties.Add(newProperty); } }