gardian12
-
2016-07-27
- status: open --> accepted
Open several systems at the same time by ONE click.
Possibility: Context menu of items while selecting a group or a set of entries.
Source Code:
// Add a seperator and menu item to the 'Tools' menu ToolStripItemCollection tsMenu = m_host.MainWindow.ToolsMenu.DropDownItems; m_tsSeparator1 = new ToolStripSeparator(); tsMenu.Add(m_tsSeparator1); menuXYZ = new ToolStripMenuItem(); menuXYZ.Text = "Logon SAP System for all entries"; menuXYZ.Click += OnMenuXYZ; tsMenu.Add(menuXYZ); // Add a seperator and menu item to the group context menu ContextMenuStrip gcm = m_host.MainWindow.GroupContextMenu; m_tsSeparator2 = new ToolStripSeparator(); gcm.Items.Add(m_tsSeparator2); menuXYZ_G = new ToolStripMenuItem(); menuXYZ_G.Text = "Logon SAP System"; menuXYZ_G.Click += OnMenuXYZ_G; gcm.Items.Add(menuXYZ_G); // Add a seperator and menu item to the entry context menu ContextMenuStrip ecm = m_host.MainWindow.EntryContextMenu; m_tsSeparator3 = new ToolStripSeparator(); ecm.Items.Add(m_tsSeparator3); menuXYZ_E = new ToolStripMenuItem(); menuXYZ_E.Text = "Logon SAP System"; menuXYZ_E.Click += OnMenuXYZ_E; ecm.Items.Add(menuXYZ_E);