Beispiel #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();
        }
Beispiel #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();
		}