public TraderState(TradingConsoleState state) : base(state.SessionId) { _InstrumentsAdapter = new InstrumentsAdapter(Instruments); if (state != null) { Copy(state.AccountGroups, this.AccountGroups); Copy(state.Accounts, this.Accounts); foreach (DictionaryEntry item in state.Instruments) { _InstrumentsAdapter.Add((Guid)item.Key, (Guid)item.Value); } this.Language = state.Language; this.IsEmployee = state.IsEmployee; } }
public TraderState(TradingConsoleState state) : base(state.SessionId) { _InstrumentsAdapter = new InstrumentsAdapter(Instruments); if (state != null) { Copy(state.AccountGroups, this.AccountGroups); Copy(state.Accounts, this.Accounts); foreach (DictionaryEntry item in state.Instruments) { _InstrumentsAdapter.Add((Guid)item.Key, (Guid)item.Value); } this.Language = state.Language; this.IsEmployee = state.IsEmployee; } }
public TraderState(string sessionId) : base(sessionId) { _InstrumentsAdapter = new InstrumentsAdapter(Instruments); }
public TraderState(string sessionId) : base(sessionId) { _InstrumentsAdapter = new InstrumentsAdapter(Instruments); }