From 6123e2d1a787e1589bda612e673423bebdb14a93 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Thu, 6 Nov 2014 10:22:13 +0000 Subject: [PATCH] Removed blank lines, and added another menu item --- Saviour Backup System/notificationIcon.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Saviour Backup System/notificationIcon.cs b/Saviour Backup System/notificationIcon.cs index 23e4dab..671c505 100644 --- a/Saviour Backup System/notificationIcon.cs +++ b/Saviour Backup System/notificationIcon.cs @@ -14,20 +14,21 @@ namespace Saviour_Backup_System internal notificationIcon() { - notifyIcon.Text = "Saviour Backup System"; notifyIcon.Icon = Properties.Resources.redCDIconICO; populateList(); notifyIcon.ContextMenu = contextMenu; notifyIcon.Visible = true; //finally displays the tray icon } + private void populateList() { 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() { notifyIcon.BalloonTipText = "Saviour backup system is still running in the background"; notifyIcon.BalloonTipTitle = "Still running...";