diff --git a/Saviour Backup System/notificationIcon.cs b/Saviour Backup System/notificationIcon.cs index 2196084..23e4dab 100644 --- a/Saviour Backup System/notificationIcon.cs +++ b/Saviour Backup System/notificationIcon.cs @@ -10,19 +10,29 @@ namespace Saviour_Backup_System class notificationIcon { internal NotifyIcon notifyIcon = new NotifyIcon() ; - internal static ContextMenu contextMenu = new ContextMenu(); + internal ContextMenu contextMenu = new ContextMenu(); internal notificationIcon() { - contextMenu.MenuItems.Add("Show Interface", displayWindow); - + 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); - private static void displayWindow(object sender, EventArgs e) { setup.MW.Show(); } + } + private void displayWindow(object sender, EventArgs e) { setup.MW.showDisplay(); } + + internal void displayStillRunning() { + notifyIcon.BalloonTipText = "Saviour backup system is still running in the background"; + notifyIcon.BalloonTipTitle = "Still running..."; + notifyIcon.ShowBalloonTip(2000); + + } } }