// Create event for the minus button private void buttonMinus(Guna2NumericUpDown Num, Guna2TrackBar track, Label percentage) { if (track.Value - Num.Value >= 1) { track.Value -= (int)Num.Value; percentage.Text = track.Value.ToString() + "°"; } }
// Create event for the add button private void buttonAdd(Guna2NumericUpDown Num, Guna2TrackBar track, Label percentage) { if (track.Value + Num.Value <= 360) { track.Value += (int)Num.Value; percentage.Text = track.Value.ToString() + "°"; } }
private void CheckBox(CheckBox ch, Guna2NumericUpDown num) { if (ch.Checked) { num.Enabled = true; } else { num.Enabled = false; } MoneyEnable(); TotalMoneyEnable(); }
public Paragraph GetElements(CheckBox ch, Guna2NumericUpDown count, iTextSharp.text.Font font) { Paragraph element = new Paragraph(ch.Text + " " + int.Parse(count.Text), font); return(element); }