void IPersistable.Save(SettingsStorage storage) { if (Task != null) { storage.SetValue("TaskId", Task.Settings.Id); } storage.SetValue("Securities", SecuritiesCtrl.Save()); }
/// <summary> /// Save settings. /// </summary> /// <param name="storage">Settings storage.</param> public void Save(SettingsStorage storage) { storage.SetValue("GridSettings", SecuritiesCtrl.Save()); storage.SetValue("SecurityFilter", SecurityFilter); storage.SetValue("SecurityType", SelectedType.To <string>()); }