Inheritance: LateAction
Ejemplo n.º 1
0
        public void Rename(string newName)
        {
            if (!NameCollisions.Contains(newName))
            {
                _namesList.Add(newName);
                _namesList.Remove(_fileHandler.FilePath);

                var act = new RenameAction(_fileHandler.Rename, newName, _fileHandler.FilePath);

                ToRename.Add(act);
                _actions.Enqueue(act);
            }
            else
            {
                //NameCollisions.Add();
            }
        }
Ejemplo n.º 2
0
        public void Rename(string newName)
        {
            if (!NameCollisions.Contains(newName))
            {
                _namesList.Add(newName);
                _namesList.Remove(_fileHandler.FilePath);

                var act = new RenameAction(_fileHandler.Rename, newName, _fileHandler.FilePath);

                ToRename.Add(act);
                _actions.Enqueue(act);
            }
            else
            {
                //NameCollisions.Add();
            }
        }