public EditParameterListView(PathElementsBinder <ParameterDTO> pathBinder, IImageListRetriever imageListRetriever, IToolTipCreator toolTipCreator, ValueOriginBinder <ParameterDTO> valueOriginBinder) { InitializeComponent(); _valueOriginBinder = valueOriginBinder; _gridViewBinder = new GridViewBinder <ParameterDTO>(_gridView); _unitControl = new UxComboBoxUnit <ParameterDTO>(_gridControl); _pathBinder = pathBinder; _toolTipCreator = toolTipCreator; _gridView.HiddenEditor += (o, e) => hideEditor(); _gridView.ShowRowIndicator = true; _gridView.OptionsSelection.EnableAppearanceFocusedRow = true; _gridView.OptionsView.ShowGroupPanel = false; _gridControl.MouseDoubleClick += onDoubleClick; _gridView.MouseDown += (o, e) => OnEvent(onGridViewMouseDown, e); _favoriteRepository = new UxRepositoryItemCheckEdit(_gridView); PopupBarManager = new BarManager { Form = this, Images = imageListRetriever.AllImages16x16 }; var toolTipController = new ToolTipController { AllowHtmlText = true }; toolTipController.GetActiveObjectInfo += onToolTipControllerGetActiveObjectInfo; _gridControl.ToolTipController = toolTipController; }
public EditParametersInContainerView(IToolTipCreator toolTipCreator, ValueOriginBinder <ParameterDTO> valueOriginBinder) { _toolTipCreator = toolTipCreator; _valueOriginBinder = valueOriginBinder; InitializeComponent(); var toolTipController = new ToolTipController { AllowHtmlText = true }; _unitControl = new UxComboBoxUnit <ParameterDTO>(gridControl); _gridView.HiddenEditor += (o, e) => hideEditor(); gridControl.KeyDown += gridViewKeyDown; gridControl.ToolTipController = toolTipController; //specific grid settings for parameter _gridView.ShowRowIndicator = true; _gridView.OptionsSelection.EnableAppearanceFocusedRow = true; _gridView.OptionsView.ShowGroupPanel = false; splitContainerControl.CollapsePanel = SplitCollapsePanel.Panel2; splitContainerControl.PanelVisibility = SplitPanelVisibility.Panel1; _gridView.GroupFormat = "[#image]{1}"; _gridView.EndGrouping += (o, e) => _gridView.ExpandAllGroups(); toolTipController.GetActiveObjectInfo += onToolTipControllerGetActiveObjectInfo; _checkBoxRepository = new UxRepositoryItemCheckEdit(_gridView); }
public ParameterStartValuesView(IDimensionFactory dimensionFactory, ValueOriginBinder <ParameterStartValueDTO> valueOriginBinder) : base(valueOriginBinder) { InitializeComponent(); _unitControl = new UxComboBoxUnit <ParameterStartValueDTO>(gridControl); _dimensionFactory = dimensionFactory; _dimensionComboBoxRepository = new UxRepositoryItemComboBox(gridView); }
public EditValueOriginView(ValueOriginBinder <ValueOriginDTO> valueOriginBinder) { _valueOriginBinder = valueOriginBinder; InitializeComponent(); _gridViewBinder = new GridViewBinder <ValueOriginDTO>(gridView); gridView.ShowRowIndicator = false; gridView.ShowColumnHeaders = false; gridView.AllowsFiltering = false; }
public ParameterSetView(IToolTipCreator toolTipCreator, IImageListRetriever imageListRetriever, ValueOriginBinder <ParameterDTO> valueOriginBinder) { 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; _valueOriginBinder = valueOriginBinder; }
public GridViewForm(ValueOriginBinder <ParameterDTO> valueOriginBinder) { _valueOriginBinder = valueOriginBinder; InitializeComponent(); gridView.ShouldUseColorForDisabledCell = false; gridView.OptionsSelection.MultiSelectMode = GridMultiSelectMode.CellSelect; gridView.OptionsSelection.EnableAppearanceFocusedRow = true; gridView.OptionsSelection.EnableAppearanceFocusedCell = true; gridView.OptionsSelection.MultiSelect = true; _gridViewBinder = new GridViewBinder <ParameterDTO>(gridView); initializeBinding(); _allParameters = generateDummyContent().ToList(); _gridViewBinder.BindToSource(_allParameters.ToBindingList()); _firstParmaeter = _allParameters[0]; _firstParmaeter.PropertyChanged += propertyChanged; }
public CompoundParameterWithDefaultAlternativeBaseView(IToolTipCreator toolTipCreator, IImageListRetriever imageListRetriever, ValueOriginBinder <TParameterAlternativeDTO> valueOriginBinder) : this() { _toolTipCreator = toolTipCreator; _imageListRetriever = imageListRetriever; _valueOriginBinder = valueOriginBinder; _gridView.HiddenEditor += (o, e) => OnEvent(hideEditor); _gridView.AllowsFiltering = false; _gridView.ShowColumnChooser = false; _comboBoxUnit = new ComboBoxUnitParameter(_gridControl); _isDefaultRepository = new UxRepositoryItemCheckEdit(_gridView); _gridControl.ToolTipController = new ToolTipController().Initialize(imageListRetriever); _gridControl.ToolTipController.GetActiveObjectInfo += (o, e) => OnEvent(onToolTipControllerGetActiveObjectInfo, o, e); _nameRepository = new UxRepositoryItemButtonEdit(ButtonPredefines.Ellipsis) { TextEditStyle = TextEditStyles.DisableTextEditor }; _nameRepository.Buttons[0].ToolTip = PKSimConstants.UI.Rename; _gridViewBinder = new GridViewBinder <TParameterAlternativeDTO>(_gridView) { BindingMode = BindingMode.OneWay }; InitializeWithGrid(_gridView); }
protected BaseStartValuesView(ValueOriginBinder <TStartValue> valueOriginBinder) { _valueOriginBinder = valueOriginBinder; InitializeComponent(); configureGridView(); _gridViewBinder = new GridViewBinder <TStartValue>(gridView); _pathValues = new List <string>(); _pathRepositoryItemComboBox = new RepositoryItemComboBox { TextEditStyle = TextEditStyles.Standard }; _pathRepositoryItemComboBox.SelectedValueChanged += (o, e) => gridView.PostEditor(); checkFilterModified.Text = AppConstants.Captions.ShowOnlyChangedStartValues; checkFilterModified.CheckStateChanged += (o, e) => OnEvent(filterChanged); checkFilterNew.Text = AppConstants.Captions.ShowOnlyNewStartValues; checkFilterNew.CheckStateChanged += (o, e) => OnEvent(filterChanged); gridView.CustomRowFilter += gridViewOnCustomRowFilter; _screenBinder = new ScreenBinder <IStartValuesPresenter <TStartValue> >(); }
public FractionUnboundGroupView(IToolTipCreator toolTipCreator, IImageListRetriever imageListRetriever, ValueOriginBinder <FractionUnboundAlternativeDTO> valueOriginBinder) : base(toolTipCreator, imageListRetriever, valueOriginBinder) { InitializeComponent(); _speciesRepository = new UxRepositoryItemImageComboBox(_gridView, imageListRetriever); }
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 MultiParameterEditView(IToolTipCreator toolTipCreator, IImageListRetriever imageListRetriever, ValueOriginBinder <ParameterDTO> valueOriginBinder, PathElementsBinder <ParameterDTO> pathElementsBinder) : base(toolTipCreator, imageListRetriever, valueOriginBinder) { _pathElementsBinder = pathElementsBinder; InitializeComponent(); Initialize(gridView); initRepositories(); //Allow cell selection gridView.OptionsSelection.EnableAppearanceFocusedRow = true; gridView.EditorShowMode = EditorShowMode.MouseUp; gridView.CustomColumnSort += customColumnSort; gridView.EndGrouping += updateGrouping; CustomSortEnabled = true; gridView.SelectionChanged += (o, e) => OnEvent(_presenter.SelectedParametersChanged); }
public ParametersByGroupView(IToolTipCreator toolTipCreator, IImageListRetriever imageListRetriever, ValueOriginBinder <ParameterDTO> valueOriginBinder) : base(toolTipCreator, imageListRetriever, valueOriginBinder) { InitializeComponent(); Initialize(gridViewParameters); gridViewParameters.AllowsFiltering = false; gridViewParameters.CustomColumnSort += customColumnSort; }
public MoleculeStartValuesView(ValueOriginBinder <MoleculeStartValueDTO> valueOriginBinder) : base(valueOriginBinder) { InitializeComponent(); _unitControl = new UxComboBoxUnit <MoleculeStartValueDTO>(gridControl); _checkItemRepository = new UxRepositoryItemCheckEdit(gridView); }
public LipophilicityGroupView(IToolTipCreator toolTipCreator, IImageListRetriever imageListRetriever, ValueOriginBinder <LipophilictyAlternativeDTO> valueOriginBinder) : base(toolTipCreator, imageListRetriever, valueOriginBinder) { InitializeComponent(); }
public GridTestStarter(ValueOriginBinder <ParameterDTO> valueOriginBinder) { _dataGridView = new GridViewForm(valueOriginBinder); }
public CompoundParameterGroupWithCalculatedDefaultBaseView(IToolTipCreator toolTipCreator, IImageListRetriever imageListRetriever, ValueOriginBinder <TParameterAlternativeDTO> valueOriginBinder) : base(toolTipCreator, imageListRetriever, valueOriginBinder) { InitializeComponent(); _repositoryItemPopupContainerEdit.Buttons[0].Kind = ButtonPredefines.Combo; _repositoryItemPopupContainerEdit.PopupControl = _popupControl; _repositoryItemPopupContainerEdit.CloseOnOuterMouseClick = false; _repositoryItemPopupContainerEdit.QueryDisplayText += (o, e) => OnEvent(queryDisplayText, e); _repositoryItemPopupContainerEdit.EditValueChanged += (o, e) => OnEvent(() => _gridView.PostEditor()); }