/// <summary> /// This member overrides PropertyBag.OnSetValue. /// </summary> protected override void OnSetValue(PropertySpecEventArgs e) { propValues[e.Property.Name] = e.Value; base.OnSetValue(e); }
/// <summary> /// This member overrides PropertyBag.OnGetValue. /// </summary> protected override void OnGetValue(PropertySpecEventArgs e) { e.Value = propValues[e.Property.Name]; base.OnGetValue(e); }
private void bag_SetValue(object sender, PropertySpecEventArgs e) { m_NotepadXApplicationSettings.SetSetting(e.Property.Category, e.Property.Name, e.Value.ToString(), false); }
public static void PropertyBagForStaticMembersGetValueHandler(object sender, PropertySpecEventArgs e) { e.Value = e.Property.DefaultValue; }
private void bag_GetValue(object sender, PropertySpecEventArgs e) { //Get this setting from app settings e.Value = Convert.ChangeType(m_NotepadXApplicationSettings.GetSetting(e.Property.Category, e.Property.Name, e.Property.DefaultValue.ToString()), Type.GetType(e.Property.TypeName)); }