Removed blank lines, and added another menu item
This commit is contained in:
parent
33aadeb6fb
commit
6123e2d1a7
1 changed files with 4 additions and 3 deletions
|
@ -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...";
|
||||||
|
|
Reference in a new issue