Beispiel #1
0
        public GaugePinLabel(GaugePin gaugePin)
        {
            _Text = "";

            _GaugePin = gaugePin;

            Scale = gaugePin.Scale;
        }
Beispiel #2
0
 public PostRenderScaleGaugePinEventArgs(Graphics graphics, GaugePin gaugePin)
 {
     _Graphics = graphics;
     _GaugePin = gaugePin;
 }
Beispiel #3
0
 public PreRenderScaleGaugePinEventArgs(Graphics graphics, GaugePin gaugePin)
     : base(graphics, gaugePin)
 {
 }
Beispiel #4
0
        internal void OnPostRenderScaleGaugePin(PaintEventArgs e, GaugePin gaugePin)
        {
            if (PostRenderScaleGaugePin != null)
            {
                PostRenderScaleGaugePinEventArgs args =
                    new PostRenderScaleGaugePinEventArgs(e.Graphics, gaugePin);

                PostRenderScaleGaugePin(this, args);
            }
        }
Beispiel #5
0
        internal bool OnPreRenderScaleGaugePin(PaintEventArgs e, GaugePin gaugePin)
        {
            if (PreRenderScaleGaugePin != null)
            {
                PreRenderScaleGaugePinEventArgs args =
                    new PreRenderScaleGaugePinEventArgs(e.Graphics, gaugePin);

                PreRenderScaleGaugePin(this, args);

                if (args.Cancel == true)
                    return (true);
            }

            return (false);
        }
Beispiel #6
0
        public override object Clone()
        {
            GaugePin copy = new
                GaugePin(_Scale, _IsMaxPin, Name);

            CopyToItem(copy);

            return (copy);
        }