I am creating a program which runs in the system tray. The menu on the icon is what gives the program its functionality. The program is designed to be able to intake input from the user, and make it into a link. Basically it is a "start" menu.
The program works like this:
Program start -> read config -> load links into an array -> populate the menu -> program exit event -> save all links -> exit
The problem is that I am unsure on how to populate the menu, and then create the events that are associated with each menu item. Any ideas on how I would do this?


