Exemple #1
0
        /// <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);
        }
Exemple #2
0
 /// <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());
        }