private async Task ShowMenu(IDialogContext context) { await context.SendTypingMessage(); var notifications = await _accessor.GetNotificationTimes(context.Activity.Conversation.Id); var menu = notifications.Select(notification => string.Format(DeleteConfigurationTemplate, notification)).ToList(); menu.Add(AddNotification); menu.Add(EndConfiguration); PromptDialog.Choice(context, OnOptionSelected, menu, "", "", 1); }
private async Task ShowMenu(IDialogContext context) { await context.SendTypingMessage(); var notifications = await _accessor.GetNotificationTimes(_conversationId); var menu = notifications.Select(notification => $"Usuñ powiadomienie o {notification}").ToList(); menu.Add(AddNotification); menu.Add(EndConfiguration); PromptDialog.Choice(context, OnOptionSelected, menu, "", "", 1); }