예제 #1
0
        private void ShowBalloon(object data)
        {
            NotifyBalloon balloon = new NotifyBalloon();

            balloon.TrackInfos = ((Controller.SpotifyController)data).TrackInfos;

            lock (NotifyIcon)
            {
                if (NotifyIcon.CustomBalloon != null && NotifyIcon.CustomBalloon.IsOpen)
                {
                    NotifyIcon.ChangeBalloonCloseTimer(NotifyBalloon.DISPLAY_DELAY);
                }
                else
                {
                    NotifyIcon.ShowCustomBalloon(balloon, PopupAnimation.Fade, NotifyBalloon.DISPLAY_DELAY);
                }
            }
        }