private void InitializeNewCustomLabel(GaugeCustomLabel label) { label.Value = label.Scale.MinValue; label.Name = GetLabelName(label.Scale); }
private void CopyLabel(GaugeCustomLabel label) { if (_AddButton != null) { _AddButton.PerformClick(); GaugeCustomLabelCollection lc = label.Scale.CustomLabels; GaugeCustomLabel clone = lc[lc.Count - 1]; label.CopyToItem(clone); } }
public PostRenderScaleCustomLabelEventArgs(Graphics graphics, GaugeCustomLabel customLabel) { _Graphics = graphics; _CustomLabel = customLabel; }
public PreRenderScaleCustomLabelEventArgs(Graphics graphics, GaugeCustomLabel customLabel) : base(graphics, customLabel) { }
internal void OnPostRenderScaleCustomLabel(PaintEventArgs e, GaugeCustomLabel customLabel) { if (PostRenderScaleCustomLabel != null) { PostRenderScaleCustomLabelEventArgs args = new PostRenderScaleCustomLabelEventArgs(e.Graphics, customLabel); PostRenderScaleCustomLabel(this, args); } }
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); }