public bool DeleteObject(ObjectSystem objectSystem) { if (!ObjectSystemsDict.ContainsKey(objectSystem.Name)) { return(false); } return(ObjectSystemsDict.Remove(objectSystem.Name) && ObjectSystems.Remove(objectSystem)); }
private bool AddObjectSystem(ObjectSystem objectSystem) { if (ObjectSystemsDict.ContainsKey(objectSystem.Name)) { return(false); } ObjectSystemsDict.Add(objectSystem.Name, objectSystem); ObjectSystems.Add(objectSystem); return(true); }