private void c1RadialGauge1_FormatLabel(object sender, FormatLabelEventArgs e) { if (double.IsNaN(e.Value)) { e.Text = "Off"; } }
private void c1RadialGauge1_FormatLabel(object sender, FormatLabelEventArgs e) { if (_roman && e.Decorator.Name == "nums") { switch (Convert.ToInt32(e.ScaledValue)) { case 1: e.Text = "I"; break; case 2: e.Text = "II"; break; case 3: e.Text = "III"; break; case 4: e.Text = "IV"; break; case 5: e.Text = "V"; break; case 6: e.Text = "VI"; break; case 7: e.Text = "VII"; break; case 8: e.Text = "VIII"; break; case 9: e.Text = "IX"; break; case 10: e.Text = "X"; break; case 11: e.Text = "XI"; break; case 12: e.Text = "XII"; break; } } }