Exemplo n.º 1
0
        protected virtual void OnCanSee(MoviesEventArgs e)
        {
            EventHandler <MoviesEventArgs> handler = CanSee;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Exemplo n.º 2
0
        void _model_CanSee(object sender, MoviesEventArgs e)
        {
            if (NotifyIcon.IsPopupOpen)
            {
                return;
            }

            Balloon.Title = TranslationManager.Instance.Translate("HasNewSeries");
            var builder = new System.Text.StringBuilder();

            foreach (var movie in e.Movies)
            {
                builder.AppendLine(movie.Title);
            }
            Balloon.Text = builder.ToString();



            //show balloon and close it after 4 seconds
            NotifyIcon.ShowCustomBalloon(Balloon, PopupAnimation.Slide, 4000);
        }