Exemplo n.º 1
0
        private void changeKnob_KnobChangeValue(object sender, ZeroitLBKnobEventArgs e)
        {
            float percent = Convert.ToInt32(changeKnob.Value * (1 / changeKnob.MaxValue) * 100);


            valueLabel.Text = string.Format("{0}%", Convert.ToInt32(percent));
        }
Exemplo n.º 2
0
 /// <summary>
 /// Handles the <see cref="E:KnobChangeValue" /> event.
 /// </summary>
 /// <param name="e">The <see cref="ZeroitLBKnobEventArgs"/> instance containing the event data.</param>
 protected virtual void OnKnobChangeValue(ZeroitLBKnobEventArgs e)
 {
     if (this.KnobChangeValue != null)
     {
         this.KnobChangeValue(this, e);
     }
 }