Initialize() public method

public Initialize ( string title, string subtitle, string main ) : void
title string
subtitle string
main string
return void
コード例 #1
0
        public PopulationAnalysisFieldsView(IImageListRetriever imageListRetriever, IToolTipCreator toolTipCreator)
        {
            _toolTipCreator    = toolTipCreator;
            _toolTipController = new ToolTipController();
            _toolTipController.Initialize(imageListRetriever);

            InitializeComponent();
            _gridViewBinder          = new GridViewBinder <PopulationAnalysisFieldDTO>(gridView);
            gridView.AllowsFiltering = false;
            gridView.OptionsSelection.EnableAppearanceFocusedRow = true;
            gridControl.ToolTipController = _toolTipController;

            //this makes sure that the field is not in edit mode as soon as we click on the field. This is required for a nice user experience with popup
            gridView.EditorShowMode = EditorShowMode.Click;
            PopupBarManager         = new BarManager {
                Form = this, Images = imageListRetriever.AllImagesForContextMenu
            };

            _colorRepository           = new UxRepositoryItemColorPickEditWithHistory(gridView);
            _unitComboBoxRepository    = new UxRepositoryItemComboBox(gridView);
            _scalingComboBoxRepository = new UxRepositoryItemComboBox(gridView);
            _removeField = createEditAndRemoveRepo();
            _removeField.Buttons[_editButtonIndex].Enabled = false;
            _editGroupAndRemoveField = createEditAndRemoveRepo();

            _repositoryItemDisabled = new RepositoryItemTextEdit {
                Enabled = false, ReadOnly = true
            };
            _repositoryItemDisabled.CustomDisplayText += (o, e) => OnEvent(customDisplayText, e);

            _scalingComboBoxRepository.FillComboBoxRepositoryWith(EnumHelper.AllValuesFor <Scalings>());
            gridView.ShowingEditor             += (o, e) => OnEvent(showingEditor, e);
            gridView.CustomDrawEmptyForeground += (o, e) => OnEvent(addMessageInEmptyArea, e);
        }
コード例 #2
0
        public MultipleParameterIdentificationResultsView(IImageListRetriever imageListRetriever, IToolTipCreator toolTipCreator)
        {
            _imageListRetriever = imageListRetriever;
            _toolTipCreator     = toolTipCreator;
            InitializeComponent();
            _gridViewBinder = new GridViewBinder <ParameterIdentificationRunResultDTO>(mainView);

            _repositoryItemTransferToSimulations = new UxRepositoryItemButtonImage(ApplicationIcons.Commit, Captions.ParameterIdentification.TransferToSimulation);
            _timeSpanFormatter = new TimeSpanFormatter();

            _repositoryItemDescription = new RepositoryItemMemoEdit
            {
                AutoHeight = true
            };

            gridControl.ViewRegistered += (o, e) => OnEvent(viewRegistered, o, e);
            gridControl.ViewRemoved    += (o, e) => OnEvent(viewRemoved, o, e);

            var toolTipController = new ToolTipController();

            toolTipController.GetActiveObjectInfo += onToolTipControllerGetActiveObjectInfo;
            toolTipController.Initialize(_imageListRetriever);
            gridControl.ToolTipController = toolTipController;

            initializeMainView();

            initializeOptimizedParametersView();

            //Create a dummy column for the detail view to avoid auto binding to details
            optimizedParametersView.Columns.AddField("Dummy");
        }
コード例 #3
0
        public JournalView(IToolTipCreator toolTipCreator, IImageListRetriever imageListRetriever)
        {
            _toolTipCreator     = toolTipCreator;
            _imageListRetriever = imageListRetriever;
            InitializeComponent();
            _gridViewBinder = new GridViewBinder <JournalPageDTO>(gridView);
            gridView.ShouldUseColorForDisabledCell = false;
            gridView.ShowColumnChooser             = true;
            _rowFontSize    = AppearanceObject.DefaultFont.Size;
            PopupBarManager = new BarManager {
                Form = this, Images = imageListRetriever.AllImagesForContextMenu
            };
            _toolTipCreator = toolTipCreator;
            var toolTipController = new ToolTipController();

            toolTipController.GetActiveObjectInfo += onToolTipControllerGetActiveObjectInfo;
            toolTipController.Initialize(imageListRetriever);
            gridControl.ToolTipController = toolTipController;

            gridView.MouseDown              += (o, e) => OnEvent(onGridViewMouseDown, e);
            gridView.DoubleClick            += (o, e) => OnEvent(onGridViewDoubleClicked, e);
            gridView.RowCellStyle           += (o, e) => OnEvent(onRowCellStyle, e);
            gridView.CustomDrawRowPreview   += (o, e) => OnEvent(onCustomDrawRowPreview, e);
            gridView.ShowFilterPopupListBox += (o, e) => OnEvent(onShowFilterPopupListBox, e);
            gridView.MeasurePreviewHeight   += (o, e) => OnEvent(onMeasurePreviewHeight, e);

            _titleRepository = new RepositoryItemTextEdit();

            _dateTimeFormatter     = new DateTimeFormatter();
            _descriptionRepository = new RepositoryItemRichTextEdit {
                DocumentFormat = DocumentFormat.Html
            };
        }
