Forms.Dialog What is the best way to store last selected settings?

Hi all,

I am writing a Eto.Forms.Dialog, which performs some operations on geometry, the user has a number of choices every time the Form is called (dropdowns and checkboxes). What is the best way to store the last selections in the memory of Rhino? Ideally, the selection will be remembered next time Rhino is opened too.

I am thinking to save .json file, and read it back every-time form is called but is there a more elegant way?

W.

In Python you can do this with scriptcontext.sticky and these will be file dependent

In C# this can be done with Persistent settings. These will be saved in the plugin location and will survive between Rhino sessions too