Esempio n. 1
0
        public void Execute()
        {
            var document = _documentHistoryCommands?.RemoveLast();

            var command = _documentCommandFactory?.CreateCommand(document);

            command?.Execute();
        }
Esempio n. 2
0
        public void Execute()
        {
            foreach (var doc in _closedDocuments)
            {
                var cmd = _documentCommandFactory?.CreateCommand(doc);
                cmd?.Execute();
            }

            _documentHistoryCommands?.Remove(_closedDocuments);
        }