Exemplo n.º 1
0
 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;
     }
 }
Exemplo n.º 2
0
 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;
     }
 }
Exemplo n.º 3
0
 public TraderState(string sessionId)
     : base(sessionId)
 {
     _InstrumentsAdapter = new InstrumentsAdapter(Instruments);
 }
Exemplo n.º 4
0
 public TraderState(string sessionId)
     : base(sessionId)
 {
     _InstrumentsAdapter = new InstrumentsAdapter(Instruments);
 }