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


C# SettingsStorage类代码示例

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


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


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