Example #1
0
 public Axis(AxisTypes axisType)
 {
     AxisType          = axisType;
     _caption          = string.Empty;
     _scaling          = Scalings.Linear;
     _numberMode       = NumberModes.Normal;
     _dimension        = null;
     _unitName         = string.Empty;
     _gridLines        = false;
     _min              = null;
     _max              = null;
     Visible           = true;
     _defaultLineStyle = defaultLineStyleForAxisType();
     _defaultColor     = Color.White;
     Rules             = new BusinessRuleSet(ValidationRules.AllRules());
 }
Example #2
0
 private string GetNumberFormat(NumberModes mode, int width)
 {
     return NumberFormats[mode].Replace("X", "X" + width);
 }