What is the proper way to now get and set preferences in the database as an outside developer?
It seems that now the PrefName is required to be passed instead of a regular string now. How can I make another pref if they are all in an enumeration (which as far as I can tell is impossible to add to at runtime with my plugin?)
ie
checkApptExclamation.Checked=PrefC.GetBool(PrefName.ApptExclamationShowForUnsentIns);
If I remember right, I used to do it like
checkApptExclamation.Checked=PrefC.GetBool("MyOwnPreference");
Prefs
- jordansparks
- Site Admin
- Posts: 5746
- Joined: Sun Jun 17, 2007 3:59 pm
- Location: Salem, Oregon
- Contact:
Re: Prefs
Still supported. See line 137. It's up to you to convert the string to whatever type you need.
Jordan Sparks, DMD
http://www.opendental.com
http://www.opendental.com