Ejemplo n.º 1
0
        private void JobOnStatusChanged(object sender, StatusChangedArgs args)
        {
            JobViewModel job = (JobViewModel)sender;

            if (args.NewValue == BuildStatus.Failed)
            {
                m_notifyIcon.ShowBalloonTip(job.Name, "Build " + args.NewValue, BalloonIcon.Error);
            }
            else if (args.NewValue == BuildStatus.Success && args.OldValue < BuildStatus.Success)
            {
                m_notifyIcon.ShowBalloonTip(job.Name, "Build " + args.NewValue, BalloonIcon.Info);
            }

            SetTaskBarStatus();
        }
Ejemplo n.º 2
0
		private void JobOnStatusChanged(object sender, StatusChangedArgs args)
		{
			JobViewModel job = (JobViewModel) sender;

			if (args.NewValue == BuildStatus.Failed)
				m_notifyIcon.ShowBalloonTip(job.Name, "Build " + args.NewValue, BalloonIcon.Error);
			else if (args.NewValue == BuildStatus.Success && args.OldValue < BuildStatus.Success)
				m_notifyIcon.ShowBalloonTip(job.Name, "Build " + args.NewValue, BalloonIcon.Info);

			SetTaskBarStatus();
		}