Exemple #1
0
        public bool DeleteObject(ObjectSystem objectSystem)
        {
            if (!ObjectSystemsDict.ContainsKey(objectSystem.Name))
            {
                return(false);
            }

            return(ObjectSystemsDict.Remove(objectSystem.Name) && ObjectSystems.Remove(objectSystem));
        }
Exemple #2
0
        private bool AddObjectSystem(ObjectSystem objectSystem)
        {
            if (ObjectSystemsDict.ContainsKey(objectSystem.Name))
            {
                return(false);
            }

            ObjectSystemsDict.Add(objectSystem.Name, objectSystem);
            ObjectSystems.Add(objectSystem);

            return(true);
        }