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