示例#1
0
        private void InitializeNewCustomLabel(GaugeCustomLabel label)
        {
            label.Value = label.Scale.MinValue;

            label.Name = GetLabelName(label.Scale);
        }
示例#2
0
        private void CopyLabel(GaugeCustomLabel label)
        {
            if (_AddButton != null)
            {
                _AddButton.PerformClick();

                GaugeCustomLabelCollection lc = label.Scale.CustomLabels;
                GaugeCustomLabel clone = lc[lc.Count - 1];

                label.CopyToItem(clone);
            }
        }
示例#3
0
 public PostRenderScaleCustomLabelEventArgs(Graphics graphics, GaugeCustomLabel customLabel)
 {
     _Graphics = graphics;
     _CustomLabel = customLabel;
 }
示例#4
0
 public PreRenderScaleCustomLabelEventArgs(Graphics graphics, GaugeCustomLabel customLabel)
     : base(graphics, customLabel)
 {
 }
示例#5
0
        internal void OnPostRenderScaleCustomLabel(PaintEventArgs e, GaugeCustomLabel customLabel)
        {
            if (PostRenderScaleCustomLabel != null)
            {
                PostRenderScaleCustomLabelEventArgs args =
                    new PostRenderScaleCustomLabelEventArgs(e.Graphics, customLabel);

                PostRenderScaleCustomLabel(this, args);
            }
        }
示例#6
0
        internal bool OnPreRenderScaleCustomLabel(PaintEventArgs e, GaugeCustomLabel customLabel)
        {
            if (PreRenderScaleCustomLabel != null)
            {
                PreRenderScaleCustomLabelEventArgs args =
                    new PreRenderScaleCustomLabelEventArgs(e.Graphics, customLabel);

                PreRenderScaleCustomLabel(this, args);

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

            return (false);
        }