private async void OnIdleTimeElapsed(object sender, ElapsedEventArgs e) { StopIdleTimer(); await App.Current.Dispatcher.InvokeAsync(async() => { var reviewDialog = new ReviewDialog(); reviewDialog.DialogResult += OnReviewDialogResult; await DisplayCustomDialog(reviewDialog).ConfigureAwait(false); }); }
void Start() { m_UIManager = gameObject.AddComponent <UIManager>() as UIManager; m_UIManager.SetParameter(9, 3, false); m_UIManager.SetUIHandler(this); m_UIManager.CLEAR = false; reviewDialog = new ReviewDialog(); reviewDialog.SetDialogEventHandler(this); m_UIManager.Add(reviewDialog); m_UIManager.SetUIHandler(this); //m_UIManager.Add(loadingPanel); }
private async static Task ShowReviewDialog() { ReviewDialog dialog = new ReviewDialog(); await dialog.ShowAsync(); }