1
Fork 0

Removed blank lines, and added another menu item

This commit is contained in:
Jake Howard 2014-11-06 10:22:13 +00:00
parent 33aadeb6fb
commit 6123e2d1a7

View file

@ -14,20 +14,21 @@ namespace Saviour_Backup_System
internal notificationIcon() internal notificationIcon()
{ {
notifyIcon.Text = "Saviour Backup System"; notifyIcon.Text = "Saviour Backup System";
notifyIcon.Icon = Properties.Resources.redCDIconICO; notifyIcon.Icon = Properties.Resources.redCDIconICO;
populateList(); populateList();
notifyIcon.ContextMenu = contextMenu; notifyIcon.ContextMenu = contextMenu;
notifyIcon.Visible = true; //finally displays the tray icon notifyIcon.Visible = true; //finally displays the tray icon
} }
private void populateList() private void populateList()
{ {
contextMenu.MenuItems.Add("Show Interface", displayWindow); contextMenu.MenuItems.Add("Show Interface", displayWindow);
contextMenu.MenuItems.Add("Copy Progress", showProgress);
} }
private void displayWindow(object sender, EventArgs e) { setup.MW.showDisplay(); }
private void displayWindow(object sender, EventArgs e) { setup.MW.showDisplay(); }
private void showProgress(object sender, EventArgs e) { return; }
internal void displayStillRunning() { internal void displayStillRunning() {
notifyIcon.BalloonTipText = "Saviour backup system is still running in the background"; notifyIcon.BalloonTipText = "Saviour backup system is still running in the background";
notifyIcon.BalloonTipTitle = "Still running..."; notifyIcon.BalloonTipTitle = "Still running...";