예제 #1
0
 /// <summary>
 /// Save settings.
 /// </summary>
 /// <param name="storage">Settings storage.</param>
 public void Save(SettingsStorage storage)
 {
     storage.SetValue(nameof(Exchange), Exchange.Save());
     storage.SetValue(nameof(Code), Code);
     storage.SetValue(nameof(IsSupportMarketOrders), IsSupportMarketOrders);
     storage.SetValue(nameof(IsSupportAtomicReRegister), IsSupportAtomicReRegister);
     storage.SetValue(nameof(ExpiryTime), ExpiryTime);
     storage.SetValue(nameof(WorkingTime), WorkingTime.Save());
     storage.SetValue(nameof(TimeZone), TimeZone);
 }
예제 #2
0
 /// <summary>
 /// Save settings.
 /// </summary>
 /// <param name="storage">Settings storage.</param>
 public void Save(SettingsStorage storage)
 {
     storage.SetValue("Exchange", Exchange.Save());
     storage.SetValue("Code", Code);
     storage.SetValue("IsSupportMarketOrders", IsSupportMarketOrders);
     storage.SetValue("IsSupportAtomicReRegister", IsSupportAtomicReRegister);
     storage.SetValue("ExpiryTime", ExpiryTime);
     storage.SetValue("WorkingTime", WorkingTime.Save());
     storage.SetValue("TimeZone", TimeZone);
 }