/// <summary> /// Initializes a new instance of the <see cref="SimpleScale"/> class. /// </summary> /// <param name="parent">The parent gauge object.</param> public SimpleScale(GaugeObject parent) : base(parent) { MajorTicks = new ScaleTicks(10, 2, Color.Black); MinorTicks = new ScaleTicks(6, 1, Color.Black); majorTicksNum = 6; firstSubScale = new SimpleSubScale(); secondSubScale = new SimpleSubScale(); }
/// <summary> /// Serializes the SimpleSubScale. /// </summary> /// <param name="writer">Writer object.</param> /// <param name="prefix">SimpleSubScale property name.</param> /// <param name="diff">Another SimpleSubScale to compare with.</param> /// <remarks> /// This method is for internal use only. /// </remarks> public virtual void Serialize(FRWriter writer, string prefix, SimpleSubScale diff) { if (Enabled != diff.Enabled) { writer.WriteBool(prefix + ".Enabled", Enabled); } if (ShowCaption != diff.ShowCaption) { writer.WriteBool(prefix + ".ShowCaption", ShowCaption); } }
/// <summary> /// Copies the contents of another SimpleSubScale. /// </summary> /// <param name="src">The SimpleSubScale instance to copy the contents from.</param> public virtual void Assign(SimpleSubScale src) { Enabled = src.Enabled; ShowCaption = src.ShowCaption; }