public override CommandResult Invoke(Guid group, int id, object inputArg, ref object outputArg) { if (_ui.ShowMessage(Resources.DeleteSelectedHistoryEntries, MessageButtons.YesNo) == MessageButtons.Yes) { _history.DeleteSelectedHistoryEntries(); } return(CommandResult.Executed); }