Page 1 of 1

Prefs

Posted: Fri Oct 01, 2010 6:11 pm
by drtech
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");

Re: Prefs

Posted: Fri Oct 01, 2010 7:47 pm
by jordansparks
Still supported. See line 137. It's up to you to convert the string to whatever type you need.