当前位置: 首页>>代码示例>>C#>>正文


C# SettingsStorage.SetValue方法代码示例

本文整理汇总了C#中SettingsStorage.SetValue方法的典型用法代码示例。如果您正苦于以下问题:C# SettingsStorage.SetValue方法的具体用法?C# SettingsStorage.SetValue怎么用?C# SettingsStorage.SetValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在SettingsStorage的用法示例。


在下文中一共展示了SettingsStorage.SetValue方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Save

		public override void Save(SettingsStorage storage)
		{
			base.Save(storage);

			storage.SetValue("PositionsPanel", PositionsPanel.Save());
			storage.SetValue("AlertSettings", AlertBtn.Save());
		}
开发者ID:RakotVT,项目名称:StockSharp,代码行数:7,代码来源:PortfoliosPanel.xaml.cs

示例2: Save

		/// <summary>
		/// Save settings.
		/// </summary>
		/// <param name="settings">Settings storage.</param>
		public override void Save(SettingsStorage settings)
		{
			base.Save(settings);

			settings.SetValue("ShortSma", ShortSma.Save());
			settings.SetValue("LongSma", LongSma.Save());
		}
开发者ID:vikewoods,项目名称:StockSharp,代码行数:11,代码来源:RangeActionVerificationIndex.cs

示例3: Save

		/// <summary>
		/// Сохранить настройки.
		/// </summary>
		/// <param name="storage">Хранилище настроек.</param>
		public override void Save(SettingsStorage storage)
		{
			base.Save(storage);

			storage.SetValue("Login", Login);
			storage.SetValue("Password", Password);
		}
开发者ID:EricGarrison,项目名称:StockSharp,代码行数:11,代码来源:AlfaDirectMessageAdapter_Settings.cs

示例4: Save

		/// <summary>
		/// Сохранить настройки.
		/// </summary>
		/// <param name="settings">Хранилище настроек.</param>
		public override void Save(SettingsStorage settings)
		{
			base.Save(settings);

			settings.SetValue("line1", _line1.Save());
			settings.SetValue("line2", _line2.Save());
		}
开发者ID:reddream,项目名称:StockSharp,代码行数:11,代码来源:GatorHistogram.cs

示例5: Save

		/// <summary>
		/// Сохранить настройки.
		/// </summary>
		/// <param name="storage">Хранилище настроек.</param>
		public override void Save(SettingsStorage storage)
		{
			base.Save(storage);

			storage.SetValue("Address", Address.To<string>());
			storage.SetValue("CustomDateFormat", CustomDateFormat);
		}
开发者ID:jackman0925,项目名称:StockSharp,代码行数:11,代码来源:RssMarketDataMessageAdapter_Settings.cs

示例6:

		void IPersistable.Save(SettingsStorage storage)
		{
			storage.SetValue(nameof(Address), Address.To<string>());
			storage.SetValue(nameof(Login), Login);
			storage.SetValue(nameof(Password), Password);
			storage.SetValue(nameof(Type), Type.To<string>());
		}
开发者ID:RakotVT,项目名称:StockSharp,代码行数:7,代码来源:Proxy.cs

示例7: Save

		/// <summary>
		/// Сохранить настройки.
		/// </summary>
		/// <param name="storage">Хранилище настроек.</param>
		public void Save(SettingsStorage storage)
		{
			storage.SetValue("Rules", Rules);
			storage.SetValue("AlertType", AlertType.To<string>());
			storage.SetValue("Caption", Caption);
			storage.SetValue("Message", Message);
		}
开发者ID:reddream,项目名称:StockSharp,代码行数:11,代码来源:AlertSchema.cs

示例8: Save

		/// <summary>
		/// Save settings.
		/// </summary>
		/// <param name="storage">Settings storage.</param>
		public override void Save(SettingsStorage storage)
		{
			base.Save(storage);

			storage.SetValue("Key", Key);
			storage.SetValue("Secret", Secret);
		}
开发者ID:zjxbetter,项目名称:StockSharp,代码行数:11,代码来源:BtceMessageAdapter_Settings.cs

示例9: Save

		public override void Save(SettingsStorage storage)
		{
			base.Save(storage);

			storage.SetValue("SubscribeNews", SubscribeNews);
			storage.SetValue("NewsGrid", NewsGrid.Save());
			storage.SetValue("AlertSettings", AlertBtn.Save());
		}
开发者ID:reddream,项目名称:StockSharp,代码行数:8,代码来源:NewsPanel.xaml.cs

示例10: Save

		/// <summary>
		/// Сохранить настройки.
		/// </summary>
		/// <param name="storage">Хранилище настроек.</param>
		public override void Save(SettingsStorage storage)
		{
			base.Save(storage);

			if (Security != null)
				storage.SetValue("Security", Security.Id);

			if (Portfolio != null)
				storage.SetValue("Portfolio", Portfolio.Name);
		}
开发者ID:reddream,项目名称:StockSharp,代码行数:14,代码来源:DiagramStrategyEx.cs

示例11: Save

		/// <summary>
		/// Save settings.
		/// </summary>
		/// <param name="storage">Settings storage.</param>
		public void Save(SettingsStorage storage)
		{
			if (_alertSchema == null)
				return;

			storage.SetValue("AlertSchema", _alertSchema.Save());
		}
开发者ID:hbwjz,项目名称:StockSharp,代码行数:11,代码来源:AlertButton.xaml.cs

示例12: Save

		public override void Save(SettingsStorage storage)
		{
			var values = InnerPortfolios
				.Select(p => new KeyValuePair<string, decimal>(p.Key.Name, p.Value))
				.ToArray();

			storage.SetValue("InnerPortfolios", values);
		}
开发者ID:alexandrmalov,项目名称:StockSharp,代码行数:8,代码来源:VirtualPortfolio.cs

示例13: Save

		public override void Save(SettingsStorage storage)
		{
			storage.SetValue("SecurityPicker", SecurityPicker.Save());
			storage.SetValue("AlertSettings", AlertBtn.Save());
			storage.SetValue("Securities", _securityIds.ToArray());
		}
开发者ID:zjxbetter,项目名称:StockSharp,代码行数:6,代码来源:StrategySecuritiesPanel.xaml.cs

示例14:

            void IPersistable.Save(SettingsStorage storage)
            {
                storage.SetValue("Year", Year);
                storage.SetValue("Trader", Trader);

                if (From != null)
                    storage.SetValue("From", From);

                if (To != null)
                    storage.SetValue("To", To);

                storage.SetValue("Security1", Security1);
                storage.SetValue("Security2", Security2);
                storage.SetValue("Security3", Security3);
                storage.SetValue("Security4", Security4);
                storage.SetValue("TimeFrame", TimeFrame);
            }
开发者ID:akovbovich,项目名称:AlgoTools,代码行数:17,代码来源:MainWindow.xaml.cs

示例15:

			void IPersistable.Save(SettingsStorage storage)
			{
				storage.SetValue("Name", Name);
				storage.SetValue("Number", Number);
				storage.SetValue("Values", Values.Select(v => v.Save()).ToArray());
				storage.SetValue("DefaultValue", DefaultValue);
				storage.SetValue("Format", Format);
			}
开发者ID:vikewoods,项目名称:StockSharp,代码行数:8,代码来源:ImportPane.xaml.cs


注:本文中的SettingsStorage.SetValue方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。