public override IEnumerable <IMenuBarItem> AllMenuItems()
        {
            yield return(CreateMenuButton.WithCaption(AppConstants.MenuNames.Rename)
                         .WithActionCommand(() => _presenter.Rename(_formulaDTO))
                         .WithIcon(ApplicationIcons.Rename));

            yield return(CreateMenuButton.WithCaption(AppConstants.MenuNames.Clone)
                         .WithActionCommand(() => _presenter.Clone(_formulaDTO))
                         .WithIcon(ApplicationIcons.Clone));

            yield return(CreateMenuButton.WithCaption(AppConstants.MenuNames.Delete)
                         .WithActionCommand(() => _presenter.Remove(_formulaDTO))
                         .WithIcon(ApplicationIcons.Delete)
                         .AsGroupStarter());
        }
        public override void InitializeBinding()
        {
            base.InitializeBinding();
            _gridBinder = new GridViewBinder <FormulaBuilderDTO>(grdFormulaList);
            _gridBinder.Bind(dto => dto.Name).AsReadOnly();
            _gridBinder.Bind(dto => dto.FormulaType)
            .WithCaption(AppConstants.Captions.FormulaType)
            .AsReadOnly();
            _gridBinder.Bind(dto => dto.Dimension).AsReadOnly();
            var buttonRepository = createAddRemoveButtonRepository();

            _gridBinder.AddUnboundColumn()
            .WithCaption(OSPSuite.UI.UIConstants.EMPTY_COLUMN)
            .WithShowButton(ShowButtonModeEnum.ShowAlways)
            .WithRepository(dto => buttonRepository)
            .WithFixedWidth(OSPSuite.UI.UIConstants.Size.EMBEDDED_BUTTON_WIDTH);

            grdFormulaList.FocusedRowChanged += (o, e) => OnEvent(() => _presenter.Select(_gridBinder.ElementAt(e.FocusedRowHandle)));
            grdFormulaList.MouseDown         += (o, e) => OnEvent(onGridViewMouseDown, e);
            buttonRepository.ButtonClick     += (o, e) => OnEvent(() => _presenter.Remove(_gridBinder.FocusedElement));
        }