protected bool CheckAndConfirmDelete() { if (NeedsDeleteCheck()) { var result = BusinessObject.CanDelete(); if (!result.Allowed) { var reason = result.CreateMessage(CommandRes.CantDelete); MessageBox.ShowWarning(reason); return(false); } } return(Confirmation()); }
private void ShowNoPermissionMessage() { MessageBox.ShowWarning(CommandExecutorRes.NoPermissionMsg, CommandExecutorRes.NoPermissionCaption); }