public static bool MarkPairSummary(CurrencyPair pair, bool marked)
 {
     lock (AllSummaries) {
         for (int i = 0; i < AllSummaries.Count; i++)
         {
             if (AllSummaries[i].Pair == pair)
             {
                 AllSummaries[i] = new PairSummary(AllSummaries[i], marked);
                 return(true);
             }
         }
         return(false);
     }
 }
 public static void SetPairSummary(CurrencyPair pair, TickerChangedEventArgs[] tickers, double volume)
 {
     lock (AllSummaries) {
         for (int i = 0; i < AllSummaries.Count; i++)
         {
             if (AllSummaries[i].Pair == pair)
             {
                 AllSummaries[i] = new PairSummary(AllSummaries[i], tickers, volume);
                 return;
             }
         }
         AllSummaries.Add(new PairSummary(pair, tickers, volume));
     }
 }