diff --git a/Saviour Backup System/Resources/Cd-black-red.ico b/Saviour Backup System/Resources/Cd-black-red.ico new file mode 100644 index 0000000..52a2c36 Binary files /dev/null and b/Saviour Backup System/Resources/Cd-black-red.ico differ diff --git a/Saviour Backup System/notificationIcon.cs b/Saviour Backup System/notificationIcon.cs new file mode 100644 index 0000000..e01e01d --- /dev/null +++ b/Saviour Backup System/notificationIcon.cs @@ -0,0 +1,33 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace Saviour_Backup_System +{ + class notificationIcon + { + internal static NotifyIcon notifyIcon; + internal static ContextMenu contextMenu; + + internal static void init() + { + contextMenu = new ContextMenu(); + contextMenu.MenuItems.Add("Show Interface", displayWindow); + + notifyIcon = new NotifyIcon(); + notifyIcon.Text = "Saviour Backup System"; + notifyIcon.Icon = Properties.Resources.redCDIconICO; + + notifyIcon.ContextMenu = contextMenu; + notifyIcon.Visible = true; //finally displays the tray icon + } + + private static void displayWindow(object sender, EventArgs e) + { + MessageBox.Show("Display"); + } + } +}