} // UserSettingSaving // ---------------------------------------------------------------------- private void UserSettingLoading(object sender, SettingValueCancelEventArgs e) { if (SettingLoading != null) { SettingLoading(sender, e); } } // UserSettingLoading
} // 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