I found some C# code that works but I don't fully understand it, and that just won't do.
I have a button that will toggle a group of checkboxes on or off all at once. The intent is to save the user the effort of clicking each box individually. This code does the trick.
I mostly understand what it's doing except for the "g => g" portion. What is that?
"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." -- Ted Nelson
Replying to myself again. It's a Lambda expression for Linq. There's some information here. I don't fully understand it because I don't use Lambdas in Java, but I guess I have to learn sometime.
"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." -- Ted Nelson
I'll try that. I haven't done any C# in about 5 years, so I'm learning it all over again. It's changed a lot. I had to go back to Visual Studio 2010 just so it looked familiar. The 2013 version is a different animal.
"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." -- Ted Nelson
Don't get me started about those stupid light bulbs.