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 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;
        }
Exemplo n.º 3
0
 public ParameterStartValuesView(IDimensionFactory dimensionFactory, ValueOriginBinder <ParameterStartValueDTO> valueOriginBinder) : base(valueOriginBinder)
 {
     InitializeComponent();
     _unitControl                 = new UxComboBoxUnit <ParameterStartValueDTO>(gridControl);
     _dimensionFactory            = dimensionFactory;
     _dimensionComboBoxRepository = new UxRepositoryItemComboBox(gridView);
 }
 public CreatePKSimMoleculeView()
 {
     InitializeComponent();
     _gridViewBinder          = new GridViewBinder <ParameterDTO>(gridView);
     _screenBinder            = new ScreenBinder <MoleculeBuilderDTO>();
     gridView.AllowsFiltering = false;
     _comboBoxUnit            = new UxComboBoxUnit <ParameterDTO>(gridControl);
 }
Exemplo n.º 5
0
 public MoleculeStartValuesView(ValueOriginBinder <MoleculeStartValueDTO> valueOriginBinder) : base(valueOriginBinder)
 {
     InitializeComponent();
     _unitControl         = new UxComboBoxUnit <MoleculeStartValueDTO>(gridControl);
     _checkItemRepository = new UxRepositoryItemCheckEdit(gridView);
 }
Exemplo n.º 6
0
 public EditOutputSchemaView()
 {
     InitializeComponent();
     _comboBoxUnit = new UxComboBoxUnit <ParameterDTO>(gridControl);
 }