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; }
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); }
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; }
protected override void Context() { _numericOptions = NumericFormatterOptions.Instance; sut = new NumericFormatter <T>(_numericOptions); }
public NumericFormatter(INumericFormatterOptions numericFormatterOptions) { _numericFormatterOptions = numericFormatterOptions; _numerFormatInfo = new NumberFormatInfo(); }