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

            return(ObjectSystemsDict.Remove(objectSystem.Name) && ObjectSystems.Remove(objectSystem));
        }
Exemplo n.º 2
0
 public bool ChildDictNameChanged(string newName, Directory directory)
 {
     ObjectSystemsDict[newName] = directory;
     return(ObjectSystemsDict.Remove(directory.Name));
 }