Beispiel #1
0
 public PostRenderIndicatorEventArgs(Graphics graphics, GaugeIndicator indicator)
 {
     _Graphics = graphics;
     _Indicator = indicator;
 }
Beispiel #2
0
        internal void OnPostRenderIndicator(PaintEventArgs e, GaugeIndicator indicator)
        {
            if (PostRenderIndicator != null)
            {
                PostRenderIndicatorEventArgs args =
                    new PostRenderIndicatorEventArgs(e.Graphics, indicator);

                PostRenderIndicator(this, args);
            }
        }
Beispiel #3
0
 public PreRenderIndicatorEventArgs(Graphics graphics, GaugeIndicator indicator)
     : base(graphics, indicator)
 {
 }
Beispiel #4
0
        internal bool OnPreRenderIndicator(PaintEventArgs e, GaugeIndicator indicator)
        {
            if (PreRenderIndicator != null)
            {
                PreRenderIndicatorEventArgs args =
                    new PreRenderIndicatorEventArgs(e.Graphics, indicator);

                PreRenderIndicator(this, args);

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

            return (false);
        }