public void DeselectAll()
        {
            //cache locally as UpdateSelection will be triggerd
            var allMolecules = _selectedQuantityListPresenter.AllQuantityDTOs.ToList();

            _selectedQuantityListPresenter.UpdateSelection(allMolecules, selected: false);
        }
        public override void InitializeBinding()
        {
            _pathElementsBinder.InitializeBinding(_gridViewBinder);

            var colDimension = _gridViewBinder.AutoBind(x => x.DimensionDisplayName)
                               .WithCaption(Captions.Dimension)
                               .AsReadOnly();

            _otherColumns.Add(QuantityColumn.Dimension, colDimension);

            var colQuantityType = _gridViewBinder.AutoBind(x => x.QuantityType)
                                  .AsReadOnly();

            _otherColumns.Add(QuantityColumn.QuantityType, colQuantityType);

            var colSelection = _gridViewBinder.AutoBind(x => x.Selected)
                               .WithRepository(x => _selectionRepository)
                               .WithOnChanged(dto => OnEvent(() => _presenter.UpdateSelection(dto)));

            _otherColumns.Add(QuantityColumn.Selection, colSelection);

            _colSequence = _gridViewBinder.Bind(x => x.Sequence).AsHidden();
            gridView.PopupMenuShowing += (o, e) => OnEvent(showPopupMenu, e);
        }