private void c1RadialGauge1_ItemMouseMove(object sender, C1.Win.C1Gauge.ItemMouseEventArgs e) { if (e.Button == MouseButtons.Left) { C1GaugePointer p = e.Gauge.Pointer; p.Value = p.GetValueAt(e.X, e.Y); } }
private void c1LinearGauge1_ItemMouseDown(object sender, C1.Win.C1Gauge.ItemMouseEventArgs e) { if (e.Button == MouseButtons.Left) { C1GaugePointer pointer = c1LinearGauge1.Pointer; if (e.Item is C1GaugeRange) { pointer.Value = pointer.GetValueAt(e.X, e.Y, false); } else if (e.Item is C1GaugeSingleMark) { switch (((C1GaugeSingleMark)e.Item).Name) { case "minusButton": pointer.IncValue(-1, 5.0); break; case "plusButton": pointer.IncValue(1, 5.0); break; } } } }