FAQ
| This is a
LIVE
service |
Changelog
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
WpkgNotifier
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Yusuf Hamied Department of Chemistry
COs
wpkg
WpkgNotifier
Commits
9e9e8a52
Commit
9e9e8a52
authored
4 years ago
by
Dr Adam Thorn
Browse files
Options
Downloads
Patches
Plain Diff
Add menu item to manage software
parent
188d8ec8
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
WpkgNotifier/TrayNotifier.cs
+7
-1
7 additions, 1 deletion
WpkgNotifier/TrayNotifier.cs
with
7 additions
and
1 deletion
WpkgNotifier/TrayNotifier.cs
+
7
−
1
View file @
9e9e8a52
...
...
@@ -40,13 +40,14 @@ namespace WpkgNotifier
actionsMenu
.
MenuItems
.
Add
(
syncMenuItem
);
actionsMenu
.
MenuItems
.
Add
(
queryMenuItem
);
MenuItem
manageSoftwarePage
=
new
MenuItem
(
"Manage software"
,
new
EventHandler
(
ManageSoftware
));
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
[]
{
actionsMenu
,
exitMenuItem
});
{
actionsMenu
,
manageSoftwarePage
,
exitMenuItem
});
notifyIcon
.
Visible
=
true
;
// reflectively call our ShowContextMenu method upon left-click
...
...
@@ -97,6 +98,11 @@ namespace WpkgNotifier
messageChannel
.
HandleMessage
(
WpkgMessageRequestType
.
RUN_QUERY
);
}
void
ManageSoftware
(
object
sender
,
EventArgs
e
)
{
System
.
Diagnostics
.
Process
.
Start
(
"https://apps.ch.cam.ac.uk/wpkg"
);
}
void
Exit
(
object
sender
,
EventArgs
e
)
{
// We must manually tidy up and remove the icon before we exit.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment