Exemple #1
0
        private void initializeLegend()
        {
            _legendPresenter.AddLegendItems(new[]
            {
                new LegendItemDTO {
                    Description = AppConstants.Captions.CouldNotResolveSource, Color = MoBiColors.CannotResolve
                },
                new LegendItemDTO {
                    Description = AppConstants.Captions.StartValueIsModified, Color = MoBiColors.Modified
                },
                new LegendItemDTO {
                    Description = AppConstants.Captions.NewlyAddedValues, Color = MoBiColors.Extended
                }
            });

            _view.AddLegendView(_legendPresenter.View);
        }
Exemple #2
0
 protected SelectAndEditStartValuesPresenter(
     ISelectAndEditContainerView view,
     IStartValuesTask <TBuildingBlock, TStartValue> startValuesTask,
     ICloneManagerForBuildingBlock cloneManagerForBuildingBlock,
     IObjectTypeResolver objectTypeResolver,
     IStartValuesPresenter editPresenter,
     ILegendPresenter legendPresenter) : base(view)
 {
     _editPresenter                     = editPresenter;
     _startValuesTask                   = startValuesTask;
     _objectTypeResolver                = objectTypeResolver;
     _cloneManagerForBuildingBlock      = cloneManagerForBuildingBlock;
     _editPresenter.CanCreateNewFormula = false;
     legendPresenter.AddLegendItems(new [] { new LegendItemDTO {
                                                 Description = AppConstants.Captions.AutomaticallyGeneratedValues, Color = MoBiColors.Extended
                                             } });
     View.AddLegendView(legendPresenter.View);
     AddSubPresenters(_editPresenter, legendPresenter);
 }