Good morning! I created a small system that uses some radioButton components, but when it does not set the system generates an error, someone knows how can I make a conference if any radioButton has been dialed. The following is the code below:
RadioButton rbnTurno = groupBox2.Controls.OfType<RadioButton>().SingleOrDefault(r => r.Checked);
RadioButton rbnCategoria = groupBox1.Controls.OfType<RadioButton>().SingleOrDefault(r => r.Checked);
RealizarProcessamento(rbnTurno, rbnCategoria, Convert.ToDouble(textBox2.Text), Convert.ToDouble(textBox1.Text));