Ejemplo n.º 1
0
        void IPersistable.Save(SettingsStorage storage)
        {
            if (Task != null)
            {
                storage.SetValue("TaskId", Task.Settings.Id);
            }

            storage.SetValue("Securities", SecuritiesCtrl.Save());
        }
Ejemplo n.º 2
0
 /// <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>());
 }