void IPersistable.Load(SettingsStorage storage) { if (storage.ContainsKey("Drive")) DrivePanel.SelectedDrive = DriveCache.Instance.GetDrive(storage.GetValue<string>("Drive")); DrivePanel.StorageFormat = storage.GetValue<StorageFormats>("StorageFormat"); MarketData.Load(storage.GetValue<SettingsStorage>("MarketData")); SecurityPicker.Load(storage.GetValue<SettingsStorage>("SecurityPicker")); LookupPanel.Load(storage.GetValue<SettingsStorage>("LookupPanel")); }
void IPersistable.Load(SettingsStorage storage) { if (storage.ContainsKey("Drive")) { DrivePanel.SelectedDrive = DriveCache.Instance.GetDrive(storage.GetValue <string>("Drive")); } DrivePanel.StorageFormat = storage.GetValue <StorageFormats>("StorageFormat"); MarketData.Load(storage.GetValue <SettingsStorage>("MarketData")); SecurityPicker.Load(storage.GetValue <SettingsStorage>("SecurityPicker")); DataTypeComboBox.SelectedIndex = storage.GetValue <int>("DataTypeComboBox"); }