Ejemplo n.º 1
0
        public void OnExecute(CommandEventArgs e)
        {
            if (_commandService == null)
                _commandService = e.GetService<IAnkhCommandService>();
            if (_pendingChanges == null)
                _pendingChanges = e.GetService<PendingChangeManager>(typeof(IPendingChangesManager));

            _commandService.TockCommand(e.Command);

            _pendingChanges.OnTickRefresh();
        }
Ejemplo n.º 2
0
        public void OnExecute(CommandEventArgs e)
        {
            if (_commandService == null)
            {
                _commandService = e.GetService <IAnkhCommandService>();
                _pendingChanges = e.GetService <PendingChangeManager>(typeof(IPendingChangesManager));
            }

            _commandService.TockCommand(e.Command);

            _pendingChanges.OnTickRefresh();
        }