public CustomDrum() : base("CustomDrum", new Size(50d, 100d)) { _Drum = new Gauges.CustomGaugeNeedle(_drumImage, new Point(0, 0), new Size(50, 1000), new Point(0, 0)); _Drum.Clip = new RectangleGeometry(new Rect(1d, 1d, 50d, 100d)); Components.Add(_Drum); _drumOffset = new HeliosValue(this, new BindingValue(0d), "", "Drum tape offset", "Value between configured Min and Max", "", BindingValueUnits.Numeric); _drumOffset.Execute += new HeliosActionHandler(DrumOffset_Execute); Actions.Add(_drumOffset); Values.Add(_drumOffset); }
public CustomTape() : base("CustomTape", new Size(200d, 200d)) { _Background = new Gauges.GaugeImage(_backgroundImage, new Rect(0, 0, _gaugeWidth, _gaugeHeight)); Components.Add(_Background); _Tape = new Gauges.CustomGaugeNeedle(_tapeImage, new Point(0, 0), new Size(200, 200), new Point(100, 100)); _Tape.Clip = new RectangleGeometry(new Rect(1d, 1d, 198d, 198d)); Components.Add(_Tape); _OffFlag = new Gauges.GaugeImage(_offFlagImage, new Rect(1d, 1d, 55d, 55d)); _OffFlag.IsHidden = false; Components.Add(_OffFlag); _Foreground = new Gauges.GaugeImage(_foregroundImage, new Rect(0, 0, _gaugeWidth, _gaugeHeight)); Components.Add(_Foreground); _offFlag = new HeliosValue(this, new BindingValue(false), "", "Off Flag", "Indicates whether the \"Off Flag\" is displayed.", "True if displayed.", BindingValueUnits.Boolean); _offFlag.Execute += new HeliosActionHandler(OffFlag_Execute); Actions.Add(_offFlag); _tapeOffset = new HeliosValue(this, new BindingValue(0d), "", "Tape Vertical Offset", "Values between configured Min and Max", "", BindingValueUnits.Numeric); _tapeOffset.Execute += new HeliosActionHandler(TapeOffset_Execute); Actions.Add(_tapeOffset); Values.Add(_tapeOffset); _tapeHOffset = new HeliosValue(this, new BindingValue(0d), "", "Tape Horizontal Offset", "Values between configured Min and Max", "", BindingValueUnits.Numeric); _tapeHOffset.Execute += new HeliosActionHandler(TapeHOffset_Execute); Actions.Add(_tapeHOffset); Values.Add(_tapeHOffset); _tapeRotation = new HeliosValue(this, new BindingValue(0d), "", "Tape Rotation", "Values between configured Min and Max", "", BindingValueUnits.Numeric); _tapeRotation.Execute += new HeliosActionHandler(TapeRotation_Execute); Actions.Add(_tapeRotation); Values.Add(_tapeRotation); _tapeImageRefresh = new HeliosValue(this, new BindingValue(false), "", "Tape Image Reload", "Indicates a reload of the Tape image", "set true to reload.", BindingValueUnits.Boolean); _tapeImageRefresh.Execute += new HeliosActionHandler(TapeImageRefresh_Execute); Actions.Add(_tapeImageRefresh); Values.Add(_tapeImageRefresh); }