コード例 #4
0
        public IndividualTransporterExpressionsView(IImageListRetriever imageListRetriever, IToolTipCreator toolTipCreator)
        {
            InitializeComponent();
            _imageListRetriever      = imageListRetriever;
            _toolTipCreator          = toolTipCreator;
            _screenBinder            = new ScreenBinder <TransporterExpressionDTO>();
            gridView.AllowsFiltering = false;
            _gridViewBinder          = new GridViewBinder <TransporterExpressionContainerDTO>(gridView)
            {
                BindingMode = BindingMode.OneWay
            };


            gridView.EndGrouping      += (o, e) => gridView.ExpandAllGroups();
            gridView.GroupFormat       = "[#image]{1}";
            gridView.CustomColumnSort += customColumnSort;
            InitializeWithGrid(gridView);
            panelWarning.Image = ApplicationIcons.Warning;

            var toolTipController = new ToolTipController();

            toolTipController.GetActiveObjectInfo += onToolTipControllerGetActiveObjectInfo;
            toolTipController.Initialize(_imageListRetriever);
            gridView.GridControl.ToolTipController = toolTipController;
        }
コード例 #5
0
        public void CreateForPivotGrid(PKAnalysisPivotGridControl pivotGrid)
        {
            _pivotGrid = pivotGrid;
            var toolTipController = new ToolTipController();

            toolTipController.Initialize(_imageListRetriever);
            toolTipController.GetActiveObjectInfo += onToolTipControllerGetActiveObjectInfo;
            _pivotGrid.ToolTipController           = toolTipController;
        }
コード例 #6
0
 public BuildingBlockSelectionView(IImageListRetriever imageListRetriever, IToolTipCreator toolTipCreator)
 {
     _imageListRetriever = imageListRetriever;
     _toolTipCreator     = toolTipCreator;
     InitializeComponent();
     initializeResource();
     _toolTipController.Initialize(_imageListRetriever);
     cbBuildingBlocks.ToolTipController      = _toolTipController;
     _toolTipController.GetActiveObjectInfo += onToolTipControllerGetActiveObjectInfo;
 }
コード例 #7
0
	public void OnPointerEnter(PointerEventData eventData) {
		GameObject go = Instantiate (TooltipPrefab) as GameObject;
		go.transform.SetParent (transform.parent, false);
		_tooltip = go.GetComponent<ToolTipController> ();
		_tooltip.Initialize (Title, Subtitle, Maintext);
		_tooltip = go.GetComponent<ToolTipController> ();
		_tooltip.SetCost (_cost, _hasEnoughMoney);

		if (_warning != "")
			_tooltip.SetWarning (_warning);
	}
コード例 #8
0
        public CalculationMethodSelectionViewBase(IToolTipCreator toolTipCreator, IImageListRetriever imageListRetriever)
        {
            InitializeComponent();
            _repositoryForCalculationMethods = new UxRepositoryItemComboBox(gridView);
            _toolTipCreator    = toolTipCreator;
            _toolTipController = new ToolTipController();
            _toolTipController.Initialize(imageListRetriever);

            gridView.CustomRowFilter     += customizedRowVisibility;
            gridControl.ToolTipController = _toolTipController;
            gridView.ShowColumnHeaders    = false;
            gridView.HorzScrollVisibility = ScrollVisibility.Never;
            _gridViewBinder = new GridViewBinder <CategoryCalculationMethodDTO>(gridView);
        }
