Esempio n. 1
0
        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();
        }
Esempio n. 2
0
 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();
 }