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