Exemplo n.º 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);
        }
Exemplo n.º 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());
 }
Exemplo n.º 3
0
        /// <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());
        }