Use lambdas in StandardQuestionDialog.