}         // UserSettingSaving

        // ----------------------------------------------------------------------
        private void UserSettingLoading(object sender, SettingValueCancelEventArgs e)
        {
            if (SettingLoading != null)
            {
                SettingLoading(sender, e);
            }
        }         // UserSettingLoading
Esempio n. 2
0
        }         // OnValueSaving

        // ----------------------------------------------------------------------
        protected virtual object OnValueLoading(string name, object value)
        {
            if (ValueLoading == null)
            {
                return(value);
            }

            SettingValueCancelEventArgs e = new SettingValueCancelEventArgs(this, name, value);

            ValueLoading(this, e);
            return(e.Cancel ? null : e.TargetValue);
        }         // OnValueLoading