Settings Variables - accessibilitysoftwarehub/OpenSourceWindowsGazeControl GitHub Wiki

How to add a new variable to save

Open SettingJSON.cs under the gazetoolbar project
From here you can add/modify/delete variables
SettingJSON

Open Program.cs also under the gazetoolbar project
Look for the ReadWriteJson() method
Here you have to add the default value for your variable so it doesn't crash the program due to the null value
Program

Open Settings.cs also under the gazetoolbar project
Look for the btnSave_click and the Settings_load methods
Add your variables in these 2 methods appropriately the program will now load,save, and reset your variable fine.
SaveClick
SettingsLoad

You may have to delete the settingsjson file in your gazetoolbar directory if it keeps crashing when you run the application as it tries to use null values in place of the default values. Or you could edit the json file to add the default values to your new variables.