FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit 425053b3 authored by Dr Adam Thorn's avatar Dr Adam Thorn
Browse files

Group notifier menu items under "Actions"

parent e72eda79
No related branches found
No related tags found
No related merge requests found
......@@ -32,16 +32,21 @@ namespace WpkgNotifier
eventLog.Log = logName;
OpenMessageChannel();
MenuItem actionsMenu = new MenuItem("Actions");
MenuItem syncMenuItem = new MenuItem("Sync", new EventHandler(RequestSync));
MenuItem queryMenuItem = new MenuItem("Query", new EventHandler(RequestQuery));
actionsMenu.MenuItems.Add(syncMenuItem);
actionsMenu.MenuItems.Add(queryMenuItem);
MenuItem exitMenuItem = new MenuItem("Exit", new EventHandler(Exit));
notifyIcon = new NotifyIcon();
notifyIcon.Text = "WPKG notifier";
notifyIcon.Icon = WpkgNotifier.Properties.Resources.wpkgIcon;
notifyIcon.ContextMenu = new ContextMenu(new MenuItem[]
{ syncMenuItem, queryMenuItem, exitMenuItem });
{ actionsMenu, exitMenuItem });
notifyIcon.Visible = true;
// reflectively call our ShowContextMenu method upon left-click
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment