예제 #1
0
        private void InizializeMenu()
        {
            this.ContextMenuStrip = new ContextMenuStrip();

            ContextMenuBuilder menuBuilder = new ContextMenuBuilder(this.ContextMenuStrip);

            menuBuilder.BlockEditStripItem(OnAddItemClick, OnEditItemClick, OnDeleteItemClick);
        }
예제 #2
0
        private void InizializeMenu()
        {
            scene.ContextMenuStrip      = new ContextMenuStrip();
            typesScene.ContextMenuStrip = new ContextMenuStrip();

            scene.ContextMenuStrip.VisibleChanged      += OnSceneContextMenuStripVisibleChanged;
            typesScene.ContextMenuStrip.VisibleChanged += OnTypesSceneContextMenuStripVisibleChanged;

            ContextMenuBuilder menuBuilder = new ContextMenuBuilder(scene.ContextMenuStrip);

            menuBuilder.BlockEditStripItem(OnAddItemClick, OnEditItemClick, OnDeleteItemClick);

            ContextMenuBuilder typesMenuBuilder = new ContextMenuBuilder(typesScene.ContextMenuStrip);

            typesMenuBuilder.BlockEditStripItem(OnAddSectionTypeClick, OnEditSectionTypeClick, OnDeleteSectionTypeClick);
        }