/// <summary> /// Load settings. /// </summary> /// <param name="storage">Storage.</param> public override void Load(SettingsStorage storage) { Rules.Clear(); Rules.AddRange(storage.GetValue <SettingsStorage[]>(nameof(Rules)).Select(s => s.LoadEntire <IRiskRule>())); base.Load(storage); }
/// <summary> /// Load settings. /// </summary> /// <param name="storage">Settings storage.</param> public override void Load(SettingsStorage storage) { _conditionTypes.Clear(); _conditionTypes.AddRange(storage.GetValue <IEnumerable <string> >("ConditionTypes").Select(s => s.To <Type>())); _conditionTypes.ForEach(AddColumns); base.Load(storage); }
/// <summary> /// Load settings. /// </summary> /// <param name="storage">Storage.</param> public void Load(SettingsStorage storage) { Rules.AddRange(storage.GetValue <SettingsStorage[]>("Rules").Select(s => s.LoadEntire <IRiskRule>())); }