added close program button to notification icon
This commit is contained in:
parent
8c0ef2af64
commit
d0ad8170e8
1 changed files with 3 additions and 0 deletions
|
@ -25,10 +25,13 @@ namespace Saviour_Backup_System
|
||||||
{
|
{
|
||||||
contextMenu.MenuItems.Add("Show Interface", displayWindow);
|
contextMenu.MenuItems.Add("Show Interface", displayWindow);
|
||||||
contextMenu.MenuItems.Add("Copy Progress", showProgress);
|
contextMenu.MenuItems.Add("Copy Progress", showProgress);
|
||||||
|
contextMenu.MenuItems.Add("Exit", closeProgram);
|
||||||
}
|
}
|
||||||
|
|
||||||
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; }
|
private void showProgress(object sender, EventArgs e) { return; }
|
||||||
|
private void closeProgram(object sender, EventArgs e) { setup.closeProgram(); }
|
||||||
|
|
||||||
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