コード例 #9
0
 public PopulationAnalysisAvailablePKParametersView(IToolTipCreator toolTipCreator, IImageListRetriever imageListRetriever)
 {
     _toolTipCreator    = toolTipCreator;
     _toolTipController = new ToolTipController();
     _toolTipController.Initialize(imageListRetriever);
     InitializeComponent();
     _gridViewBinder          = new GridViewBinder <QuantityPKParameterDTO>(gridView);
     gridView.AllowsFiltering = true;
     gridView.MultiSelect     = true;
     gridView.ShouldUseColorForDisabledCell = false;
     gridView.GroupFormat          = "[#image]{1}";
     gridControl.ToolTipController = _toolTipController;
     gridView.DoubleClick         += (o, e) => OnEvent(gridViewDoubleClicked);
     gridView.FocusedRowChanged   += (o, e) => OnEvent(gridViewRowChanged, e);
 }
コード例 #10
0
        public NumberOfBinsGroupingView(IImageListRetriever imageListRetriever, IToolTipCreator toolTipCreator)
        {
            _toolTipCreator = toolTipCreator;
            InitializeComponent();
            _screenBinder             = new ScreenBinder <BinSizeGroupingDTO>();
            _gridViewBinder           = new GridViewBinder <GroupingItemDTO>(gridView);
            gridView.AllowsFiltering  = false;
            gridView.ShowRowIndicator = false;

            var toolTipController = new ToolTipController();

            toolTipController.Initialize(imageListRetriever);
            tbNamingPattern.ToolTipController      = toolTipController;
            toolTipController.GetActiveObjectInfo += (o, e) => OnEvent(getObjectToolTip, e);
        }
コード例 #11
0
        public RelatedItemsView(IImageListRetriever imageListRetriever, IToolTipCreator toolTipCreator)
        {
            _imageListRetriever = imageListRetriever;
            _toolTipCreator     = toolTipCreator;
            InitializeComponent();
            _gridViewBinder          = new GridViewBinder <RelatedItem>(gridView);
            gridView.AllowsFiltering = false;
            gridView.ShouldUseColorForDisabledCell = false;

            var toolTipController = new ToolTipController();

            toolTipController.GetActiveObjectInfo += onToolTipControllerGetActiveObjectInfo;
            toolTipController.Initialize(imageListRetriever);
            gridControl.ToolTipController = toolTipController;
        }
コード例 #12
0
 public PopulationAnalysisObservedDataSettingsView(IToolTipCreator toolTipCreator, IImageListRetriever imageListRetriever)
 {
     _toolTipCreator = toolTipCreator;
     InitializeComponent();
     _screenBinder            = new ScreenBinder <IPopulationAnalysisObservedDataSettingsPresenter>();
     _gridViewBinder          = new GridViewBinder <ObservedDataCurveOptionsDTO>(gridView);
     gridView.AllowsFiltering = false;
     _lineStyleRepository     = new UxLineStylesComboBoxRepository(gridView);
     _symbolsRepository       = new UxSymbolsComboBoxRepository(gridView);
     _colorRepository         = new UxRepositoryItemColorPickEditWithHistory(gridView);
     _visibleRepository       = new UxRepositoryItemCheckEdit(gridView);
     _toolTipController       = new ToolTipController();
     _toolTipController.Initialize(imageListRetriever);
     _toolTipController.GetActiveObjectInfo += (o, e) => OnEvent(onToolTipControllerGetActiveObjectInfo, e);
 }
コード例 #13
0
        public SimulationCompoundsSelectionView(IToolTipCreator toolTipCreator, IImageListRetriever imageListRetriever)
        {
            _toolTipCreator = toolTipCreator;
            InitializeComponent();
            gridView.AllowsFiltering               = false;
            gridView.ShowColumnHeaders             = false;
            gridView.ShowRowIndicator              = false;
            gridView.ShouldUseColorForDisabledCell = false;
            gridView.OptionsSelection.EnableAppearanceFocusedRow = true;

            _gridViewBinder = new GridViewBinder <CompoundSelectionDTO>(gridView);
            var toolTipController = new ToolTipController();

            toolTipController.Initialize(imageListRetriever);
            toolTipController.GetActiveObjectInfo += onToolTipControllerGetActiveObjectInfo;
            gridControl.ToolTipController          = toolTipController;
        }
        public MultipleParameterIdentificationFeedbackView(IImageListRetriever imageListRetriever, IToolTipCreator toolTipCreator)
        {
            _imageListRetriever = imageListRetriever;
            _toolTipCreator     = toolTipCreator;
            InitializeComponent();
            _gridViewBinder                        = new GridViewBinder <MultiOptimizationRunResultDTO>(gridView);
            _repositoryItemDescription             = new RepositoryItemMemoEdit();
            gridView.AllowsFiltering               = false;
            gridView.ShouldUseColorForDisabledCell = false;
            gridView.MultiSelect                   = true;
            gridView.OptionsView.RowAutoHeight     = true;
            var toolTipController = new ToolTipController();

            toolTipController.GetActiveObjectInfo += onToolTipControllerGetActiveObjectInfo;
            toolTipController.Initialize(_imageListRetriever);
            gridControl.ToolTipController = toolTipController;
        }
