コード例 #1
0
 public ValueOriginBinder(IValueOriginPresenter valueOriginPresenter, IImageListRetriever imageListRetriever, IToolTipCreator toolTipCreator)
 {
     _valueOriginPresenter = valueOriginPresenter;
     _imageListRetriever   = imageListRetriever;
     _toolTipCreator       = toolTipCreator;
     _popupControl.FillWith(_valueOriginPresenter.BaseView);
     _repositoryItemPopupContainerEdit.Buttons[0].Kind        = ButtonPredefines.Combo;
     _repositoryItemPopupContainerEdit.PopupControl           = _popupControl;
     _repositoryItemPopupContainerEdit.CloseOnOuterMouseClick = false;
     _repositoryItemPopupContainerEdit.QueryDisplayText      += (o, e) => queryDisplayText(e);
     _repositoryItemPopupContainerEdit.CloseUp   += (o, e) => closeUp(e);
     _repositoryItemPopupContainerEdit.CloseUpKey = new KeyShortcut(Keys.Enter);
     _repositoryItemPopupContainerEdit.AllowDropDownWhenReadOnly = DefaultBoolean.True;
 }
コード例 #2
0
 public void AttachPresenter(IValueOriginPresenter presenter)
 {
     _presenter = presenter;
 }