private void InizializeMenu() { this.ContextMenuStrip = new ContextMenuStrip(); ContextMenuBuilder menuBuilder = new ContextMenuBuilder(this.ContextMenuStrip); menuBuilder.BlockEditStripItem(OnAddItemClick, OnEditItemClick, OnDeleteItemClick); }
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); }