コード例 #1
0
        private async Task LoadNextNotification(bool activated)
        {
            mSounds.Stop();
            mSounds.Close();
            if (mCurrent != null)
            {
                mCurrent.Callback(activated);
            }

            mTimer.Stop();
            Visibility = Visibility.Collapsed;

            if (mQueue.Count > 0)
            {
                await Task.Delay(TimeSpan.FromSeconds(1));
            }

            if (LoadNotification())
            {
                Visibility = Visibility.Visible;
            }
        }