示例#1
0
 public AxisBinder(OSPAxis axis, UxChartControl chartControl, INumericFormatterOptions numericFormatterOptions)
 {
     Axis          = axis;
     _chartControl = chartControl;
     _unitToMinorIntervalMapper = new UnitToMinorIntervalMapper();
     _defaultMinorTickCount     = AxisType == AxisTypes.X ? DEVEXPRESS_DEFAULT_X_MINOR_TICKS : DEVEXPRESS_DEFAULT_Y_MINOR_TICKS;
     _axisView = retrieveAxisView();
     _axisView.VisualRange.Auto = false;
     _numericFormatterOptions   = numericFormatterOptions;
 }
示例#2
0
        public LabelGenerationOptions()
        {
            _intervalRegexCache = new Cache <string, Regex>
            {
                { _startPattern, new Regex(createIntervalRegexPattern(_startPattern)) },
                { _endPattern, new Regex(createIntervalRegexPattern(_endPattern)) }
            };

            _numericFormatterOptions = new NumericFormatterOptions();
            _defaultFormatterOptions = NumericFormatterOptions.Instance;
            _numericFormatter        = new NumericFormatter <double>(_numericFormatterOptions);
        }
示例#3
0
        public UserSettings(DockManager dockManager, RibbonBarManager ribbonManager, INumericFormatterOptions numericFormatterOptions,
                            ISkinManager skinManager, IPKSimConfiguration configuration, DirectoryMapSettings directoryMapSettings)
        {
            _dockManager             = dockManager;
            _ribbonManager           = ribbonManager;
            _numericFormatterOptions = numericFormatterOptions;
            _skinManager             = skinManager;
            _directoryMapSettings    = directoryMapSettings;

            DisplayUnits     = new DisplayUnitsManager();
            ComparerSettings = new ComparerSettings {
                CompareHiddenEntities = false
            };
            ProjectFiles = new List <string>();
            Rules.AddRange(AllRules.All());
            DiagramOptions            = new DiagramOptions();
            TemplateDatabasePath      = configuration.DefaultTemplateUserDatabasePath;
            JournalPageEditorSettings = new JournalPageEditorSettings();
            ParameterIdentificationFeedbackEditorSettings = new ParameterIdentificationFeedbackEditorSettings();
            SensitivityAnalysisFeedbackEditorSettings     = new SensitivityAnalysisFeedbackEditorSettings();
            ResetToDefault();
            _layoutWasExplicitelyReset = false;
        }
示例#4
0
 protected override void Context()
 {
     _numericOptions = NumericFormatterOptions.Instance;
     sut             = new NumericFormatter <T>(_numericOptions);
 }
示例#5
0
 public NumericFormatter(INumericFormatterOptions numericFormatterOptions)
 {
     _numericFormatterOptions = numericFormatterOptions;
     _numerFormatInfo         = new NumberFormatInfo();
 }