trayMenu = new ContextMenu();
var items = trayMenu.MenuItems;
items.Add("Open", OnOpenMainWindow);
items.Add("-");
items.Add("Quit", OnQuitApplication);
private void OnOpenMainWindow(object sender, EventArgs e)
{
Visible = true;
ShowInTaskbar = true;
}