/// <summary> /// Save settings. /// </summary> /// <param name="storage">Storage.</param> public override void Save(SettingsStorage storage) { storage.SetValue(nameof(Rules), Rules.Select(r => r.SaveEntire(false)).ToArray()); base.Save(storage); }
/// <summary> /// Save settings. /// </summary> /// <param name="storage">Storage.</param> public void Save(SettingsStorage storage) { storage.SetValue("Rules", Rules.Select(r => r.SaveEntire(false)).ToArray()); }
/// <summary> /// Save settings. /// </summary> /// <param name="storage">Settings storage.</param> public override void Save(SettingsStorage storage) { base.Save(storage); storage.SetValue("ConditionTypes", _conditionTypes.Select(t => t.GetTypeName(false)).ToArray()); }