Example #1
0
 internal void Combine(BosTrades source)
 {
     if (list.Count == 0 && source.list.Count > 0)
     {
         list = source.list;
     }
 }
 // konstruktor wywoływany z klasy BosInstruments
 internal BosInstrument(string isin, string symbol)
 {
     // TODO: "Persistent cache" dla pól: ISIN/Symbol/Sym/Type
     // żebyśmy mogli np. od razu uzupełnić Symbol, gdy podano tylko ISIN
     ISIN           = isin;
     Symbol         = symbol;
     Sym            = GetInstrumentSym();
     Type           = GetInstrumentType();
     BuyOffers      = new BosOffers();
     SellOffers     = new BosOffers();
     Trades         = new BosTrades();
     Session        = new BosSessionStats();
     updatesEnabled = true;
 }