Пример #1
0
        /// <summary>
        /// Save settings.
        /// </summary>
        /// <param name="storage">Settings storage.</param>
        public void Save(SettingsStorage storage)
        {
            if (Security != null)
            {
                storage.SetValue(nameof(SecurityId), Security.Id);
            }

            if (CandleType != null)
            {
                storage.SetValue(nameof(CandleType), CandleType.GetTypeName(false));
            }

            if (Arg != null)
            {
                storage.SetValue(nameof(Arg), Arg);
            }

            storage.SetValue(nameof(From), From);
            storage.SetValue(nameof(To), To);

            if (WorkingTime != null)
            {
                storage.SetValue(nameof(WorkingTime), WorkingTime);
            }

            storage.SetValue(nameof(IsCalcVolumeProfile), IsCalcVolumeProfile);
        }
Пример #2
0
        /// <summary>
        /// Save settings.
        /// </summary>
        /// <param name="storage">Settings storage.</param>
        public void Save(SettingsStorage storage)
        {
            if (Security != null)
            {
                storage.SetValue("SecurityId", Security.Id);
            }

            storage.SetValue("CandleType", CandleType.GetTypeName(false));
            storage.SetValue("Arg", Arg);

            storage.SetValue("From", From);
            storage.SetValue("To", To);
            storage.SetValue("WorkingTime", WorkingTime);

            storage.SetValue("IsCalcVolumeProfile", IsCalcVolumeProfile);
        }