public async Task ShowLoginDialog(libVLCX.Dialog dialog, string title, string text, string defaultUserName, bool askToStore) { await VLCDialog.WaitForDialogLock(); await DispatchHelper.InvokeInUIThread(Windows.UI.Core.CoreDispatcherPriority.Normal, async() => { _currentDialog = new VLCDialog(title, text, dialog, defaultUserName, askToStore); await _currentDialog.ShowAsync(); }); }
public async Task ShowQuestionDialog(libVLCX.Dialog dialog, string title, string text, libVLCX.Question qType, string cancel, string action1, string action2) { if (qType == libVLCX.Question.warning) { dialog.postAction(1); return; } await VLCDialog.WaitForDialogLock(); await DispatchHelper.InvokeInUIThread(Windows.UI.Core.CoreDispatcherPriority.Normal, async() => { _currentDialog = new VLCDialog(title, text, dialog, qType, cancel, action1, action2); await _currentDialog.ShowAsync(); }); }