예제 #1
0
		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"));
		}
예제 #2
0
        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");
        }