November 27th, 2012, 12:41 PM
Making this a public member of the class
I want to make this piece of code a public member of the class but when i do it gives me an exception, the inner exception is:
The method or operation is not implemented
Here is the code i am trying to make public so i do not have to repeat my code over and over again when i want to check my radio buttons to see if any of them have been clicked.
Then inside one function is this
Dim typeRadioButton As RadioButton = _
.OfType(Of RadioButton)() _
.Where(Function(r) r.Checked = True) _
and then i have it inside my checkout button click event as well and would like to not repeat the code everywhere i need it.
If typeRadioButton Is Nothing Then
MessageBox.Show("Type needs to be selected.")
If typeRadioButton.Checked.ToString = True Then
blah blah blah