本文整理汇总了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());
}
示例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());
}
示例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);
}
示例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());
}
示例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);
}
示例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>());
}
示例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);
}
示例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);
}
示例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());
}
示例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);
}
示例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());
}
示例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);
}
示例13: Save
public override void Save(SettingsStorage storage)
{
storage.SetValue("SecurityPicker", SecurityPicker.Save());
storage.SetValue("AlertSettings", AlertBtn.Save());
storage.SetValue("Securities", _securityIds.ToArray());
}
示例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);
}
示例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);
}