Пример #1
0
        private void CancelDemoPlaybackToolStripMenuItem_Click(object sender, EventArgs e)
        {
            // Make sure that the context menu is actually enabled. It's possible to right click to pop up the menu and just leave it open, then when the menu is disabled it doesn't disappear. The user can then erroneously activate the menu item.
            if (!SystemTrayIcon.HasContextMenuStrip)
            {
                return;
            }

            launcher.AbortProcessMonitor();
            LaunchedProcessClosed();
        }