Skip to content

Commit

Permalink
#26. Jenkins Tray main UI now appears when application starts up.
Browse files Browse the repository at this point in the history
  • Loading branch information
zionyx committed Apr 13, 2015
1 parent d2f658f commit efda27a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
3 changes: 2 additions & 1 deletion HudsonTrayTracker/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ static void Main()

// Spring
ContextRegistry.GetContext();
TrayNotifier.Instance.UpdateNotifier();
MainForm.Instance.Show();
TrayNotifier.Instance.UpdateNotifierStartup();

ApplicationContext appContext = new ApplicationContext();
Application.Run(appContext);
Expand Down
8 changes: 8 additions & 0 deletions HudsonTrayTracker/UI/TrayNotifier.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
Expand Down Expand Up @@ -194,6 +195,13 @@ public void UpdateNotifier()
}
}

public void UpdateNotifierStartup()
{
UpdateIcon(BuildStatus.UNKNOWN_BUILD_STATUS);
notifyIcon.Text = Assembly.GetExecutingAssembly().GetName().Name + " " +
Assembly.GetExecutingAssembly().GetName().Version;
}

private void DoUpdateNotifier()
{
BuildStatusEnum? worstBuildStatus = null;
Expand Down

0 comments on commit efda27a

Please sign in to comment.