コード例 #1
0
        private void AddExternalContextMenuStripItems()
        {
            ToolStripMenuItem itemPanelOptions = new ToolStripMenuItem("Panel Options");
            itemPanelOptions.Click += (sender, e) =>
            {
                _watchVarControl.OpenPanelOptions(_contextMenuStrip.Bounds.Location);
            };

            ToolStripMenuItem itemOpenController = new ToolStripMenuItem("Open Controller");
            itemOpenController.Click += (sender, e) => ShowControllerForm();

            ToolStripMenuItem itemAddToCustomTab = new ToolStripMenuItem("Add to Custom Tab");
            itemAddToCustomTab.Click += (sender, e) =>
                _watchVarControl.AddToTab(Config.CustomManager);

            _contextMenuStrip.AddToEndingList(new ToolStripSeparator());
            _contextMenuStrip.AddToEndingList(itemPanelOptions);
            _contextMenuStrip.AddToEndingList(itemOpenController);
            _contextMenuStrip.AddToEndingList(itemAddToCustomTab);
        }
コード例 #2
0
        private void AddExternalContextMenuStripItems()
        {
            ToolStripMenuItem itemOpenController = new ToolStripMenuItem("Open Controller");

            itemOpenController.Click += (sender, e) => ShowControllerForm();

            ToolStripMenuItem itemOpenBitController = new ToolStripMenuItem("Open Bit Controller");

            itemOpenBitController.Click += (sender, e) => ShowBitForm();

            ToolStripMenuItem itemAddToCustomTab = new ToolStripMenuItem("Add to Custom Tab");

            itemAddToCustomTab.Click += (sender, e) =>
                                        _watchVarControl.AddToTab(AccessScope <StroopMainForm> .content.customTab.watchVariablePanelCustom);

            _contextMenuStrip.AddToEndingList(new ToolStripSeparator());
            _contextMenuStrip.AddToEndingList(itemOpenController);
            _contextMenuStrip.AddToEndingList(itemOpenBitController);
            _contextMenuStrip.AddToEndingList(itemAddToCustomTab);
        }
コード例 #3
0
        private void AddExternalContextMenuStripItems()
        {
            ToolStripMenuItem itemOpenController = new ToolStripMenuItem("Open Controller");

            itemOpenController.Click += (sender, e) => ShowControllerForm();

            ToolStripMenuItem itemOpenBitController = new ToolStripMenuItem("Open Bit Controller");

            itemOpenBitController.Click += (sender, e) => ShowBitForm();

            ToolStripMenuItem itemAddToCustomTab = new ToolStripMenuItem("Add to Custom Tab");

            itemAddToCustomTab.Click += (sender, e) =>
                                        _watchVarControl.AddToTab(Config.CustomManager);

            _contextMenuStrip.AddToEndingList(new ToolStripSeparator());
            _contextMenuStrip.AddToEndingList(itemOpenController);
            _contextMenuStrip.AddToEndingList(itemOpenBitController);
            _contextMenuStrip.AddToEndingList(itemAddToCustomTab);
        }