private RepositoryItem createRepositoryItemFor <T>() { var repositoryItem = new RepositoryItemTextEdit(); repositoryItem.ConfigureWith(typeof(T)); return(repositoryItem); }
public SolubilityGroupView(IToolTipCreator toolTipCreator, IImageListRetriever imageListRetriever, ValueOriginBinder <SolubilityAlternativeDTO> valueOriginBinder) : base(toolTipCreator, imageListRetriever, valueOriginBinder) { InitializeComponent(); _repositoryItemPopupContainerEdit.Buttons[0].Kind = ButtonPredefines.Combo; _repositoryItemPopupContainerEdit.PopupControl = _popupControl; _repositoryItemPopupContainerEdit.CloseOnOuterMouseClick = false; _repositoryItemPopupContainerEdit.QueryDisplayText += queryDisplayText; _repositoryItemPopupContainerEdit.EditValueChanged += editValueChanged; _stantdardParameterEditRepository.ConfigureWith(typeof(double)); _stantdardParameterEditRepository.Appearance.TextOptions.HAlignment = HorzAlignment.Far; _readonlyTextEdit.ReadOnly = true; _gridView.RowCellStyle += (o, e) => OnEvent(updateRowCellStyle, e); _gridView.ShowingEditor += (o, e) => OnEvent(onShowingEditor, e); }
public ParameterSetView(IToolTipCreator toolTipCreator, IImageListRetriever imageListRetriever) { InitializeComponent(); _imageListRetriever = imageListRetriever; _toolTipController = new ToolTipController(); _toolTipCreator = toolTipCreator; _isFixedParameterEditRepository = new UxRepositoryItemButtonImage(ApplicationIcons.Reset, PKSimConstants.UI.ResetParameterToolTip) { TextEditStyle = TextEditStyles.Standard }; _toolTipController.GetActiveObjectInfo += onToolTipControllerGetActiveObjectInfo; _toolTipController.Initialize(_imageListRetriever); PopupBarManager = new BarManager { Form = this, Images = imageListRetriever.AllImagesForContextMenu }; _stantdardParameterEditRepository.ConfigureWith(typeof(double)); _stantdardParameterEditRepository.Appearance.TextOptions.HAlignment = HorzAlignment.Far; _isFixedParameterEditRepository.Buttons[0].IsLeft = true; }
public CompoundTypeGroupView() { InitializeComponent(); _gridViewBinder = new GridViewBinder <TypePKaDTO>(gridView) { BindingMode = BindingMode.OneWay, }; _compoundTypeRepository = new UxRepositoryItemComboBox(gridView); _parameterEditRepository.ConfigureWith(typeof(double)); _parameterEditRepository.Appearance.TextOptions.HAlignment = HorzAlignment.Far; _favoriteRepository = new UxRepositoryItemCheckEdit(gridView); gridView.ShowColumnHeaders = false; gridView.RowCellStyle += (o, e) => OnEvent(updateRowCellStyle, e); gridView.AllowsFiltering = false; gridView.ShowingEditor += (o, e) => OnEvent(onShowingEditor, e); gridView.ShowRowIndicator = false; InitializeWithGrid(gridView); }