I have an event called "OptionChanged" that is triggered when one of many CheckBox's is changed.
string cb = ((CheckBox)sender).Name.Remove(((CheckBox)sender).Name.Count() - 1);
gets the name of the changed CheckBox, removes the last letter then copies it to a string.
Now, i need to find the relevant bool (named exactly like the string) that has already been declared to change its value.
Is this possible?