/// <summary> /// Initializes a new instance of the <see cref="SimpleGauge"/> class. /// </summary> public SimpleGauge() : base() { InitializeComponent(); Value = 75; Scale = new SimpleScale(this); Pointer = new SimplePointer(this); Height = 2.0f * Units.Centimeters; Width = 8.0f * Units.Centimeters; }
/// <inheritdoc/> public override void Serialize(FRWriter writer, string prefix, GaugeScale diff) { base.Serialize(writer, prefix, diff); SimpleScale dc = diff as SimpleScale; MajorTicks.Serialize(writer, prefix + ".MajorTicks", dc.MajorTicks); MinorTicks.Serialize(writer, prefix + ".MinorTicks", dc.MinorTicks); FirstSubScale.Serialize(writer, prefix + ".FirstSubScale", dc.FirstSubScale); SecondSubScale.Serialize(writer, prefix + ".SecondSubScale", dc.SecondSubScale); }
/// <inheritdoc/> public override void Assign(GaugeScale src) { base.Assign(src); SimpleScale s = src as SimpleScale; MajorTicks.Assign(s.MajorTicks); MinorTicks.Assign(s.MinorTicks); FirstSubScale.Assign(s.FirstSubScale); SecondSubScale.Assign(s.SecondSubScale); }