public static async void Show(MessageDialog msgDialog, List <UICommand> commands, uint defaultCommandIndex = 0, uint cancelCommandIndex = 0) { var message = msgDialog; foreach (UICommand command in commands) { message.Commands.Add(command); } message.DefaultCommandIndex = defaultCommandIndex; message.CancelCommandIndex = cancelCommandIndex; msgResponseAsyncOperation = await message.ShowAsync(); }
public static async void Show(MessageDialog msgDialog, List<UICommand> commands, uint defaultCommandIndex = 0, uint cancelCommandIndex = 0) { var message = msgDialog; foreach (UICommand command in commands) { message.Commands.Add(command); } message.DefaultCommandIndex = defaultCommandIndex; message.CancelCommandIndex = cancelCommandIndex; msgResponseAsyncOperation = await message.ShowAsync(); }