Esempio n. 1
0
        public async Task HintWindow_ShowAndWait(string message)
        {
            if (_hintDispatchTimer == null)
            {
                _hintDispatchTimer          = new DispatcherTimer();
                _hintDispatchTimer.Tick    += HintReminder_Tick;
                _hintDispatchTimer.Interval = TimeSpan.FromSeconds(5);
            }
            _hintDispatchTimer.Start();
            await HintWindow.ShowAndWait(message);

            ViewCallback.RemindUserToHitContinue(false);
            _hintDispatchTimer.Stop();
        }
Esempio n. 2
0
 private void HintReminder_Tick(object sender, object e)
 {
     ViewCallback.RemindUserToHitContinue(true);
     _hintDispatchTimer.Stop();
 }