• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# SettingsStorage类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: 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


示例2: 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


示例3: Load

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

			LongMa.LoadNotNull(settings, "LongMa");
			ShortMa.LoadNotNull(settings, "ShortMa");
		}
开发者ID:hbwjz,项目名称:StockSharp,代码行数:11,代码来源:MovingAverageConvergenceDivergence.cs


示例4: Load

		public override void Load(SettingsStorage storage)
		{
			if (storage == null)
				throw new ArgumentNullException(nameof(storage));

			_panels.Clear();

			var controls = storage.GetValue<SettingsStorage[]>("Controls");
			var controlsDict = new Dictionary<string, BaseStudioControl>();

			foreach (var settings in controls)
			{
				try
				{
					var control = LoadBaseStudioControl(settings);
					controlsDict.Add(control.Key, control);
				}
				catch (Exception excp)
				{
					this.AddErrorLog(excp);
				}
			}

			var dockLayout = storage.GetValue<string>("Layout");
				
			if (!dockLayout.IsEmpty())
				LoadDockLayout(dockLayout, controlsDict);
		}
开发者ID:RakotVT,项目名称:StockSharp,代码行数:28,代码来源:LayoutManager.cs


示例5: 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


示例6:

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


示例7: Load

		/// <summary>
		/// Загрузить настройки.
		/// </summary>
		/// <param name="storage">Хранилище настроек.</param>
		public void Load(SettingsStorage storage)
		{
			Rules.AddRange(storage.GetValue<IList<AlertRule>>("Rules"));
			AlertType = storage.GetValue<string>("AlertType").To<AlertTypes?>();
			Caption = storage.GetValue<string>("Caption");
			Message = storage.GetValue<string>("Message");
		}
开发者ID:reddream,项目名称:StockSharp,代码行数:11,代码来源:AlertSchema.cs


示例8: 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


示例9: 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


示例10: Load

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

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


示例11: 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


示例12: 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


示例13: Load

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

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


示例14: Load

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

			Key = storage.GetValue<SecureString>("Key");
			Secret = storage.GetValue<SecureString>("Secret");
		}
开发者ID:jackman0925,项目名称:StockSharp,代码行数:11,代码来源:BtceMessageAdapter_Settings.cs


示例15: 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


示例16: Load

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

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


示例17: Load

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

			Ema.LoadNotNull(settings, "Ema");
			Roc.LoadNotNull(settings, "Roc");
		}
开发者ID:hbwjz,项目名称:StockSharp,代码行数:11,代码来源:ChaikinVolatility.cs


示例18: 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:zjxbetter,项目名称:StockSharp,代码行数:8,代码来源:NewsPanel.xaml.cs


示例19: 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


示例20: Load

		public void Load(SettingsStorage storage)
		{
			var settings = storage
				.GetValue<IEnumerable<SettingsStorage>>("Settings", new SettingsStorage[0])
				.Select(s => s.Load<MarketDataSettings>());

			Settings.Clear();
			Settings.AddRange(settings);
		}
开发者ID:RakotVT,项目名称:StockSharp,代码行数:9,代码来源:MarketDataSettingsCache.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Setup类代码示例发布时间:2022-05-24
下一篇:
C# SettingsDictionary类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap