/// <summary> /// CONSTRUCTOR, reversable, see <see cref="ToString"/>. /// </summary> public AxisRange(string fromText) { if (fromText == null) { throw new ArgumentNullException(nameof(fromText)); } if (fromText == EAxisRange.Automatic.ToUiString()) { this.Mode = EAxisRange.Automatic; this.Value = 0; } else if (fromText == EAxisRange.General.ToUiString()) { this.Mode = EAxisRange.General; this.Value = 0; } else { this.Mode = EAxisRange.Automatic; this.Value = double.Parse(fromText); } }
/// <summary> /// CONSTRUCTOR /// </summary> public AxisRange(EAxisRange mode, double value) { this.Mode = mode; this.Value = value; }