added icons and files
This commit is contained in:
parent
b9dbfe96fa
commit
ef38c3678c
2 changed files with 33 additions and 0 deletions
BIN
Saviour Backup System/Resources/Cd-black-red.ico
Normal file
BIN
Saviour Backup System/Resources/Cd-black-red.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 186 KiB |
33
Saviour Backup System/notificationIcon.cs
Normal file
33
Saviour Backup System/notificationIcon.cs
Normal file
|
@ -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");
|
||||
}
|
||||
}
|
||||
}
|
Reference in a new issue