Exemplo n.º 1
0
        protected override async Task Invoke(MapDocument document, CommandParameters parameters)
        {
            var stack = document.Map.Data.GetOne <HistoryStack>();

            if (stack == null)
            {
                return;
            }
            if (stack.CanUndo())
            {
                await MapDocumentOperation.Reverse(document, stack.UndoOperation());
            }
        }