コード例 #15
0
        public SimulationObserversConfigurationView(IToolTipCreator toolTipCreator, IImageListRetriever imageListRetriever)
        {
            _toolTipCreator = toolTipCreator;
            InitializeComponent();
            _observerSetRepository = new UxRepositoryItemImageComboBox(gridView, imageListRetriever)
            {
                AllowHtmlDraw = DefaultBoolean.True
            };
            _gridViewBinder          = new GridViewBinder <ObserverSetMappingDTO>(gridView);
            gridView.AllowsFiltering = false;
            InitializeWithGrid(gridView);

            var toolTipController = new ToolTipController();

            toolTipController.Initialize(imageListRetriever);
            toolTipController.GetActiveObjectInfo += (o, e) => OnEvent(onToolTipControllerGetActiveObjectInfo, o, e);
            gridControl.ToolTipController          = toolTipController;
        }
コード例 #16
0
 public IndividualSettingsView(IImageListRetriever imageListRetriever, IToolTipCreator toolTipCreator, UserLookAndFeel lookAndFeel)
 {
     InitializeComponent();
     _toolTipController = new ToolTipController();
     _toolTipController.Initialize(imageListRetriever);
     _imageListRetriever = imageListRetriever;
     _toolTipCreator     = toolTipCreator;
     _lookAndFeel        = lookAndFeel;
     gridViewParameterValueVersions.AllowsFiltering = false;
     gridViewCalculationMethods.AllowsFiltering     = false;
     _repositoryForParameterValueVersions           = new UxRepositoryItemComboBox(gridViewParameterValueVersions);
     _repositoryForCalculationMethods = new UxRepositoryItemComboBox(gridViewCalculationMethods);
     gridViewParameterValueVersions.ShowColumnHeaders = false;
     gridViewCalculationMethods.ShowColumnHeaders     = false;
     gridViewCalculationMethods.ShowRowIndicator      = false;
     gridViewParameterValueVersions.ShowRowIndicator  = false;
     gridCalculationMethods.ToolTipController         = _toolTipController;
 }
コード例 #17
0
ファイル: ParameterSetView.cs プロジェクト: VKEkbote/PK-Sim
 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;
 }
コード例 #18
0
        public SensitivityAnalysisResultsView(IImageListRetriever imageListRetriever, IToolTipCreator toolTipCreator)
        {
            _toolTipCreator = toolTipCreator;
            InitializeComponent();
            _lblInfo = new LabelControl {
                Parent = this
            };
            pivotGrid.ToolTipController = new ToolTipController();

            configureFields();

            pivotGrid.OptionsView.ShowColumnHeaders = true;
            pivotGrid.OptionsView.ShowRowHeaders    = true;

            var toolTipController = new ToolTipController();

            toolTipController.Initialize(imageListRetriever);
            toolTipController.GetActiveObjectInfo += (o, e) => OnEvent(onToolTipControllerGetActiveObjectInfo, e);
            pivotGrid.ToolTipController            = toolTipController;
        }
コード例 #19
0
        public void Initialize(IImageListRetriever imageListRetriever, IToolTipCreator toolTipCreator)
        {
            _toolTipCreator = toolTipCreator;
            _title          = new ChartTitle
            {
                Text      = string.Empty,
                Font      = new Font("Arial", 16),
                Alignment = StringAlignment.Center,
                Dock      = ChartTitleDockStyle.Top
            };
            Titles.Add(_title);
            Images              = imageListRetriever.AllImages16x16;
            CrosshairEnabled    = DefaultBoolean.False;
            SelectionMode       = ElementSelectionMode.Single;
            SeriesSelectionMode = SeriesSelectionMode.Point;
            ToolTipController   = new ToolTipController {
                ToolTipType = ToolTipType.SuperTip
            };
            ToolTipController.Initialize(imageListRetriever);

            BoundDataChanged += (o, e) => this.DoWithinExceptionHandler(onBoundDataChanged);
            ObjectHotTracked += (o, e) => this.DoWithinExceptionHandler(() => onObjectHotTracked(e));
            ObjectSelected   += (o, e) => this.DoWithinExceptionHandler(() => onObjectSelected(e));
        }