How to run tweak methods dynamically from JSON with parameters?
I'm building a WPF app that applies Windows tweaks like dark mode etc.
I've got a C# class
.
Errors go to Console.WriteLine.
I want the UI to show all tweaks grouped by class (as categories), let users check what they want, and then apply them one by one even if some fail.
The goal is to define all tweaks in a JSON file with the name, description, class/method, and optional enum param — so the UI builds dynamically and I don’t have to hardcode anything. For things like PS5 vs PS7, each should be a separate entry in the list.
Here’s the repo: https://github.com/PUXSY/WinRep-Code
What’s the cleanest way to structure this? Ideally no crazy reflection or 100 buttons.
Any ideas appreciated
sorry if this looks AI generated, I just didn't know how to write it, not like a damass
I've got a C# class
EssentialTweaks, with public methods that return bool. Most are parameterless, some take enums like.
Errors go to Console.WriteLine.
I want the UI to show all tweaks grouped by class (as categories), let users check what they want, and then apply them one by one even if some fail.
The goal is to define all tweaks in a JSON file with the name, description, class/method, and optional enum param — so the UI builds dynamically and I don’t have to hardcode anything. For things like PS5 vs PS7, each should be a separate entry in the list.
Here’s the repo: https://github.com/PUXSY/WinRep-Code
What’s the cleanest way to structure this? Ideally no crazy reflection or 100 buttons.
Any ideas appreciated
sorry if this looks AI generated, I just didn't know how to write it, not like a damass
GitHub
Contribute to PUXSY/WinRep-Code development by creating an account on GitHub.