Пример #1
0
        internal static Protocal.UpdateTradeDayInfoMarketCommand CreateUpdateTradeDayInfoCommand()
        {
            var tradeDayInfo = TradeDayManager.Default.TradeDayInfo;
            var result       = new Protocal.UpdateTradeDayInfoMarketCommand
            {
                TradeDay  = tradeDayInfo.TradeDay,
                BeginTime = tradeDayInfo.BeginTime,
                EndTime   = tradeDayInfo.EndTime,
                IsTrading = tradeDayInfo.IsTrading
            };

            return(result);
        }
Пример #2
0
 internal void UpdateTradeDayInfo(Protocal.UpdateTradeDayInfoMarketCommand command)
 {
     this.CallByWrite(() => Settings.Setting.Default.SettingInfo.UpdateTradeDay(command));
 }